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

Remainder operation seems to cause an exception in 1.4.2_12

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      The attached test program sometimes outputs an exception.

      CONFIGURATION :
       - JRE : 1.4.2_12 for sparc edition
       - OS : Solaris 10(SunOS chive 5.10 Generic sun4u sparc SUNW,Ultra-5_10)

      REPRODUCE :
       1) Run the attached run.sh in 1.4.2_XX
       
      EXPECTED :
       chive[22]% run.sh
      1 java -server HashCodeTest
      2 java -server HashCodeTest
      3 java -server HashCodeTest
      4 java -server HashCodeTest
      5 java -server HashCodeTest
      6 java -server HashCodeTest
      7java -server HashCodeTest
      8 java -server HashCodeTest
      .........

      ACTUAL :
      chive[25]% run.sh
      1 java -server HashCodeTest
      Exception in thread "main" java.lang.RuntimeException: -1077554975%2047=1178
              at HashCodeTest.run(HashCodeTest.java:21)
              at HashCodeTest.main(HashCodeTest.java:6)
      2 java -server HashCodeTest
      Exception in thread "main" java.lang.RuntimeException: -1077554975%2047=1178
              at HashCodeTest.run(HashCodeTest.java:21)
              at HashCodeTest.main(HashCodeTest.java:6)
      3 java -server HashCodeTest
      Exception in thread "main" java.lang.RuntimeException: -1077554975%2047=1178
              at HashCodeTest.run(HashCodeTest.java:21)
              at HashCodeTest.main(HashCodeTest.java:6)
      4 java -server HashCodeTest
      Exception in thread "main" java.lang.RuntimeException: -1077554975%2047=1178
              at HashCodeTest.run(HashCodeTest.java:21)
              at HashCodeTest.main(HashCodeTest.java:6)
      .......


      NOTE :
       - This problem does not occur in 1.3.1, 1.4.1 and 5.0
       - This problem does not occur in -client and -Xint

      -----

        Attachments

          Activity

            People

            Assignee:
            poonam Poonam Bajaj Parhar
            Reporter:
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: