Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nammu edition doesn't work well with Java 9 #320

Open
raquelalegre opened this issue Jul 4, 2018 · 1 comment
Open

Nammu edition doesn't work well with Java 9 #320

raquelalegre opened this issue Jul 4, 2018 · 1 comment

Comments

@raquelalegre
Copy link
Contributor

No description provided.

@ageorgou
Copy link
Contributor

ageorgou commented Jul 4, 2018

java -version

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

java -jar nammu-1.1.0.jar gives the following messages:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/Users/ageorgou/Downloads/nammu-1.1.0.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
Jul 04, 2018 1:16:09 PM org.python.netty.util.internal.PlatformDependent
INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.

Nammu launches successfully, but there is no syntax highlighting, and every keystroke gives this error (the characters appear normally in the editor pane):

Exception in thread "AWT-EventQueue-0" Traceback (most recent call last):
File "pyclasspath/nammu/view/AtfEditArea.py", line 91, in replaceSelection
File "pyclasspath/nammu/view/AtfAreaView.py", line 319, in undoableEditHappened
AttributeError: 'javax.swing.text.AbstractDocument$DefaultDocumentE' object has no attribute 'getType'
Exception in thread "AWT-EventQueue-0" Traceback (most recent call last):
File "pyclasspath/nammu/view/AtfAreaView.py", line 269, in keyReleased
File "pyclasspath/nammu/controller/AtfAreaController.py", line 299, in syntax_highlight
File "pyclasspath/nammu/view/SyntaxHighlighter.py", line 192, in syntax_highlight
File "pyclasspath/nammu/view/AtfAreaView.py", line 319, in undoableEditHappened
AttributeError: 'javax.swing.text.AbstractDocument$DefaultDocumentE' object has no attribute 'getType'

Possibly unrelated but, if an existing ATF file is opened, any new text typed seems to be added from right to left.

The same thing happens with version 1.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants