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

Even more problems with latest jdt #3188

Closed
cdietrich opened this issue Sep 8, 2024 · 10 comments
Closed

Even more problems with latest jdt #3188

cdietrich opened this issue Sep 8, 2024 · 10 comments
Milestone

Comments

@cdietrich
Copy link
Member

/home/jenkins/agent/workspace/xtext_main/org.eclipse.xtext.xbase.testing/src/org/eclipse/xtext/xbase/testing/InMemoryJavaCompiler.java:[207]
05:21:12 [ERROR] this.compilerOptions.inlineJsrBytecode = true;
05:21:12 [ERROR] ^^^^^^^^^^^^^^^^^
05:21:12 [ERROR] inlineJsrBytecode cannot be resolved or is not a field
05:21:12 [ERROR] 1 problem (1

@cdietrich
Copy link
Member Author

@iloveeclipse what is the proper replacement?

@iloveeclipse
Copy link
Contributor

iloveeclipse commented Sep 8, 2024

Simply remove it, the option is enabled by default, it isn't option anymore.

@cdietrich
Copy link
Member Author

of course now i see a ton of test errors i cannot reproduce locally.

@cdietrich
Copy link
Member Author

Caused by: java.lang.Error: Unresolved compilation problem:
SANITY CHECK: Invalid opcode -88 at pc 162 for stackmap table attribute for method foo()

at foo.Test.foo(Test.java:7)
... 59 more

@cdietrich
Copy link
Member Author

=> i assume we need to use another ton of reflection :(

@iloveeclipse
Copy link
Contributor

iloveeclipse commented Sep 8, 2024

Not sure why Xtext used inlineJsrBytecode at all, but that option is always on for JDT compilation with 4.33+ SDK, and before it was possible to switch it off for target < 1.8. I believe with very old targets (<1.4?) it shouldn't be used either.

See eclipse-jdt/eclipse.jdt.core#2759

@cdietrich
Copy link
Member Author

xtext java 11 uses jdt 3.33

@iloveeclipse
Copy link
Contributor

xtext java 11 uses jdt 3.33

You mean 4.33? The option there is always true independently what is set. In 4.34 the option is gone.

@cdietrich
Copy link
Member Author

jdt core 3.33

@iloveeclipse
Copy link
Contributor

OMG

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

3 participants