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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 6u23
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      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
              );
          }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: