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

Reflection issues with Java 9 #39

Open
akoehn opened this issue Jan 15, 2018 · 1 comment
Open

Reflection issues with Java 9 #39

akoehn opened this issue Jan 15, 2018 · 1 comment
Labels
bug Something isn't working major

Comments

@akoehn
Copy link
Owner

akoehn commented Jan 15, 2018

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


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

  • org.simplericity.macify triggers an error "Illegal reflective access by org.simplericity.macify.eawt.DefaultApplication (file:/private/tmp/alto/target/alto-2.2-SNAPSHOT-jar-with-dependencies.jar) to method com.apple.eawt.Application.getApplication()". There does not seem to be a more recent version of macify that fixes this.
  • Alto Lab doesn't find static methods in Program#getAllAnnotatedStaticMethods, probably because no classes are found in Program#getAllClassesIn_irtg_Classpath (but this needs to be double-checked).

Ideas for fixing these issues:

  • Replace macify with something that does the same thing, but works with Java 9.
  • Replace Alto Lab's class-finding mechanism with a class-finding mechanism like in InputCodec and OutputCodec, where the classes that can be used from Alto Lab tasks must be explicitly declared in a file.
@akoehn
Copy link
Owner Author

akoehn commented Jan 15, 2018

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


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

  • org.simplericity.macify triggers an error "Illegal reflective access by org.simplericity.macify.eawt.DefaultApplication (file:/private/tmp/alto/target/al" to "Currently, Alto does not work with Java 9 because of the following reflection-related problems:

  • org.simplericity.macify triggers an error "Illegal reflective access by org.simplericity.macify.eawt.DefaultApplication (file:/private/tmp/alto/target/al"

@akoehn akoehn added major bug Something isn't working labels Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant