Skip to content

Java 11 compatibility #43

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

Merged
merged 13 commits into from
Oct 19, 2020
Merged

Java 11 compatibility #43

merged 13 commits into from
Oct 19, 2020

Conversation

lucebac
Copy link
Contributor

@lucebac lucebac commented Sep 25, 2020

No description provided.

@lucebac lucebac force-pushed the java-11-compatibility branch from 0ab3f6a to 6ee89b3 Compare September 25, 2020 11:53
@lucebac lucebac force-pushed the java-11-compatibility branch from 6ee89b3 to 54198d3 Compare September 25, 2020 11:53
@ic0ns ic0ns requested a review from mgierlings September 30, 2020 07:48
@ic0ns
Copy link
Contributor

ic0ns commented Sep 30, 2020

@mgierlings can you take a look at this/these PR's?

@lucebac
Copy link
Contributor Author

lucebac commented Oct 1, 2020

especially the changed test in this PR does need review b/c i needed to change the source/expected (java 11 formats the xml differently than java 8). I could use some help here on how to configure the formatter properly.

@lucebac
Copy link
Contributor Author

lucebac commented Oct 16, 2020

From what I can tell, the issue with the incorrect formatting is now resolved with the latest commits. Could you please verify that?

Copy link
Contributor

@jurajsomorovsky jurajsomorovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just please clarify my question

@jurajsomorovsky
Copy link
Contributor

Btw, I am getting the following error when using OpenJDK 11

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.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$1
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

Apparently, this will should be fixed with newer versions, so no problem, see google/guice#1133

@lucebac
Copy link
Contributor Author

lucebac commented Oct 19, 2020

Btw, I am getting the following error when using OpenJDK 11

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.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$1
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

Apparently, this will should be fixed with newer versions, so no problem, see google/guice#1133

I'm not seeing the illegal reflected access you mentioned. Could you tell me, when this happened? Guice is not a direct dependency of ModifiableVariable, nor does it seem to be a transitive dependency (according to mvn dependency:tree). Thus, I think you are just using an old version of maven that produces this errors on Java 11.

@jurajsomorovsky
Copy link
Contributor

Yes, this seems to be only because of my mvn version:

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 14.0.1, vendor: Private Build, runtime: /usr/lib/jvm/java-14-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-51-generic", arch: "amd64", family: "unix"

(otherwise, if java home is not set, then we get an exception)
This way, we use the standard system version if not defined by java home
@jurajsomorovsky jurajsomorovsky merged commit ec892b2 into master Oct 19, 2020
@ic0ns ic0ns deleted the java-11-compatibility branch October 23, 2020 13:23
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

Successfully merging this pull request may close these issues.

3 participants