pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-993) Apache Pivot does not work with Oracle JDK8u131
Date Mon, 24 Apr 2017 18:47:04 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981658#comment-15981658
] 

Roger Whitcomb commented on PIVOT-993:
--------------------------------------

Fixed the calculations in "getNumber" now that we're using a "long" for the result.

Updated the IllegalArgumentException messages to allow 0x7FFF as an inclusive value.

Added a core "VersionTest.java" to test a number of the changes.

"trunk":
Sending        core\src\org\apache\pivot\util\Version.java
Adding         core\test\org\apache\pivot\util\test\VersionTest.java
Transmitting file data ..done
Committing transaction...
Committed revision 1792531.


> Apache Pivot does not work with Oracle JDK8u131
> -----------------------------------------------
>
>                 Key: PIVOT-993
>                 URL: https://issues.apache.org/jira/browse/PIVOT-993
>             Project: Pivot
>          Issue Type: Bug
>          Components: all
>    Affects Versions: 2.0.4
>         Environment: java version "1.8.0_131"
> Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
>            Reporter: Andres Almiray
>            Assignee: Sandro Martini
>            Priority: Critical
>             Fix For: 2.1, 2.0.5
>
>
> Attempting to run a Pivot application with Oracle JDK8u131 results in the following stacktrace
> {code}
> Caused by: java.lang.NumberFormatException: Value out of range. Value:"131" Radix:10
> 	at java.lang.Byte.parseByte(Byte.java:151)
> 	at java.lang.Byte.parseByte(Byte.java:175)
> 	at org.apache.pivot.util.Version.decode(Version.java:150)
> 	at org.apache.pivot.wtk.ApplicationContext.<clinit>(ApplicationContext.java:1697)
> 	... 15 more
> {code}
> The problem is located in the `Version` class. This class parses version numbers using
Byte. 131 is clearly out of range. Should use `Short` or `Integer` instead.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message