Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4798003

SPEC: unspecified NegativeArraySizeException

    Details

      Description



      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 -------------------------------------

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amenkov Alex Menkov
                Reporter:
                dimasunw Dima Dima (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: