-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
6u23
-
generic
-
generic
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
);
}
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
);
}
- duplicates
-
JDK-6997390 test/javax/swing/JMenuItem/6458123/bug6458123.java is failing to compile and run.
- Closed
- relates to
-
JDK-6458123 Bugs in menu item layout
- Closed