Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-126

JDK version check in the annotation processor fails on JDK 14-ea / 15-ea

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.2.Final
    • 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.

              anistor Adrian Nistor (Inactive)
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: