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

Warning on Java 11 #3

Closed
tommccallum opened this issue Oct 22, 2021 · 3 comments
Closed

Warning on Java 11 #3

tommccallum opened this issue Oct 22, 2021 · 3 comments
Assignees
Labels
dev Issues related the development experience
Milestone

Comments

@tommccallum
Copy link

First off, great work this is a really useful tool that I will be using at our university to help our students.

I got this warning on Fedora 32, Java 11, VS Code:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/tom/.vscode/extensions/bigmodelingtools.erdiagram-0.0.2/server/erdiagram-language-server/lib/guice-3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
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
[Warn - 09:25:33] Model requests are not supported by the Xtext diagram server.

$ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment 18.9 (build 11.0.11+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9, mixed mode, sharing)

$ code -v
1.61.2
6cba118ac49a1b88332f312a8f67186f7f3c1643
x64

This is why I think when I try and use with the latest openjdk it also fails.

@borkdominik borkdominik added the bug Problems related to bugs label Oct 22, 2021
@borkdominik
Copy link
Owner

Thanks @tommccallum for the positive feedback and the bug report.
We plan a new release for early November and will look into this.

@plglaser
Copy link
Collaborator

plglaser commented Dec 4, 2021

I recently updated the tool including some changes dealing with this issue. The tool should now be available for later JDK versions and the "[Warn - 09:25:33] Model requests are not supported by the Xtext diagram server." - message should not appear anymore.

Could you try again with the latest version from the marketplace (v0.0.3) and report back any issues?

Using the tool with JDK 17+ could still be a problem and the reflective access warnings might still appear, due to an old guice version. As far as I can tell, this is coming from Xtext and it seems the newest version fixes this. I will try updating to the newest version, in a future release.

@plglaser plglaser added Done dev Issues related the development experience and removed bug Problems related to bugs labels Aug 5, 2022
@plglaser plglaser self-assigned this Aug 5, 2022
@plglaser
Copy link
Collaborator

plglaser commented Aug 5, 2022

Updated to a newer Xtext version, which will be included in the new release (v0.1.0) and closes this issue.

Feel free to open the issue again if you still encounter any problems after updating to the latest version.

@plglaser plglaser closed this as completed Aug 5, 2022
@plglaser plglaser added this to the v0.1.0 milestone Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Issues related the development experience
Projects
None yet
Development

No branches or pull requests

3 participants