Paul,
Java 9 support is only available on master (19.x):
https://github.com/geotools/geotools/wiki/FactoryRegistry-Refactoring-for-Java-9-Compatibility
The GeoTools master build still fails with Java 9 on GeoServer Jenkins:
https://build.geoserver.org/view/geotools/job/geotools-java9/lastFailedBuild/consoleFull
The GeoTools master build fails for me with openjdk-9-jdk 9.0.1+11-1
amd64 on debian/sid, in gt-xsd-wps, gt-imagemosaic, and gt-wfs-ng.
GeoTools 19.0 is scheduled for release on 18 March:
https://github.com/geoserver/geoserver/wiki/Release-Schedule
Java 9 reaches End-of-Life in March 2018. Java 10 (18.3) reaches
End-of-Life in September 2018. Java 11 (18.9 LTS) will be in General
Availability from September 2018:
http://www.oracle.com/technetwork/java/eol-135779.html
https://www.infoq.com/news/2018/01/JavaSupportJan18
https://www.azul.com/java-stable-secure-free-choose-two-three/
Kind regards,
Ben.
On 03/02/18 03:03, Paul Johnson wrote:
I have been using geotools with Java 1.8. When I now build and run using
java 9, construction of a StreamingRenderer object causes a
java.lang.ExceptionInInitializerError.
I have a simple code sample that has a similar problem shown below
When running under Java 1.8 I can set a breakpoint on the new
StreamingRenderer() and single step into function main - everything works
fine.
If I run with java 9 it never gets past this the StreamRenderer
construction. I have updated all my geotools libraries to 18.2 without
success.
Is there still Java 9 work to be done on the geotools libraries?
public class MyTest {
private static StreamingRenderer renderer = new StreamingRenderer(); // <
set break point here and signal step
private static int paul; // never get to a break point here if Java 9
public static void main(String[] args) {
int x = 0;
StreamingRenderer y = renderer;
x += 1; // put break point here - all works in Java 1.8,
}
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel
--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel