-
Bug
-
Resolution: Future Project
-
P4
-
None
-
1.4.2
-
generic
-
generic
Name: dkR10031 Date: 12/26/2002
The current reference implementation (JDK 1.4.2beta, build b11)
of the javax.sound.midi.SysexMessage.getData() throws unspecified
NegativeArraySizeException. This behavior seems quite reasonable
but is not specified:
------------------ example code begin --------------------------
import javax.sound.midi.SysexMessage;
class MySysexMessageExtention extends SysexMessage {
MySysexMessageExtention(byte[] data) {
super(data);
}
}
public class MySysexMessage{
public static void main(String args[]) {
try {
MySysexMessageExtention mySME = new MySysexMessageExtention(null);
mySME.getData();
} catch (Exception e) {
System.out.println("Exception: " + e);
}
}
}
------------------ example code end ----------------------------
------------------ log begin -----------------------------------
bash-2.03$ uname -a
SunOS novo101 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-1
bash-2.03$ /export/ld25/java/dest/jdk1.4.2-b11/solaris-sparc/bin/java -showversion MySysexMessage
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b11)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b11, mixed mode)
Exception: java.lang.NegativeArraySizeException
------------------ log end -------------------------------------
======================================================================
- relates to
-
JDK-4912693 Behavior of null arguments not specified in Java Sound
- Resolved