The following warnings occurred:
Warning [2] Trying to access array offset on value of type null - Line: 4475 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 4475 errorHandler->error
/inc/class_session.php 505 my_strlen
/inc/class_session.php 360 session->create_session
/inc/class_session.php 75 session->load_guest
/global.php 55 session->init
/printthread.php 17 require_once
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $mybb - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Attempt to read property "settings" on null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined variable $forums - Line: 183 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 183 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Undefined array key 3 - Line: 184 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 184 errorHandler->error
/printthread.php 187 makeprintablenav
/printthread.php 63 makeprintablenav
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Trying to access array offset on value of type null - Line: 1229 - File: inc/functions.php PHP 8.0.30 (Linux)
File Line Function
/inc/functions.php 1229 errorHandler->error
/printthread.php 72 forum_permissions
Warning [2] Undefined array key "canonlyviewownthreads" - Line: 78 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 78 errorHandler->error
Warning [2] Undefined array key "page" - Line: 86 - File: printthread.php PHP 8.0.30 (Linux)
File Line Function
/printthread.php 86 errorHandler->error
Warning [2] Undefined variable $multipage - Line: 24 - File: printthread.php(163) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/printthread.php(163) : eval()'d code 24 errorHandler->error
/printthread.php 163 eval



jWork.ORG forums
Testing DataMalt 2.3 using JDK 12 Early-Access Builds - Printable Version

+- jWork.ORG forums (https://jwork.org/forum)
+-- Forum: DataMelt (/forumdisplay.php?fid=1)
+--- Forum: DataMelt bug report (/forumdisplay.php?fid=3)
+--- Thread: Testing DataMalt 2.3 using JDK 12 Early-Access Builds (/showthread.php?tid=132)



Testing DataMalt 2.3 using JDK 12 Early-Access Builds - jworkorg - 12-13-2018 10:47 AM

Results of DataMelt 2.3 using JDK 12 Early-Access Builds (Dec 2018)

JDK 12 Early-Access Builds information:

Code:
Look & Feel: com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel  
Operating System - Linux     
System Architecture - amd64     
System Version - 4.15.0-42-generic     
Free memory - @ 1727Mb     
Memory available to Java - @ 2411Mb      
Java version - 12-ea      Vendor - Oracle Corporation     
Url - https://java.oracle.com/  


Results of the tests:

Warnings running DatMelt in the GUI mode:

Code:
Error loading L&F: java.lang.ClassNotFoundException: com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/dmelt/jehep/jython/jython.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Detected problem: NimbusLookAndFeel not available.


Results of the tests:

Tests of 667 examples of DataMelt on the JDK platform have passed successfully.
All examples can be found in https://jwork.org/dmelt/code/index.php.


DataMelt team


RE: Testing DataMalt 2.3 using JDK 12 Early-Access Builds - admin - 12-13-2018 11:01 PM

Hi,

Indeed, it works with all these warnings. But I remind that some Jython web scripts require adjustment of the "import" statements, since Jython 2.7 cannot use wild cards (i.e. "*") for importing Java packages starting (starting from the JDK version 9).

For example, this script with the explicit import statement works OK for all Java versions:

Code:
from jhplot  import HPlot3D,H2D,F2D
from java.util import Random
c1 = HPlot3D("Canvas",600,400)
c1.setColorMode(4)
c1.visible(1)
h1 = H2D("My 2D Test 1",30,-3.0, 3.0, 30, -3.0, 3.0)
f1 = F2D("8*(x*x+y*y)", -3.0, 3.0, -3.0, 5.0)
rand = Random()
for i in range(1000):
   h1.fill(0.4*rand.nextGaussian(),rand.nextGaussian())
c1.draw(h1,f1)
c1.export("image.eps")

But the Jython code shown below fails (due to the regular expression
in the import statement "java.util import *"):

Code:
from jhplot  import HPlot3D,H2D,F2D
from java.util import *
c1 = HPlot3D("Canvas",600,400)
c1.setColorMode(4)
c1.visible(1)
h1 = H2D("My 2D Test 1",30,-3.0, 3.0, 30, -3.0, 3.0)
f1 = F2D("8*(x*x+y*y)", -3.0, 3.0, -3.0, 5.0)
rand = Random()
for i in range(1000):
   h1.fill(0.4*rand.nextGaussian(),rand.nextGaussian())
c1.draw(h1,f1)
c1.export("image.eps")

The output of the code above[/quote][/code]:

Quote:Traceback (most recent call last): , File test.py, line 16, in <module> ,
rand = Random() , NameError: name Random is not defined ,

The Jython package inside DataMelt should be updated when Jython will be certified for JDK9-JDK12. As far as I know, this works on Jython is ongoing.

Tania