State saving doesn't work here in this example anymore:
http://stepheneb.github.io/netlogo-gcc/index.html
Here's the code that's being executed:
https://github.com/stepheneb/netlogo-gcc/blob/master/lib/netlogo.js#L102-L114
I'm using instances of these Java classes:
java.io.StringWriter();
java.io.PrintWriter();
java.io.StringReader();
To create and restore NetLogo application state,
to make a text representation of state ... and an instance of java.io.StringWriter() to make a text representation of state.
I used to use this statement:
sw = new applet.Packages.java.io.StringWriter()
But the way I get them ... by introspecting into applet.Packages is now undefined.
sw = new applet.Packages.java.io.StringWriter();
pw = new applet.Packages.java.io.PrintWriter(sw);
sr = new applet.Packages.java.io.StringReader(nl_obj_state);
I suspect that perhaps recent changes the security model for Java applets have made applet.Packages undefined.
Anybody have any ideas how I can get this functionality back?