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

Reply via email to