< prev index next >

jdk/test/sun/tools/java/CFCTest.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8011805
  27  * @modules jdk.rmic/sun.tools.java jdk.rmic/sun.rmi.rmic
  28  * @summary Update sun.tools.java class file reading/writing support to include
  29  *   the new constant pool entries (including invokedynamic)



  30  */
  31 
  32 import java.io.DataInputStream;
  33 import java.io.EOFException;
  34 import java.io.File;
  35 import java.io.FileInputStream;
  36 import java.io.IOException;
  37 import sun.tools.java.ClassDeclaration;
  38 import sun.tools.java.Identifier;
  39 import sun.rmi.rmic.BatchEnvironment;
  40 
  41 public class CFCTest {
  42 
  43     /* Constant table */
  44     private static final int CONSTANT_UTF8 = 1;
  45     private static final int CONSTANT_INTEGER = 3;
  46     private static final int CONSTANT_FLOAT = 4;
  47     private static final int CONSTANT_LONG = 5;
  48     private static final int CONSTANT_DOUBLE = 6;
  49     private static final int CONSTANT_CLASS = 7;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8011805

  27  * @summary Update sun.tools.java class file reading/writing support to include
  28  *   the new constant pool entries (including invokedynamic)
  29  * @modules jdk.rmic/sun.rmi.rmic
  30  *          jdk.rmic/sun.tools.java
  31  * @run main CFCTest
  32  */
  33 
  34 import java.io.DataInputStream;
  35 import java.io.EOFException;
  36 import java.io.File;
  37 import java.io.FileInputStream;
  38 import java.io.IOException;
  39 import sun.tools.java.ClassDeclaration;
  40 import sun.tools.java.Identifier;
  41 import sun.rmi.rmic.BatchEnvironment;
  42 
  43 public class CFCTest {
  44 
  45     /* Constant table */
  46     private static final int CONSTANT_UTF8 = 1;
  47     private static final int CONSTANT_INTEGER = 3;
  48     private static final int CONSTANT_FLOAT = 4;
  49     private static final int CONSTANT_LONG = 5;
  50     private static final int CONSTANT_DOUBLE = 6;
  51     private static final int CONSTANT_CLASS = 7;


< prev index next >