-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0, 5.0
-
b28
-
generic, sparc
-
generic, solaris_2.6
Resubmission of previous bug, which applied to 9 files.
javax.media.sound.sampled.AudioPermission throws IllegalArgumentException
with an empty String argument in jdk kesrel due to incompatible
API change (CCC 4240252).
The javadoc for these classes stays silent about IllegalArgumentException.
The javadoc for these classes should be fixed to specify
IllegalArgumentException.
Here is the example demonstrating the bug:
------------- Test04.java -------------------------
public class Test04 {
public static void main (String argv[]) {
new RuntimePermission("");
System.out.println("");
return;
}
}
========= Sample run (JDK1.3) ==========
java Test04
Exception in thread "main" java.lang.IllegalArgumentException: name can't be
empty
at java.security.BasicPermission.init(BasicPermission.java:83)
at java.security.BasicPermission.<init>(BasicPermission.java:115)
at java.lang.RuntimePermission.<init>(RuntimePermission.java:271)
at Test04.main(Test04.java:4)
======================================================================
javax.media.sound.sampled.AudioPermission throws IllegalArgumentException
with an empty String argument in jdk kesrel due to incompatible
API change (CCC 4240252).
The javadoc for these classes stays silent about IllegalArgumentException.
The javadoc for these classes should be fixed to specify
IllegalArgumentException.
Here is the example demonstrating the bug:
------------- Test04.java -------------------------
public class Test04 {
public static void main (String argv[]) {
new RuntimePermission("");
System.out.println("");
return;
}
}
========= Sample run (JDK1.3) ==========
java Test04
Exception in thread "main" java.lang.IllegalArgumentException: name can't be
empty
at java.security.BasicPermission.init(BasicPermission.java:83)
at java.security.BasicPermission.<init>(BasicPermission.java:115)
at java.lang.RuntimePermission.<init>(RuntimePermission.java:271)
at Test04.main(Test04.java:4)
======================================================================
- duplicates
-
JDK-4269279 java.security.BasicPermission subclasses throw undocumented exception
-
- Closed
-
- relates to
-
JDK-5002910 (reflect spec) ReflectPermission doesn't specify throws for name = null | ""
-
- Closed
-