-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add test input java classes to jandex repository #101
Comments
For the moment you can add java 8 test classes here: https://github.com/wildfly/typeannotation-test It has come time to move to 8, but this will probably mean declaring a 3.0 version. |
It feels weird to add classes in one place and debug them in another :-/ I guess different modules can have different source/target versions if you still need to support Java 6/7. However, jandex issues hit Apache Calcite badly, and I guess it might be even easier to fix jandex than implement workarounds in Calcite :-/ On the other hand, I have no preference regarding 6-7-8 (Calcite is Java 8+ anyway), so if you migrate jandex to Java8, then it would indeed help with testing. |
The test cases you debug are only expected to be in the main jadex project, it's just the input byteocde that is elsewhere,. The pattern is like this since the project is forward bytecode compatible (it can read newer bytecode than the JVM it runs on. E.g you can read Java 11 bytecode running on a Java 6 JVM). I agree its unusual, and means you have to build install in two separate steps.
Historically, the only reason was to avoid requiring contributors to have extra ultra new JVMs around. So for example if we added early support for a pre-release of say Java 15, but you just wanted to fix something for the current stable VMs its a bit of a PITA.
sorry about that!
Yeah I think its a bit overdue to move to 8 as a minimum baseline. I'd be ok with exploring a multi-module interim step for at least bytecode through 11 |
This is now done on the |
Currently, it is hard to write tests since
jandex
repository defaults tosource=target=1.6
, and the test code that uses type annotations just does not compile.It would be nice if there was a way to add test classes right into
jandex
repository (e.g. via Maven toolchains or Gradle toolchains)The text was updated successfully, but these errors were encountered: