mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
6843761: Update langtools tests to remove unncessary -source and -target options
Reviewed-by: jjg
This commit is contained in:
parent
a74aa28243
commit
05ea258bbb
388 changed files with 391 additions and 473 deletions
|
@ -41,7 +41,7 @@ public class TestIndex extends JavadocTester {
|
||||||
|
|
||||||
//Javadoc arguments.
|
//Javadoc arguments.
|
||||||
private static final String[] ARGS = new String[] {
|
private static final String[] ARGS = new String[] {
|
||||||
"-d", BUG_ID, "-source", "1.5", "-sourcepath", SRC_DIR, "pkg", SRC_DIR + FS + "NoPackage.java"
|
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR + FS + "NoPackage.java"
|
||||||
};
|
};
|
||||||
|
|
||||||
//Input for string search tests.
|
//Input for string search tests.
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class TestInterface extends JavadocTester {
|
||||||
|
|
||||||
//Javadoc arguments.
|
//Javadoc arguments.
|
||||||
private static final String[] ARGS = new String[] {
|
private static final String[] ARGS = new String[] {
|
||||||
"-source", "1.5", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
|
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
|
||||||
};
|
};
|
||||||
|
|
||||||
//Input for string search tests.
|
//Input for string search tests.
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TestNavagation extends JavadocTester {
|
||||||
|
|
||||||
//Javadoc arguments.
|
//Javadoc arguments.
|
||||||
private static final String[] ARGS = new String[] {
|
private static final String[] ARGS = new String[] {
|
||||||
"-d", BUG_ID, "-sourcepath", SRC_DIR, "-source", "1.5", "pkg"
|
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
|
||||||
};
|
};
|
||||||
|
|
||||||
//Input for string search tests.
|
//Input for string search tests.
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class TestTagInheritence extends JavadocTester {
|
||||||
|
|
||||||
private static final String BUG_ID = "4496223-4496270-4618686-4720974-4812240-6253614-6253604";
|
private static final String BUG_ID = "4496223-4496270-4618686-4720974-4812240-6253614-6253604";
|
||||||
private static final String[] ARGS = new String[] {
|
private static final String[] ARGS = new String[] {
|
||||||
"-source", "1.5", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "firstSentence", "firstSentence2"
|
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "firstSentence", "firstSentence2"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
* @summary com/sun/tools/javac/comp/Check.java refers to the undefined resource
|
* @summary com/sun/tools/javac/comp/Check.java refers to the undefined resource
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 -Werror 5005368.java
|
* @compile -Werror 5005368.java
|
||||||
* @compile/fail -source 1.5 -Werror -Xlint:unchecked 5005368.java
|
* @compile/fail -Werror -Xlint:unchecked 5005368.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package p5005368;
|
package p5005368;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Missing ambiguity error when two methods are equally specific
|
* @summary Missing ambiguity error when two methods are equally specific
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Ambig3.java
|
* @compile/fail Ambig3.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test<T,E> {
|
class Test<T,E> {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* compilation. This was fixed in 1.2beta2.
|
* compilation. This was fixed in 1.2beta2.
|
||||||
* @author turnidge
|
* @author turnidge
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 ArrayCast.java
|
* @compile ArrayCast.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ArrayCast {
|
public class ArrayCast {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Compiler allows inheritance of multiple methods with unrelated return types
|
* @summary Compiler allows inheritance of multiple methods with unrelated return types
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 BadCovar.java
|
* @compile/fail BadCovar.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package bad.covar;
|
package bad.covar;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Using a class literal causes outermost class to be initialized early
|
* @summary Using a class literal causes outermost class to be initialized early
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4.2 InitializeOuter.java
|
* @compile InitializeOuter.java
|
||||||
* @run main InitializeOuter
|
* @run main InitializeOuter
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary class literal causes the referenced class to be initialized
|
* @summary class literal causes the referenced class to be initialized
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4.2 InitializeTarget.java
|
* @compile InitializeTarget.java
|
||||||
* @run main InitializeTarget
|
* @run main InitializeTarget
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Generics: assignment of Class to type parm's default should elicit error
|
* @summary Generics: assignment of Class to type parm's default should elicit error
|
||||||
* @author never
|
* @author never
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 ClassToTypeParm.java
|
* @compile/fail ClassToTypeParm.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ClassToTypeParm<T> {
|
class ClassToTypeParm<T> {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4 Closure1.java
|
* @compile Closure1.java
|
||||||
* @run main Closure1
|
* @run main Closure1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4 Closure2.java
|
* @compile Closure2.java
|
||||||
* @run main Closure2
|
* @run main Closure2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4 Closure3.java
|
* @compile Closure3.java
|
||||||
* @run main Closure3
|
* @run main Closure3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
* @summary Initialization of up-level links, immediately after super(), occurs too late.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4 Closure4.java
|
* @compile Closure4.java
|
||||||
* @run main Closure4
|
* @run main Closure4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Incorrect order for initializers in nested class
|
* @summary Incorrect order for initializers in nested class
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -target 1.4 Closure5.java
|
* @compile Closure5.java
|
||||||
* @run main Closure5
|
* @run main Closure5
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary drop compound boxing operations
|
* @summary drop compound boxing operations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 CompoundBox.java
|
* @compile/fail CompoundBox.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CompoundBox {
|
class CompoundBox {
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* @author maddox
|
* @author maddox
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.4 ConditionalArgTypes_1.java
|
* @compile/fail -source 1.4 ConditionalArgTypes_1.java
|
||||||
* @compile -source 1.5 ConditionalArgTypes_1.java
|
* @compile ConditionalArgTypes_1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This is the problematic case -- the controlling expression is a boolean constant.
|
// This is the problematic case -- the controlling expression is a boolean constant.
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* @author maddox
|
* @author maddox
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.4 ConditionalArgTypes_2.java
|
* @compile/fail -source 1.4 ConditionalArgTypes_2.java
|
||||||
* @compile -source 1.5 ConditionalArgTypes_2.java
|
* @compile ConditionalArgTypes_2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This case was working before -- controlling expression is not a constant.
|
// This case was working before -- controlling expression is not a constant.
|
||||||
|
|
|
@ -22,12 +22,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test %E
|
* @test
|
||||||
* @bug 4478838 4533580
|
* @bug 4478838 4533580
|
||||||
* @summary Check correct handling of DU in assert statements
|
* @summary Check correct handling of DU in assert statements
|
||||||
* @author Neal Gafter (gafter)
|
* @author Neal Gafter (gafter)
|
||||||
*
|
*
|
||||||
* @run compile -source 1.4 DUAssert.java
|
* @run compile DUAssert.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DUSwitch {
|
class DUSwitch {
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
* @summary Verify that assertions are enabled before the class is initialized
|
* @summary Verify that assertions are enabled before the class is initialized
|
||||||
* and not thereafter
|
* and not thereafter
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.4 EarlyAssert.java
|
|
||||||
* @run main EarlyAssert
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4934060
|
* @bug 4934060
|
||||||
* @summary private enum ctor versus specialized enum constant crashes javac
|
* @summary private enum ctor versus specialized enum constant crashes javac
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.5 Enum1.java
|
|
||||||
* @run main Enum1
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public enum Enum1 {
|
public enum Enum1 {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary multiple methods inheritence
|
* @summary multiple methods inheritence
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 GoodCovar.java
|
* @compile GoodCovar.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package good.covar;
|
package good.covar;
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4920023
|
* @bug 4920023
|
||||||
* @summary add "hexadecimal floating-point literal" support to javac as per 4896828
|
* @summary add "hexadecimal floating-point literal" support to javac as per 4896828
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.5 HexFloatLiterals.java
|
|
||||||
* @run main HexFloatLiterals
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class HexFloatLiterals {
|
public class HexFloatLiterals {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4920023
|
* @bug 4920023
|
||||||
* @summary Test hex floating-point literals
|
* @summary Test hex floating-point literals
|
||||||
* @author darcy
|
* @author darcy
|
||||||
*
|
|
||||||
* @compile -source 1.5 HexThree.java
|
|
||||||
* @run main HexThree
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class HexThree {
|
public class HexThree {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4399129
|
* @bug 4399129
|
||||||
* @summary Check that assertions compile properly when nested in an interface
|
* @summary Check that assertions compile properly when nested in an interface
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.4 InterfaceAssert.java
|
|
||||||
* @run main InterfaceAssert
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary The compiler should detect an invalid cast between interfaces.
|
* @summary The compiler should detect an invalid cast between interfaces.
|
||||||
* @author turnidge
|
* @author turnidge
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 InvalidIntfCast.java
|
* @compile InvalidIntfCast.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface I {
|
interface I {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary unclear diagnostic for "new T()"
|
* @summary unclear diagnostic for "new T()"
|
||||||
* @author never
|
* @author never
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 NewGeneric.java
|
* @compile/fail NewGeneric.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
* @summary Verify that access to member of java.lang.Object via qualification of
|
* @summary Verify that access to member of java.lang.Object via qualification of
|
||||||
* object of an interface type is handled successfully.
|
* object of an interface type is handled successfully.
|
||||||
* @author maddox
|
* @author maddox
|
||||||
*
|
|
||||||
* @run compile -source 1.3 -target 1.2 -g ObjectMethodRefFromInterface.java
|
|
||||||
* @run main/othervm ObjectMethodRefFromInterface
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ObjectMethodRefFromInterface {
|
public class ObjectMethodRefFromInterface {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4365809
|
* @bug 4365809
|
||||||
* @summary Incorrect access method for private constructor in local class.
|
* @summary Incorrect access method for private constructor in local class.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.4 -target 1.4 PrivateLocalConstructor.java
|
|
||||||
* @run main PrivateLocalConstructor
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class PrivateLocalConstructor {
|
public class PrivateLocalConstructor {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary compiler crash with raw instantiation of generic inner class
|
* @summary compiler crash with raw instantiation of generic inner class
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 RawCrash.java
|
* @compile RawCrash.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class A<E> {
|
class A<E> {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary using of synthetic names in local class causes ClassFormatError
|
* @summary using of synthetic names in local class causes ClassFormatError
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.4 -target 1.4 SynthName2.java
|
* @compile/fail SynthName2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
|
|
|
@ -63,7 +63,7 @@ case "$OS" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
"${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -verbose -source 5 -d "${TESTCLASSES}" -cp "${TESTSRC}${FS}broken.jar" "${TESTSRC}${FS}$1"
|
"${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -verbose -d "${TESTCLASSES}" -cp "${TESTSRC}${FS}broken.jar" "${TESTSRC}${FS}$1"
|
||||||
|
|
||||||
result=$?
|
result=$?
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
* @bug 5092545
|
* @bug 5092545
|
||||||
* @summary Assertion failed in javac (ClassWriter.java:513)
|
* @summary Assertion failed in javac (ClassWriter.java:513)
|
||||||
* @author Peter von der Ah\u00e9
|
* @author Peter von der Ah\u00e9
|
||||||
* @compile -source 5 T5092545.java
|
|
||||||
* @run main T5092545
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface A { void g(); }
|
interface A { void g(); }
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
* @bug 5105890
|
* @bug 5105890
|
||||||
* @summary (codegen) constant folding broken for conditional operator
|
* @summary (codegen) constant folding broken for conditional operator
|
||||||
* @author Peter von der Ah\u00e9
|
* @author Peter von der Ah\u00e9
|
||||||
* @compile -source 5 T5105890.java
|
|
||||||
* @run main T5105890
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class T5105890 {
|
public class T5105890 {
|
||||||
|
|
|
@ -27,11 +27,11 @@
|
||||||
* @summary Constraints regarding annotation defaults
|
* @summary Constraints regarding annotation defaults
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 A.java
|
* @compile A.java
|
||||||
* @compile -source 1.5 B.java
|
* @compile B.java
|
||||||
* @compile -source 1.5 C.java
|
* @compile C.java
|
||||||
* @compile/fail -source 1.5 Derr.java
|
* @compile/fail Derr.java
|
||||||
* @compile/fail -source 1.5 Eerr.java
|
* @compile/fail Eerr.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public @interface A {
|
public @interface A {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary annotation syntax allows extra ',' in parameter list.
|
* @summary annotation syntax allows extra ',' in parameter list.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 AnnComma.java
|
* @compile/fail AnnComma.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package annComma;
|
package annComma;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (4): don't allow "new" in annotations
|
* @summary JSR175 (4): don't allow "new" in annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 ArrayLit.java
|
* @compile/fail ArrayLit.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ArrayLit(new int[] {1, 2, 3})
|
@ArrayLit(new int[] {1, 2, 3})
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (5): annotations must be "constants"
|
* @summary JSR175 (5): annotations must be "constants"
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Constant.java
|
* @compile/fail Constant.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package test.tools.javac.annotation.Constant;
|
package test.tools.javac.annotation.Constant;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary (JSR175) compiler allows self-containing annotation types
|
* @summary (JSR175) compiler allows self-containing annotation types
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Cycle1.java
|
* @compile/fail Cycle1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package cycle1;
|
package cycle1;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary (JSR175) compiler allows self-containing annotation types
|
* @summary (JSR175) compiler allows self-containing annotation types
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Cycle2.java
|
* @compile/fail Cycle2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package cycle2;
|
package cycle2;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary javac allows cyclic annotation interfaces with arrays
|
* @summary javac allows cyclic annotation interfaces with arrays
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Cycle3.java
|
* @compile/fail Cycle3.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package cycle3;
|
package cycle3;
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.4 -Xlint:dep-ann -Werror Dep.java
|
* @compile -source 1.4 -Xlint:dep-ann -Werror Dep.java
|
||||||
* @compile/fail -source 1.5 -Xlint:dep-ann -Werror Dep.java
|
* @compile/fail -Xlint:dep-ann -Werror Dep.java
|
||||||
* @compile -source 1.5 -Xlint:dep-ann Dep.java
|
* @compile -Xlint:dep-ann Dep.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (3): don't allow repeated annotations
|
* @summary JSR175 (3): don't allow repeated annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Dup.java
|
* @compile/fail Dup.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Dup
|
@Dup
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary <at>Target
|
* @summary <at>Target
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 DupTarget.java
|
* @compile/fail DupTarget.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@java.lang.annotation.Target({TYPE, FIELD, PACKAGE, FIELD})
|
@java.lang.annotation.Target({TYPE, FIELD, PACKAGE, FIELD})
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Annotation members must not have same signature as Object or Annotation members
|
* @summary Annotation members must not have same signature as Object or Annotation members
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 MemberOver.java
|
* @compile/fail MemberOver.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package memberOver;
|
package memberOver;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (2): don't allow annotating members from Object
|
* @summary JSR175 (2): don't allow annotating members from Object
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 ObjectMembers.java
|
* @compile/fail ObjectMembers.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ObjectMembers(hashCode = 23)
|
@ObjectMembers(hashCode = 23)
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (7): implement <at>Overrides
|
* @summary JSR175 (7): implement <at>Overrides
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 OverrideNo.java
|
* @compile/fail OverrideNo.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package overrideNo;
|
package overrideNo;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Package annotations
|
* @summary Package annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Package.java
|
* @compile/fail Package.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@java.lang.annotation.Documented
|
@java.lang.annotation.Documented
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary compiler crash with malformed annotations
|
* @summary compiler crash with malformed annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Recovery.java
|
* @compile/fail Recovery.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Assertion error is thrown when an annotation class cannot be found.
|
* @summary Assertion error is thrown when an annotation class cannot be found.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Recovery1.java
|
* @compile/fail Recovery1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package recovery1;
|
package recovery1;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary name lookup scope for annotations
|
* @summary name lookup scope for annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Scope.java
|
* @compile/fail Scope.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package annotation.scope;
|
package annotation.scope;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary compiler crash with ill-formed annotation
|
* @summary compiler crash with ill-formed annotation
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Syntax1.java
|
* @compile/fail Syntax1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package syntax1;
|
package syntax1;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary java.lang.annotation.Target
|
* @summary java.lang.annotation.Target
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 WrongTarget.java
|
* @compile/fail WrongTarget.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@java.lang.annotation.Target({FIELD})
|
@java.lang.annotation.Target({FIELD})
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Compiler allows Inherited meta-attribute on local variable declaration.
|
* @summary Compiler allows Inherited meta-attribute on local variable declaration.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 WrongTarget2.java
|
* @compile/fail WrongTarget2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.lang.annotation.Inherited;
|
import java.lang.annotation.Inherited;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary compiler: crashes when attributes with same elements are used in place of other
|
* @summary compiler: crashes when attributes with same elements are used in place of other
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 WrongValue.java
|
* @compile/fail WrongValue.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface TestM2 {
|
@interface TestM2 {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z1.java
|
* @compile/fail Z1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z10.java
|
* @compile/fail Z10.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z11.java
|
* @compile/fail Z11.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z12.java
|
* @compile/fail Z12.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z13.java
|
* @compile/fail Z13.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An {
|
@interface An {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z14.java
|
* @compile/fail Z14.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An<T> {
|
@interface An<T> {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z15.java
|
* @compile/fail Z15.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An {
|
@interface An {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z16.java
|
* @compile/fail Z16.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z2.java
|
* @compile/fail Z2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z3.java
|
* @compile/fail Z3.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z4.java
|
* @compile/fail Z4.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z5.java
|
* @compile/fail Z5.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface Foo {}
|
interface Foo {}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z8.java
|
* @compile/fail Z8.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An {
|
@interface An {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Z9.java
|
* @compile/fail Z9.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An {
|
@interface An {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (15): single element array annotation value
|
* @summary JSR175 (15): single element array annotation value
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 AnnoteElideBraces.java
|
* @compile AnnoteElideBraces.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface D {
|
@interface D {
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
* @summary javac crash loading class files containing Class-valued annotation fields
|
* @summary javac crash loading class files containing Class-valued annotation fields
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 ClassA.java ClassB.java
|
* @compile ClassA.java ClassB.java
|
||||||
* @compile -source 1.5 ClassB.java
|
* @compile ClassB.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface ClassA {
|
@interface ClassA {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Please add annotation <at>Deprecated to supplant the javadoc tag
|
* @summary Please add annotation <at>Deprecated to supplant the javadoc tag
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 -Xlint:dep-ann -Werror Dep.java
|
* @compile -Xlint:dep-ann -Werror Dep.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175: annotations on enum constant
|
* @summary JSR175: annotations on enum constant
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Enum1.java
|
* @compile Enum1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package annotation.enums;
|
package annotation.enums;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary local variable annotations
|
* @summary local variable annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Local.java
|
* @compile Local.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Local {
|
class Local {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary annotation types may contain constants, types
|
* @summary annotation types may contain constants, types
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Members.java
|
* @compile Members.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package members;
|
package members;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary compiler crash if annotation using an enum type defined inside the annotation
|
* @summary compiler crash if annotation using an enum type defined inside the annotation
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 NType.java
|
* @compile NType.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package ntype;
|
package ntype;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary crash in annotation class file reader
|
* @summary crash in annotation class file reader
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 OverrideCheck.java
|
* @compile OverrideCheck.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class OverrideCheck {
|
class OverrideCheck {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175 (7): implement <at>Overrides
|
* @summary JSR175 (7): implement <at>Overrides
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 OverrideOK.java
|
* @compile OverrideOK.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package overrideOK;
|
package overrideOK;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary JSR175: Parameter annotations
|
* @summary JSR175: Parameter annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Parameter.java
|
* @compile Parameter.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package annotation.parameter;
|
package annotation.parameter;
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 5034991 5040842 5040853
|
* @bug 5034991 5040842 5040853
|
||||||
* @summary Modify class-file representation of Class-valued annotation elements
|
* @summary Modify class-file representation of Class-valued annotation elements
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.5 Primitives.java
|
|
||||||
* @run main Primitives
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Primitives {
|
public class Primitives {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary java.lang.annotation.Target
|
* @summary java.lang.annotation.Target
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 RightTarget.java
|
* @compile RightTarget.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Z1.java
|
* @compile Z1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Z2.java
|
* @compile Z2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Z3.java
|
* @compile Z3.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Color { red, green, blue }
|
enum Color { red, green, blue }
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary implement "metadata" (attribute interfaces and program annotations)
|
* @summary implement "metadata" (attribute interfaces and program annotations)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Z4.java
|
* @compile Z4.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@interface An {
|
@interface An {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Package annotations
|
* @summary Package annotations
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 package-info.java
|
* @compile package-info.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@java.lang.annotation.Documented
|
@java.lang.annotation.Documented
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4478095
|
* @bug 4478095
|
||||||
* @summary assertion flag attached to wrong class
|
* @summary assertion flag attached to wrong class
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.4 Attach.java
|
|
||||||
* @run main Attach
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Attach {
|
public class Attach {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Check correct DU computation for assertions.
|
* @summary Check correct DU computation for assertions.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.4 DU1.java
|
* @compile/fail DU1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DU1 {
|
class DU1 {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Check correct DU computation for assertions.
|
* @summary Check correct DU computation for assertions.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.4 DU2.java
|
* @compile/fail DU2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DU2 {
|
class DU2 {
|
||||||
|
|
|
@ -3,17 +3,17 @@
|
||||||
* @bug 4469737
|
* @bug 4469737
|
||||||
* @summary Verify the source position for assertions.
|
* @summary Verify the source position for assertions.
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.4 Position.java
|
|
||||||
* @run main Position
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
public class Position {
|
public class Position {
|
||||||
static public void main(String[] args) {
|
static public void main(String[] args) {
|
||||||
Position.class.getClassLoader().setClassAssertionStatus("U", true);
|
Position.class.getClassLoader().setClassAssertionStatus("U", true);
|
||||||
new U().main();
|
new U().main();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class U {
|
class U {
|
||||||
void main() {
|
void main() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary boxing/unboxing versus foreach crashes javac
|
* @summary boxing/unboxing versus foreach crashes javac
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 BoxedForeach.java
|
* @compile BoxedForeach.java
|
||||||
* @run main BoxedForeach
|
* @run main BoxedForeach
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4869233 4872709 4868735 4921949 4921209 4965701 4934916 4975565 4974939
|
* @bug 4869233 4872709 4868735 4921949 4921209 4965701 4934916 4975565 4974939
|
||||||
* @summary Boxing/unboxing positive unit and regression tests
|
* @summary Boxing/unboxing positive unit and regression tests
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.5 Boxing1.java
|
|
||||||
* @run main Boxing1
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Boxing1 {
|
public class Boxing1 {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary Boxing/unboxing negative unit and regression tests
|
* @summary Boxing/unboxing negative unit and regression tests
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Boxing2.java
|
* @compile/fail Boxing2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Boxing2 {
|
public class Boxing2 {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4999689
|
* @bug 4999689
|
||||||
* @summary Compiler incorrectly create Integer in "Character c = 95"
|
* @summary Compiler incorrectly create Integer in "Character c = 95"
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
|
||||||
* @compile -source 1.5 Boxing4.java
|
|
||||||
* @run main Boxing4
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Boxing4 {
|
public class Boxing4 {
|
||||||
|
|
|
@ -26,9 +26,6 @@
|
||||||
* @bug 4990346
|
* @bug 4990346
|
||||||
* @summary Verify autoboxed values are cached as required.
|
* @summary Verify autoboxed values are cached as required.
|
||||||
* @author Joseph D. Darcy
|
* @author Joseph D. Darcy
|
||||||
*
|
|
||||||
* @compile -source 1.5 BoxingCaching.java
|
|
||||||
* @run main BoxingCaching
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class BoxingCaching {
|
public class BoxingCaching {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary wildcard capture (snapshotting)
|
* @summary wildcard capture (snapshotting)
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -Xlint:unchecked -Werror -source 1.5 Capture1.java
|
* @compile -Xlint:unchecked -Werror Capture1.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package capture1;
|
package capture1;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary soundness problem with failure to subsitute wildcard as type formal argument
|
* @summary soundness problem with failure to subsitute wildcard as type formal argument
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile/fail -source 1.5 Capture2.java
|
* @compile/fail Capture2.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package capture2;
|
package capture2;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary new wildcard subst scheme breaks java.lang.ref
|
* @summary new wildcard subst scheme breaks java.lang.ref
|
||||||
* @author gafter
|
* @author gafter
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Capture3.java
|
* @compile Capture3.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package capture3;
|
package capture3;
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
* @summary wildcards versus recursive F-bounds
|
* @summary wildcards versus recursive F-bounds
|
||||||
* @author Peter von der Ahe
|
* @author Peter von der Ahe
|
||||||
*
|
*
|
||||||
* @compile -source 1.5 Capture5.java
|
* @compile Capture5.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package capture5;
|
package capture5;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue