Scott Leschke created FELIX-6396:
------------------------------------
Summary: Multi-release jar bundles?
Key: FELIX-6396
URL: https://issues.apache.org/jira/browse/FELIX-6396
Project: Felix
Issue Type: Bug
Environment: Karaf 4.30
openjdk-14.0.2
Windows Server 2016
Reporter: Scott Leschke
I have a JDBC driver jar (SAP HANA), that is built both as a bundle and an
MRJar file supporting JDKs 1.8, 9, 11. It works fine when I run Karaf using JDK
1.8, but if I try to use a more recent JDK, the driver throws the following
*Caused by: java.lang.AssertionError: Unexpected Java class loaded under Java
version 11 (maximum supported version is 8)*
at com.sap.db.jdbc.DriverSapDB._checkJavaVersion(DriverSapDB.java:2055) ~[?:?]
at com.sap.db.jdbc.DriverSapDB.checkJavaVersionMaximum8(DriverSapDB.java:2030)
~[?:?]
at com.sap.db.jdbc.Driver.(Driver.java:17) ~[?:?]
An SAP technical person says they think the classloader isn’t MRJar aware and
is loading the incorrect class. I most recently tried this with OpenJDK 14.x.
Since OSGi involves lots of classloader magic, might that be the case or might
something else be going on here?
The JDBC driver in question is SAP HANA file is ngdbc-2.5.52.jar although newer
versions exist. The driver can be downloaded from here:
[https://mvnrepository.com/artifact/com.sap.cloud.db.jdbc/ngdbc]
Thanks and regards,
Scott Leschke
--
This message was sent by Atlassian Jira
(v8.3.4#803005)