[infinispan-issues] [JBoss JIRA] (IPROTO-126) JDK version check in the annotation processor fails on JDK 14-ea / 15-ea

Nistor Adrian (Jira) issues at jboss.org
Thu Jan 23 06:41:47 EST 2020


     [ https://issues.redhat.com/browse/IPROTO-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nistor Adrian updated IPROTO-126:
---------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


Fixed, to be released in 4.3.2.Final

> JDK version check in the annotation processor fails on JDK 14-ea / 15-ea
> ------------------------------------------------------------------------
>
>                 Key: IPROTO-126
>                 URL: https://issues.redhat.com/browse/IPROTO-126
>             Project: Infinispan ProtoStream
>          Issue Type: Bug
>    Affects Versions: 4.3.1.Final
>            Reporter: Rostislav Svoboda
>            Assignee: Nistor Adrian
>            Priority: Major
>             Fix For: 4.3.2.Final
>
>
> 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
> {code}
> 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)
> {code}
> Noticed via integration-tests/infinispan-client when trying to verify https://github.com/quarkusio/quarkus/issues/5554 with latest jdk builds.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list