-
Bug
-
Resolution: Done
-
Major
-
4.3.1.Final
-
None
JDK version check in the annotation processor fails on JDK 14-ea / 15-ea
Currently https://github.com/infinispan/protostream/blob/master/processor/src/main/java/org/infinispan/protostream/annotations/impl/processor/AutoProtoSchemaBuilderAnnotationProcessor.java#L214 can't handle XY-ea builds of JDK
Caused by: java.lang.NumberFormatException: For input string: "14-ea" at java.lang.NumberFormatException.forInputString (NumberFormatException.java:68) at java.lang.Integer.parseInt (Integer.java:652) at java.lang.Integer.parseInt (Integer.java:770) at org.infinispan.protostream.annotations.impl.processor.AutoProtoSchemaBuilderAnnotationProcessor.getJavaMajorVersion (AutoProtoSchemaBuilderAnnotationProcessor.java:214)
Noticed via integration-tests/infinispan-client when trying to verify https://github.com/quarkusio/quarkus/issues/5554 with latest jdk builds.