Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-993

Apache Pivot does not work with Oracle JDK8u131

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.4
    • 2.1, 2.0.5
    • all
    • None
    • 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)

    Description

      Attempting to run a Pivot application with Oracle JDK8u131 results in the following stacktrace

      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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              rwhitcomb Roger Lee Whitcomb
              aalmiray Andres Almiray
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: