-
Notifications
You must be signed in to change notification settings - Fork 743
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
JDK8: org.json
dependency causes java version mistatch
#11870
Comments
We must keep JDK8 compatability for 13.x and I opened a ticket at I have an easy workaronud that when we shade the JAR i have to remove that |
Jdk8 isn't aware of meta-inf/versions, I do not think that would be the issue, Hmm, it only makes sense if org.json ri is compiled in jdk9 or higher, Pity about backwards compatibility, when is support for eol jdk8 to end? |
Fix primefaces#11860: 13.0.10 Dialog returnFocus when other dialogs open
Fix primefaces#11860: 13.0.10 Dialog returnFocus when other dialogs open
@GedMarc PrimeFaces 14.0.0 is out and its JDK11 only and JSF 2.3+ only however PF 13 is the last version to support JDK8 and JSF less than 2.3. So I have a feeling the 13.X version will be used for a long time until people can upgrade. |
Fix primefaces#11860: 13.0.10 Dialog returnFocus when other dialogs open
org.json
dependency causes java version mistatch
13.0.10 deployed to Maven Central. |
Describe the bug
i am using primefaces with running on jdk 8 wtih this dependency of
<dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>13.0.8</version> </dependency>
which contains a dependency of
<dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <optional>true</optional> </dependency>
.this org.json dependency has this code block
<execution> <id>add-module-infos</id> <phase>package</phase> <goals> <goal>add-module-info</goal> </goals> <configuration> <jvmVersion>9</jvmVersion> <module> <moduleInfoSource> module org.json { exports org.json; } </moduleInfoSource> </module> </configuration> </execution>
which causes my application to run on jdk 8 which causes
java.lang.UnsupportedClassVersionError: Failed to link META-INF/versions/9/module-info (Module "deployment.app.war" from Service Module Loader): META-INF/versions/9/module-info has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only
exception.
this is not happening when using version 13.0.7.
Reproducer
No response
Expected behavior
No response
PrimeFaces edition
Community
PrimeFaces version
13.0.8
Theme
No response
JSF implementation
All
JSF version
2.2
Java version
1.8
Browser(s)
No response
The text was updated successfully, but these errors were encountered: