Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2261

[drlvm][jit][opt] java.awt.ScrollbarTest fails on Jitrino.OPT while passes on Jitrino.JET

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Environment:
      Linux SUSE9 gcc 3.3.3 / ia32
    • Patch Info:
      Patch Available

      Description

      shell> $HARMONY -Xem:jet -Xbootclasspath/a:$classlib/depends/jars/junit_3.8.2/junit.jar:$classlib/modules/awt/bin/test:$classlib/deploy/build/test/support.jar junit.textui.TestRunner java.awt.ScrollbarTest
      .............................
      Time: 0.266

      OK (29 tests)

      shell> $HARMONY -Xem:opt -Xbootclasspath/a:$classlib/depends/jars/junit_3.8.2/junit.jar:$classlib/modules/awt/bin/test:$classlib/deploy/build/test/support.jar junit.textui.TestRunner java.awt.ScrollbarTest
      ..........F..F..............F...
      Time: 0.961
      There were 3 failures:
      1) testSetMinimum(java.awt.ScrollbarTest)junit.framework.AssertionFailedError: expected:<-11> but was:<-2147483648>
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:46)
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:66)
      at java.awt.ScrollbarTest.testSetMinimum(ScrollbarTest.java:170)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)
      2) testSetMaximum(java.awt.ScrollbarTest)junit.framework.AssertionFailedError: expected:<10> but was:<-2147483549>
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:47)
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:66)
      at java.awt.ScrollbarTest.testSetMaximum(ScrollbarTest.java:197)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)
      3) testSetValues(java.awt.ScrollbarTest)junit.framework.AssertionFailedError: expected:<-201> but was:<-2147483648>
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:46)
      at java.awt.ScrollbarTest.checkScrollbar(ScrollbarTest.java:66)
      at java.awt.ScrollbarTest.testSetValues(ScrollbarTest.java:303)
      at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      FAILURES!!!
      Tests run: 29, Failures: 3, Errors: 0

        Attachments

        1. 0001-HARMONY-2261-regression-test-ver2.txt
          2 kB
          Egor Pasko
        2. 0001-HARMONY-2261-fix-RCE-is-aware-of-integer-overflows-comments-fixed.txt
          5 kB
          Egor Pasko
        3. patch.diff
          2 kB
          Nikolay Sidelnikov
        4. Test.java
          0.7 kB
          Egor Pasko

          Activity

            People

            • Assignee:
              varlax Alexey Varlamov
              Reporter:
              egor Egor Pasko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: