moresandeep commented on code in PR #1333:
URL: https://github.com/apache/knox/pull/1333#discussion_r3678403720
##########
pom.xml:
##########
@@ -193,7 +193,7 @@
<cryptacular.version>1.3.0</cryptacular.version>
<curator.version>5.4.0</curator.version>
<dependency-check-maven.version>6.0.3</dependency-check-maven.version>
- <derby.db.version>10.14.2.0</derby.db.version> <!-- 10.15.1.3 requires
Java 9 -->
+ <derby.db.version>10.17.1.0</derby.db.version>
Review Comment:
The problem is Derby 10.17.1.0 is compiled for Java 19 (class-file version
63) and requires a Java 21 runtime. Knox targets Java 17. Java 17 compiler
can't read Derby 10.17's class files, producing:
```
cannot access org.apache.derby.jdbc.EmbeddedDataSource
bad class file: derbytools-10.17.1.0.jar(.../EmbeddedDataSource.class)
class file has wrong version 63.0, should be 61.0
```
Derby's JDK requirements are: 10.15 --> Java 9, 10.16.x --> Java 17, 10.17.x
---> Java 21. So 10.17.1.0 is too new.
The problem is that 10.16.x line has issues and so does 10.14.x
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]