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

The case failed automatically and thrown java.lang.ArrayIndexOutOfBoundsException exception.

XMLWordPrintable

    • 2d
    • b137
    • x86
    • linux_ubuntu

      Testsuite name: 2D Regression
      Test name(s): closed/java/awt/font/TextLayout/TestJustification.html
      Product(s) tested: JDK 9 b96 (32bit)
      OS/architecture: Ubuntu15.10 x86



      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression: Yes
      [If Regression] Regression introduced in release/build: b96 (JDK 9 b95 on the same OS: PASS)
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue: No (same build with Win7 sp1 x86: Pass
                                                           same build with Mac10.11 x64: Failed as the same issue
                                                           same build with Solaris11.3 sparc: Failed as the same issue
                                                           same build with Solaris 11.2 x64: Failed as the same issue)
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
      [If new configuration testing] Issue specific to execution mode or OS/browser version:



      Actual behavior:
      The case failed automatically and thrown the following exception:

      java.lang.ArrayIndexOutOfBoundsException: 1448
      at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:814)
      at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:548)
      at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:480)
      at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:330)
      at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:566)
      at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:359)
      at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:440)
      at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:413)
      at TestJustification$JustificationPanel.paint(TestJustification.java:189)
      at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
      at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:66)
      at sun.awt.RepaintArea.paint(RepaintArea.java:240)
      at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:595)
      at java.awt.Component.dispatchEventImpl(Component.java:5047)
      at java.awt.Container.dispatchEventImpl(Container.java:2317)
      at java.awt.Component.dispatchEvent(Component.java:4818)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:712)
      at java.awt.EventQueue$3.run(EventQueue.java:706)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.awt.EventQueue$4.run(EventQueue.java:734)
      at java.awt.EventQueue$4.run(EventQueue.java:732)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:77)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:731)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)


      The following case have the same issue:
      closed/javax/swing/text/AbstractDocument/4904691/SurrogateApp.html



      Actual behavior:
      Copied the CODE2001.TTF true type font to /home/egtc/regression/jdk-9/lib/fonts dirtory,rerun the case,there is nonthing in Surrogate,refer to SurrogateApp.jpg.Useing jdk-9 to compile SurrogateApp.java then run it in appletviewer,it throws java.lang.ArrayIndexOutOfBoundsException exception in the terminal.

            prr Philip Race
            michaelw Michael Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: