src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/NEWARRAY.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 48409 5ab69533994b
equal deleted inserted replaced
47358:d07d5f7cab35 47359:e1a6c0168741
     1 /*
     1 /*
     2  * reserved comment block
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT REMOVE OR ALTER!
     3  * @LastModified: Oct 2017
     4  */
     4  */
     5 /*
     5 /*
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  * contributor license agreements.  See the NOTICE file distributed with
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * this work for additional information regarding copyright ownership.
     8  * this work for additional information regarding copyright ownership.
    19  * limitations under the License.
    19  * limitations under the License.
    20  */
    20  */
    21 
    21 
    22 package com.sun.org.apache.bcel.internal.generic;
    22 package com.sun.org.apache.bcel.internal.generic;
    23 
    23 
       
    24 import com.sun.org.apache.bcel.internal.ExceptionConst;
       
    25 import com.sun.org.apache.bcel.internal.util.ByteSequence;
    24 import java.io.DataOutputStream;
    26 import java.io.DataOutputStream;
    25 import java.io.IOException;
    27 import java.io.IOException;
    26 
       
    27 import com.sun.org.apache.bcel.internal.ExceptionConst;
       
    28 import com.sun.org.apache.bcel.internal.util.ByteSequence;
       
    29 
    28 
    30 /**
    29 /**
    31  * NEWARRAY -  Create new array of basic type (int, short, ...)
    30  * NEWARRAY -  Create new array of basic type (int, short, ...)
    32  * <PRE>Stack: ..., count -&gt; ..., arrayref</PRE>
    31  * <PRE>Stack: ..., count -&gt; ..., arrayref</PRE>
    33  * type must be one of T_INT, T_SHORT, ...
    32  * type must be one of T_INT, T_SHORT, ...
   105     }
   104     }
   106 
   105 
   107 
   106 
   108     @Override
   107     @Override
   109     public Class<?>[] getExceptions() {
   108     public Class<?>[] getExceptions() {
   110         return new Class[] {
   109         return new Class<?>[] {
   111             ExceptionConst.NEGATIVE_ARRAY_SIZE_EXCEPTION
   110             ExceptionConst.NEGATIVE_ARRAY_SIZE_EXCEPTION
   112         };
   111         };
   113     }
   112     }
   114 
   113 
   115 
   114