JDK-4274149 : SPEC: AudioPermission throws undocumented IllegalArgumentException
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 1999-09-21
  • Updated: 2017-05-16
  • Resolved: 2003-11-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b28Fixed
Related Reports
Duplicate :  
Relates :  
Description
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)

                ======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b28 tiger-beta
14-06-2004

PUBLIC COMMENTS AudioPermission throws undocumented IllegalArgumentException
10-06-2004

EVALUATION ###@###.### 2003-08-07 Should be handled for tiger. ###@###.### 2003-09-22 Sufficient to fix the javadoc.
07-08-2003