Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6231558

JVM outputs exceptions or crash with a program using Big interger in 1.4.2_08b2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.2_08
    • 1.4.2_08
    • hotspot
    • 1.4.1
    • b03
    • x86
    • linux, windows_xp
    • Not verified

      A customer has found out an exception(or crash) in 1.4.2_08b02.

      REPRODUCE :
        (1) Compile the attached program, Big.java
        (2) Launch "java -client Big 5" in 1.4.2_08b02
        (3) The following message will appears.

      K:\tmp>java -version
      java version "1.4.2_08"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_08-b02, mixed mode)

      K:\tmp>javac *.java

      K:\tmp>java -client Big 5
      java.lang.NullPointerException
              at java.math.BigInteger.toString(BigInteger.java:2583)
              at java.math.BigInteger.toString(BigInteger.java:2613)
              at Big.run(Big.java:17)
      java.lang.NullPointerException
              at java.math.BigInteger.toString(BigInteger.java:2583)
              at java.math.BigInteger.toString(BigInteger.java:2613)
              at Big.run(Big.java:17)
      java.lang.NumberFormatException: For input string: "null"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.
      java:48)
              at java.lang.Integer.parseInt(Integer.java:468)
              at java.math.BigInteger.<init>(BigInteger.java:314)
              at java.math.BigInteger.<init>(BigInteger.java:447)
              at Big.run(Big.java:16)

      CONFIGURATION :
        JRE/JDK : 1.4.2_08b02
        OS : WindowsXP(SP1, Japanese)

      NOTE:
        This seems related to 6215242 and might be regression.

      ###@###.### 2005-2-22 09:10:49 GMT

            tmoscovisunw Tal Moscovitz (Inactive)
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: