We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Challenges updating your code to work with Java 9 Jigsaw

Formale Metadaten

Titel
Challenges updating your code to work with Java 9 Jigsaw
Serientitel
Anzahl der Teile
611
Autor
Lizenz
CC-Namensnennung 2.0 Belgien:
Sie dürfen das Werk bzw. den Inhalt zu jedem legalen Zweck nutzen, verändern und in unveränderter oder veränderter Form vervielfältigen, verbreiten und öffentlich zugänglich machen, sofern Sie den Namen des Autors/Rechteinhabers in der von ihm festgelegten Weise nennen.
Identifikatoren
Herausgeber
Erscheinungsjahr
Sprache
Produktionsjahr2017

Inhaltliche Metadaten

Fachgebiet
Genre
Abstract
With the introduction of the Jigsaw module system many projects are confrontedwith issues running their code, now throwing new Exceptions likeInaccessibleObjectException because they used to work around issues in theJava API. Although many features like the famous sun.misc.Unsafe are nowprovided by other public APIs, there is still the problem of making your codework with previous Java versions, but also dynamically using the new Java 9replacements. Apache Lucene, the open source fulltext search library behindApache Solr and Elasticsearch, is also using some of those "hacks" to workaround issues in the Java API, but the developers also noticed that some codein the project hit some limits introduced by the module system. This talk willshow on some examples how Apache Lucene managed to allow its code to run withdifferent java versions (without using multi-release JAR files, as this bringsadditional burden with the build system) and still offer backwardscompatibility to earlier versions. It will show also the common pitfalls thatcan be easily found with running your tests in a security manager to uncoverbugs.