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

Compilation Error in test\javax\swing\JMenuItem\6458123\bug6458123.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 6u23
    • client-libs

      Could not compile the regression test test\javax\swing\JMenuItem\6458123\bug6458123.java getting the following errors

      bug6458123.java:197: ';' expected
               Icon arrowIcon = (Icon) getF, arrowIcon, viewRect, gap, accDelimiter, i
      sLeftToRight, mi.getFont(), accFont, useCheckAndArrow, propertyPrefix);

      looking at the 7ws version http://closedjdk.sfbay.sun.com/jdk7/swing/jdk/test/closed/javax\swing\JMenuItem\6458123\bug6458123.java looks like portion of the code between the missing tags is not there in the 6u23 repo.


          private MenuItemLayoutHelper createBasicLayoutHelper(JMenuItem mi) {
              BasicMenuItemUI ui = (BasicMenuItemUI) mi.getUI();
              Icon checkIcon = (Icon) getField(ui, "checkIcon");
              Icon arrowIcon = (Icon) getF
      ----------------------------------------
      <missing>

      ield(ui, "arrowIcon");
              Rectangle viewRect = new Rectangle(mi.getSize());
              int gap = defaultGap(mi);
              String accDelimiter = (String) getField(ui, "acceleratorDelimiter");
              boolean isLeftToRight = mi.getComponentOrientation().isLeftToRight();
              Font accFont = (Font) getField(ui, "acceleratorFont");
              boolean useCheckAndArrow = MenuItemLayoutHelper.useCheckAndArrow(mi);
              String propertyPrefix = getPropertyPrefix(ui);

              return new MenuItemLayoutHelper(mi, checkIcon

      </missing>
      ---------------------------

      ,arrowIcon, viewRect,
                      gap, accDelimiter, isLeftToRight, mi.getFont(), accFont,
                      useCheckAndArrow, propertyPrefix
              );
          }

            karunakar Karunakar Gajjala (Inactive)
            ammanick Asha Manicka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: