-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b66
-
x86
-
windows
-
Verified
Constructor java.awt.TrayIcon(Image) says
"@throws IllegalArgumentException if <code>image</code> is <code>null</code>"
but it uses method TrayIcon.setImage(Image) that throws (specified) NPE.
Tests expect IAE to be thrown from TrayIcon constructors for null image, receive (unexpected) NPE and fail.
JCK 7 b06
JDK 7 b36
Platforms:
- failed on Windows 2003
- passed on Solaris Sparc
The following JCK tests fail due to this problem:
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2007]
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2004]
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2002]
Reproducible on Solaris as well.
"@throws IllegalArgumentException if <code>image</code> is <code>null</code>"
but it uses method TrayIcon.setImage(Image) that throws (specified) NPE.
Tests expect IAE to be thrown from TrayIcon constructors for null image, receive (unexpected) NPE and fail.
JCK 7 b06
JDK 7 b36
Platforms:
- failed on Windows 2003
- passed on Solaris Sparc
The following JCK tests fail due to this problem:
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2007]
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2004]
api/java_awt/TrayIcon/index.html#Ctors[testNullImageResultsInIAE2002]
Reproducible on Solaris as well.
- relates to
-
JDK-6280057 I have audited SystemTray and TrayIcon code
-
- Closed
-