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

b4723783 fails due to StringIndexOutOfBoundsException

XMLWordPrintable

    • generic
    • generic

      The following VM/NSK test fails with JDK7-B72 on all of my
      Solaris X86 configs:

          nsk/hprof/regression/b4723783

      RT_Baseline is showing that this test is failing in all configs
      (Linux, Solaris SPARC, Solaris X86, Win*) starting on 2009.09.21
      which is when the first job using JDK7-B72 was tested. Here is
      one example;

      http://sqeweb.sfbay.sun.com/nfs/tools/gtee/results/JDK7/NIGHTLY/VM/2009-09-21/RT_Baseline/vm/solaris-sparc/server/comp/solaris-sparc_server_comp_nsk.hprof.testlist/ResultDir/b4723783/b4723783.log


      This test executes the hprof profiler on the Java2Demo program.
      Here is the b4723783.cfg file:

      # %W% %E%
      # Copyright %G% Sun Microsystems, Inc.

      if [ "${REGRESSION_TESTING}" = "DEDICATED" ]; then
          # This test was originally targeted against product java and the following VM mode:
          TARGET_JAVA_OPTS=-client -Xcomp

          JAVA_OPTS=`${SWAP_OPTS} "${JAVA_OPTS}" "${TARGET_JAVA_OPTS}"`
      fi

      JAVA_OPTS=$JAVA_OPTS -Xrunhprof:cpu=times -jar $TESTBASE/lib/Java2Demo/Java2Demo.jar -runs=1
      EXECUTE_CLASS=


      Here are the top 25 lines of the attached b4723783.err file:

      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b72)
      Java HotSpot(TM) Server VM (build 17.0-b01, compiled mode)

      Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
              at java.lang.String.charAt(String.java:694)
              at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:248)
              at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth(MenuItemLayoutHelper.java:162)
              at sun.swing.MenuItemLayoutHelper.calcExtraWidths(MenuItemLayoutHelper.java:158)
              at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148)
              at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107)
              at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:408)
              at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:363)
              at javax.swing.JComponent.getPreferredSize(JComponent.java:1650)
              at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
              at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:300)
              at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60)
              at java.awt.Container.preferredSize(Container.java:1644)
              at java.awt.Container.getPreferredSize(Container.java:1629)
              at javax.swing.JComponent.getPreferredSize(JComponent.java:1652)
              at java.awt.FlowLayout.layoutContainer(FlowLayout.java:609)
              at java.awt.Container.layout(Container.java:1465)
              at java.awt.Container.doLayout(Container.java:1454)
              at java.awt.Container.validateTree(Container.java:1552)
              at java.awt.Container.validateTree(Container.java:1558)
              at java.awt.Container.validateTree(Container.java:1558)


      The .err file above is from my Client VM fastdebug -Xcomp config, but
      all of my Solaris X86 configs failed this test as of JDK7-B72.

            ttzhang Tao Zhang
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: