-
Bug
-
Resolution: Fixed
-
P3
-
8
-
b112
-
x86
-
os_x
Some macosx-specific java code contains conditions flagged by the javac -Xlint:auxiliaryclass,empty flags, preventing those flags from being used in the build of the jdk repo:
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventHandler.java:267: warning: auxiliary class _OpenAppHandler in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventLegacyHandler.java should not be accessed from outside its own source file
class _OpenAppDispatcher extends _QueuingAppEventDispatcher<com.apple.eawt._OpenAppHandler> {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventHandler.java:268: warning: auxiliary class _OpenAppHandler in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventLegacyHandler.java should not be accessed from outside its own source file
void performUsing(com.apple.eawt._OpenAppHandler handler, _NativeEvent event) {
^
error: warnings found and -Werror specified
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaFileChooserUI.java:1138: warning: auxiliary class AquaComboBoxRendererInternal in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxRenderer.java should not be accessed from outside its own source file
return new AquaComboBoxRendererInternal(directoryComboBox) {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaFileChooserUI.java:1249: warning: auxiliary class AquaComboBoxRendererInternal in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxRenderer.java should not be accessed from outside its own source file
return new AquaComboBoxRendererInternal(filterComboBox) {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaMenuBarUI.java:76: warning: [empty] empty statement after if
if (setScreenMenuBar((JFrame)(c.getTopLevelAncestor()))) ;
^
These warning categories should be cleared in this code so the entire jdk repo can be protected by these javac checks.
See related build-dev thread:
http://mail.openjdk.java.net/pipermail/build-dev/2013-August/009795.html
http://mail.openjdk.java.net/pipermail/build-dev/2013-September/010050.html
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventHandler.java:267: warning: auxiliary class _OpenAppHandler in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventLegacyHandler.java should not be accessed from outside its own source file
class _OpenAppDispatcher extends _QueuingAppEventDispatcher<com.apple.eawt._OpenAppHandler> {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventHandler.java:268: warning: auxiliary class _OpenAppHandler in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/eawt/_AppEventLegacyHandler.java should not be accessed from outside its own source file
void performUsing(com.apple.eawt._OpenAppHandler handler, _NativeEvent event) {
^
error: warnings found and -Werror specified
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaFileChooserUI.java:1138: warning: auxiliary class AquaComboBoxRendererInternal in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxRenderer.java should not be accessed from outside its own source file
return new AquaComboBoxRendererInternal(directoryComboBox) {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaFileChooserUI.java:1249: warning: auxiliary class AquaComboBoxRendererInternal in /opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxRenderer.java should not be accessed from outside its own source file
return new AquaComboBoxRendererInternal(filterComboBox) {
^
/opt/jprt/T/P1/233622.juh/s/jdk/src/macosx/classes/com/apple/laf/AquaMenuBarUI.java:76: warning: [empty] empty statement after if
if (setScreenMenuBar((JFrame)(c.getTopLevelAncestor()))) ;
^
These warning categories should be cleared in this code so the entire jdk repo can be protected by these javac checks.
See related build-dev thread:
http://mail.openjdk.java.net/pipermail/build-dev/2013-August/009795.html
http://mail.openjdk.java.net/pipermail/build-dev/2013-September/010050.html
- blocks
-
JDK-8024603 Turn on javac lint checking for auxiliaryclass, empty, and try in jdk build
-
- Resolved
-
- relates to
-
JDK-8024601 Windows networking code prevents use of -Xlint:auxiliaryclass in jdk build
-
- Resolved
-
-
JDK-8024642 jfr code prevents use of -Xlint:try in jdk build
-
- Resolved
-