JadiraOrg / jadira

Jadira Framework
Apache License 2.0
74 stars 44 forks source link

Jadira Usertypes with Java 10 throws java.lang.ArrayIndexOutOfBoundsException on initialisation #71

Open woditschka opened 6 years ago

woditschka commented 6 years ago

When starting an JPA application with jadira usertype 6.0.1.GA the application fails to start when parsing the Java version:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
       at org.jadira.usertype.spi.utils.runtime.JavaVersion.<clinit>(JavaVersion.java:16)
Crim commented 6 years ago

Same issue here w/ JRE 10

Crim commented 6 years ago

Looks like it was resolved in 7.0.0.CR1 release.

chrisphe commented 6 years ago

Great

davidkarlsen commented 6 years ago

Will there be a final release soon?

rafal-glowinski commented 6 years ago

And still not released :(

alessiostalla commented 5 years ago

Java 13 has the same problem.

alessiostalla commented 5 years ago

Also in 6.0.1.GA the logic in the hibernate type integrator to check the Java version is wrong. To check for Java 8+ it checks major >= 1 AND minor >= 8 while it should be major > 1 OR minor >= 8. In 7.0.0.CR1 the logic has changed.