coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
16 stars 2 forks source link

Reflection issues with Java 9 #39

Closed akoehn closed 4 years ago

akoehn commented 6 years ago

Original report by Alexander Koller (Bitbucket: akoller, GitHub: alexanderkoller).


Currently, Alto does not work with Java 9 because of the following reflection-related problems:

Ideas for fixing these issues:

akoehn commented 6 years ago

Original changes by Alexander Koller (Bitbucket: akoller, GitHub: alexanderkoller).


changed content from "Currently, Alto does not work with Java 9 because of the following reflection-related problems:

akoehn commented 5 years ago

macify can be removed (just tested it), don't know how import it is to have on macs.

@alexanderkoller, could you give me an example of the other error? As far as I can see, everything works as expected. The plugins to read irtgs etc. seem to be recognized just fine.

I have pushed a branch in which macify is removed.

alexanderkoller commented 5 years ago

Hm. I just tried an older version (changeset 1920, from March 2018) on OpenJDK 12 on MacOS, and I don't get the "reflective access" message any more. The algebras and codecs all seem to be there. I do get a weird bug with the Window menu (see screenshot below). To reproduce, do File -> Open, then cancel. This adds a Window menu. Does this also happen on other OSes?

Screen Shot 2019-04-03 at 18 41 32
alexanderkoller commented 5 years ago

The macify is important to move the menu bar to the top of the screen (where it belongs on MacOS) and change the hotkeys to Cmd-O and such. I will have a look at your branch.

alexanderkoller commented 5 years ago

I have tested the un-macify version, and it seems to display fine on MacOS using both Java 8 and Java 12. As far as I'm concerned, we can switch to the code version in un-macify.

The "Window" bug I mentioned above occurs only on Java 12. I will move it into a separate issue.

akoehn commented 5 years ago

Ok, in that case, I will merge that commit to master. The Alto GUI does not work without it on JRE11 on Debian (haven't tested other non-Mac OSes).

alexanderkoller commented 4 years ago

As far as I can tell, the GUI works perfectly on MacOS right now with Java 12 (except for the more specific bug in #42). Can I close this issue?