mercredi 11 mars 2015

Alternative for deprecated endorsed-standards override mechanism and extension mechanism



The release notes for Java 8 Update 40 (8u40) state:



The endorsed-standards override mechanism and the extension mechanism are deprecated and may be removed in a future release. There are no runtime changes. Existing applications using the 'endorsed-standards override' or 'extension' mechanisms are recommended to migrate away from using these mechanisms.



There is also the issue which clarifies that with Jigsaw (planned for Java SE 9, AFAIK) this will be replaced with a modular approach somehow:


http://ift.tt/1HAGkY2


I understand that Oracle wants to deprecate these mechanisms now because they cannot support them in Java SE 9 anymore.


On the other hand, it's not a good practice to deprecate something without providing an alternative.


The release notes state: "Existing applications [...] are recommended to migrate away from using these mechanisms"


So how can you "migrate away from"



  • endorsed-standards override mechanism

  • extension mechanism


in Java SE 8?




Aucun commentaire:

Enregistrer un commentaire