Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with JDK9
10-15-2017, 03:48 AM (This post was last modified: 10-15-2017 04:02 AM by admin.)
Post: #1
Problems with JDK9
JDK9 (Java9) is now official, but DMelt has multiple issues running on the Java9 platform, since JDK9 has a number of features that the lack of backward compatibility with older Java versions. Here is a list of known of problems with JDK9:

1) Jython cannot import Java classes when using "*" in the import statements. You have to type explicitly which class should be imported. For example:

Code:
from java.awt import *

will not work. You should replace the star with the class names. This is related to the known issue of relocation standard Java libraries (and using a new formats). This lack of backward compatibility of Java9 is discussed in http://bugs.jython.org/issue2362

2) All exports to VectorGraphics images are broken in JDK9, i.e. you cannot export canvases to images to SVF, PDF, EPS using Java9. This issue is discussed in https://stackoverflow.com/questions/4674...-java-code

3) Multiple (and totally unnecessary) warning when running DMelt (and Jython 2.7.1)


Code:
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/home/sergei/work/dmelt/jehep/lib/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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)