< prev index next >

src/jdk.rmic/share/classes/sun/tools/java/RuntimeConstants.java

Print this page


   1 /*
   2  * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  52     char   SIGC_DOUBLE                = 'D';
  53     String SIG_DOUBLE                 = "D";
  54     char   SIGC_ARRAY                 = '[';
  55     String SIG_ARRAY                  = "[";
  56     char   SIGC_CLASS                 = 'L';
  57     String SIG_CLASS                  = "L";
  58     char   SIGC_METHOD                = '(';
  59     String SIG_METHOD                 = "(";
  60     char   SIGC_ENDCLASS              = ';';
  61     String SIG_ENDCLASS               = ";";
  62     char   SIGC_ENDMETHOD             = ')';
  63     String SIG_ENDMETHOD              = ")";
  64     char   SIGC_PACKAGE               = '/';
  65     String SIG_PACKAGE                = "/";
  66 
  67     /* Class File Constants */
  68     int JAVA_MAGIC                   = 0xcafebabe;
  69     int JAVA_MIN_SUPPORTED_VERSION   = 45;
  70     int JAVA_MAX_SUPPORTED_VERSION   = 57;
  71     int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0;
  72     int JAVA_MIN_PREVIEW_MAJOR_VERSION = 55; // preview intro'd in JDK 11
  73     int JAVA_PREVIEW_MINOR_VERSION   = 0xffff;
  74 
  75     /* Generate class file version for 1.1  by default */
  76     int JAVA_DEFAULT_VERSION         = 45;
  77     int JAVA_DEFAULT_MINOR_VERSION   = 3;
  78 
  79     /* Constant table */
  80     int CONSTANT_UTF8                = 1;
  81     int CONSTANT_UNICODE             = 2;
  82     int CONSTANT_INTEGER             = 3;
  83     int CONSTANT_FLOAT               = 4;
  84     int CONSTANT_LONG                = 5;
  85     int CONSTANT_DOUBLE              = 6;
  86     int CONSTANT_CLASS               = 7;
  87     int CONSTANT_STRING              = 8;
  88     int CONSTANT_FIELD               = 9;
  89     int CONSTANT_METHOD              = 10;
  90     int CONSTANT_INTERFACEMETHOD     = 11;
  91     int CONSTANT_NAMEANDTYPE         = 12;
  92     int CONSTANT_METHODHANDLE        = 15;
  93     int CONSTANT_METHODTYPE          = 16;


   1 /*
   2  * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  52     char   SIGC_DOUBLE                = 'D';
  53     String SIG_DOUBLE                 = "D";
  54     char   SIGC_ARRAY                 = '[';
  55     String SIG_ARRAY                  = "[";
  56     char   SIGC_CLASS                 = 'L';
  57     String SIG_CLASS                  = "L";
  58     char   SIGC_METHOD                = '(';
  59     String SIG_METHOD                 = "(";
  60     char   SIGC_ENDCLASS              = ';';
  61     String SIG_ENDCLASS               = ";";
  62     char   SIGC_ENDMETHOD             = ')';
  63     String SIG_ENDMETHOD              = ")";
  64     char   SIGC_PACKAGE               = '/';
  65     String SIG_PACKAGE                = "/";
  66 
  67     /* Class File Constants */
  68     int JAVA_MAGIC                   = 0xcafebabe;
  69     int JAVA_MIN_SUPPORTED_VERSION   = 45;
  70     int JAVA_MAX_SUPPORTED_VERSION   = 57;
  71     int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0;


  72 
  73     /* Generate class file version for 1.1  by default */
  74     int JAVA_DEFAULT_VERSION         = 45;
  75     int JAVA_DEFAULT_MINOR_VERSION   = 3;
  76 
  77     /* Constant table */
  78     int CONSTANT_UTF8                = 1;
  79     int CONSTANT_UNICODE             = 2;
  80     int CONSTANT_INTEGER             = 3;
  81     int CONSTANT_FLOAT               = 4;
  82     int CONSTANT_LONG                = 5;
  83     int CONSTANT_DOUBLE              = 6;
  84     int CONSTANT_CLASS               = 7;
  85     int CONSTANT_STRING              = 8;
  86     int CONSTANT_FIELD               = 9;
  87     int CONSTANT_METHOD              = 10;
  88     int CONSTANT_INTERFACEMETHOD     = 11;
  89     int CONSTANT_NAMEANDTYPE         = 12;
  90     int CONSTANT_METHODHANDLE        = 15;
  91     int CONSTANT_METHODTYPE          = 16;


< prev index next >