797N/A * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 553N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 553N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 0N/A/** The classfile version target. 580N/A * <p><b>This is NOT part of any supported API. 580N/A * If you write code that depends on this, you do so at your own risk. 0N/A * This code and its internal interfaces are subject to change or 0N/A * deletion without notice.</b> 0N/A /** J2SE1.4 = Merlin. */ 0N/A /** Support for the JSR14 prototype compiler (targeting 1.4 VMs 0N/A * augmented with a few support classes). This is a transitional 0N/A * option that will not be supported in the product. */ 0N/A /** The following are undocumented transitional targets that we 0N/A * had used to test VM fixes in update releases. We do not 0N/A * promise to retain support for them. */ 0N/A /** In -target 1.1 and earlier, the compiler is required to emit 0N/A * synthetic method definitions in abstract classes for interface 0N/A * methods that are not overridden. We call them "Miranda" methods. 0N/A /** Beginning in 1.4, we take advantage of the possibility of emitting 0N/A * code to initialize fields before calling the superclass constructor. 0N/A * This is allowed by the VM spec, but the verifier refused to allow 0N/A * it until 1.4. This is necesary to translate some code involving 0N/A * inner classes. See, for example, 4030374. 0N/A /** Beginning with -target 1.2 we obey the JLS rules for binary 0N/A * compatibility, emitting as the qualifying type of a reference 0N/A * to a method or field the type of the qualifier. In earlier 0N/A * targets we use as the qualifying type the class in which the 0N/A * member was found. The following methods named 0N/A * *binaryCompatibility() indicate places where we vary from this 0N/A /** Starting in 1.5, the compiler uses an array type as 0N/A * the qualifier for method calls (such as clone) where required by 0N/A * the language and VM spec. Earlier versions of the compiler 0N/A * qualified them by Object. 0N/A /** Beginning after 1.2, we follow the binary compatibility rules for 0N/A * interface fields. The 1.2 VMs had bugs handling interface fields 0N/A * when compiled using binary compatibility (see 4400598), so this is 0N/A * an accommodation to them. 0N/A /** Beginning in -target 1.5, we follow the binary compatibility 0N/A * rules for interface methods that redefine Object methods. 0N/A * Earlier VMs had bugs handling such methods compiled using binary 0N/A * compatibility (see 4392595, 4398791, 4392595, 4400415). 0N/A * The VMs were fixed during or soon after 1.4. See 4392595. 0N/A /** Beginning in -target 1.4.2, we make synthetic variables 0N/A * package-private instead of private. This is to prevent the 0N/A * necessity of access methods, which effectively relax the 0N/A * protection of the field but bloat the class files and affect 0N/A /** Sometimes we need to create a field to cache a value like a 0N/A * class literal of the assertions flag. In -target 1.4.2 and 0N/A * later we create a new synthetic class for this instead of 0N/A * using the outermost class. See 4401576. 0N/A /** Return true if cldc-style stack maps need to be generated. */ 0N/A /** Beginning in -target 6, we generate stackmap attribute in 0N/A * compact format. */ 0N/A /** Beginning in -target 6, package-info classes are marked synthetic. 0N/A /** Do we generate "empty" stackmap slots after double and long? 0N/A /** Beginning in 1.5, we have an unsynchronized version of 0N/A * StringBuffer called StringBuilder that can be used by the 0N/A * compiler for string concatenation. 0N/A /** Beginning in 1.5, we have flag bits we can use instead of 0N/A * marker attributes. 0N/A /** Return the character to be used in constructing synthetic 0N/A * identifiers, where not specified by the JLS. 0N/A /** Does the VM have direct support for class literals? 266N/A /** Does the VM support an invokedynamic instruction? 673N/A /** Does the VM support polymorphic method handle invocation? 673N/A * Affects the linkage information output to the classfile. 673N/A * An alias for {@code hasInvokedynamic}, since all the JSR 292 features appear together. 0N/A /** Although we may not have support for class literals, should we 0N/A * avoid initializing the class that the literal refers to? 0N/A /** Although we may not have support for class literals, when we 0N/A * throw a NoClassDefFoundError, should we initialize its cause? 0N/A /** For bootstrapping, we use J2SE1.4's wrapper class constructors 0N/A * to implement boxing. 0N/A /** For bootstrapping, we use J2SE1.4's java.util.Collection 0N/A * instead of java.lang.Iterable. 0N/A /** For bootstrapping javac only, we do without java.lang.Enum if 0N/A // && !Target.class.getSuperclass().getName().equals("java.lang.Enum") 0N/A /** In J2SE1.5.0, we introduced the "EnclosingMethod" attribute 0N/A * for improved reflection support.