mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8005207: test has 2 @bug tags
Reviewed-by: mcimadamore
This commit is contained in:
parent
a24da77752
commit
6a02cd46e0
8 changed files with 22 additions and 251 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -22,20 +22,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* @test
|
/* @test
|
||||||
* @bug 8004832
|
* @bug 8004832 8000103
|
||||||
* @summary Add new doclint package
|
* @summary Add new doclint package
|
||||||
* @bug 8000103
|
|
||||||
* @summary Create doclint utility
|
* @summary Create doclint utility
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import com.sun.tools.doclint.DocLint;
|
|
||||||
import com.sun.tools.doclint.DocLint.BadArgs;
|
|
||||||
import java.io.ByteArrayOutputStream;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FilterOutputStream;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
|
||||||
import java.io.PrintStream;
|
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.lang.annotation.Annotation;
|
import java.lang.annotation.Annotation;
|
||||||
|
@ -44,6 +37,9 @@ import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
|
import com.sun.tools.doclint.DocLint;
|
||||||
|
import com.sun.tools.doclint.DocLint.BadArgs;
|
||||||
|
|
||||||
/** javadoc error on toplevel: a & b. */
|
/** javadoc error on toplevel: a & b. */
|
||||||
public class RunTest {
|
public class RunTest {
|
||||||
/** javadoc error on member: a < b */
|
/** javadoc error on member: a < b */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -21,12 +21,6 @@
|
||||||
* questions.
|
* questions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @test
|
|
||||||
* @bug 5045412 6627366
|
|
||||||
* @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Bar.java
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 5045412 6627366
|
* @bug 5045412 6627366
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -25,11 +25,6 @@
|
||||||
* @test
|
* @test
|
||||||
* @bug 5045412 6627366
|
* @bug 5045412 6627366
|
||||||
* @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Foo.java
|
* @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Foo.java
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @test
|
|
||||||
* @bug 5045412 6627366
|
|
||||||
* @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Foo.java Bar.java
|
* @compile -Xlint:serial -XDfailcomplete=java.io.Serializable Foo.java Bar.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 7115052
|
* @bug 7115052 8003280 8006694
|
||||||
* @bug 8003280 8006694
|
|
||||||
* @summary Add lambda tests
|
* @summary Add lambda tests
|
||||||
* Add parser support for method references
|
* Add parser support for method references
|
||||||
* temporarily workaround combo tests are causing time out in several platforms
|
* temporarily workaround combo tests are causing time out in several platforms
|
||||||
|
|
|
@ -23,8 +23,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 7194586
|
* @bug 7194586 8003280 8006694 8010404
|
||||||
* @bug 8003280 8006694 8010404
|
|
||||||
* @summary Add lambda tests
|
* @summary Add lambda tests
|
||||||
* Add back-end support for invokedynamic
|
* Add back-end support for invokedynamic
|
||||||
* temporarily workaround combo tests are causing time out in several platforms
|
* temporarily workaround combo tests are causing time out in several platforms
|
||||||
|
@ -36,6 +35,16 @@
|
||||||
// use /othervm to avoid jtreg timeout issues (CODETOOLS-7900047)
|
// use /othervm to avoid jtreg timeout issues (CODETOOLS-7900047)
|
||||||
// see JDK-8006746
|
// see JDK-8006746
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
|
import javax.tools.Diagnostic;
|
||||||
|
import javax.tools.JavaFileObject;
|
||||||
|
import javax.tools.SimpleJavaFileObject;
|
||||||
|
|
||||||
import com.sun.source.tree.MethodInvocationTree;
|
import com.sun.source.tree.MethodInvocationTree;
|
||||||
import com.sun.source.tree.MethodTree;
|
import com.sun.source.tree.MethodTree;
|
||||||
import com.sun.source.util.TaskEvent;
|
import com.sun.source.util.TaskEvent;
|
||||||
|
@ -63,16 +72,6 @@ import com.sun.tools.javac.tree.JCTree.JCIdent;
|
||||||
import com.sun.tools.javac.util.Context;
|
import com.sun.tools.javac.util.Context;
|
||||||
import com.sun.tools.javac.util.Names;
|
import com.sun.tools.javac.util.Names;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Locale;
|
|
||||||
|
|
||||||
import javax.tools.Diagnostic;
|
|
||||||
import javax.tools.JavaFileObject;
|
|
||||||
import javax.tools.SimpleJavaFileObject;
|
|
||||||
|
|
||||||
import static com.sun.tools.javac.jvm.ClassFile.*;
|
import static com.sun.tools.javac.jvm.ClassFile.*;
|
||||||
|
|
||||||
public class TestInvokeDynamic
|
public class TestInvokeDynamic
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,109 +29,19 @@
|
||||||
* @bug 5047307
|
* @bug 5047307
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics -nowarn A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics -nowarn A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics -Xmaxwarns 1 A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics -Xmaxwarns 1 A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics -nowarn A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics -nowarn A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:deprecation A.java
|
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:deprecation A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3.out -XDrawDiagnostics -nowarn -Xlint:deprecation A.java
|
* @compile/ref=Test3.out -XDrawDiagnostics -nowarn -Xlint:deprecation A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3b.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java
|
* @compile/ref=Test3b.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4.out -XDrawDiagnostics -Xlint:deprecation A.java B.java
|
* @compile/ref=Test4.out -XDrawDiagnostics -Xlint:deprecation A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4.out -XDrawDiagnostics -nowarn -Xlint:deprecation A.java B.java
|
* @compile/ref=Test4.out -XDrawDiagnostics -nowarn -Xlint:deprecation A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4b.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java B.java
|
* @compile/ref=Test4b.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 1 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4c.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 2 A.java B.java
|
* @compile/ref=Test4c.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 2 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4d.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 3 A.java B.java
|
* @compile/ref=Test4d.out -XDrawDiagnostics -nowarn -Xlint:deprecation -Xmaxwarns 3 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test5.out -XDrawDiagnostics -Xlint:deprecation P.java Q.java
|
* @compile/ref=Test5.out -XDrawDiagnostics -Xlint:deprecation P.java Q.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test5b.out -XDrawDiagnostics -Xlint:deprecation -Xmaxwarns 2 P.java Q.java
|
* @compile/ref=Test5b.out -XDrawDiagnostics -Xlint:deprecation -Xmaxwarns 2 P.java Q.java
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,95 +29,17 @@
|
||||||
* @bug 5047307
|
* @bug 5047307
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics -nowarn A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics -nowarn A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test1.out -XDrawDiagnostics -Xmaxwarns 1 A.java
|
* @compile/ref=Test1.out -XDrawDiagnostics -Xmaxwarns 1 A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics -nowarn A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics -nowarn A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test2.out -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
|
* @compile/ref=Test2.out -XDrawDiagnostics -Xmaxwarns 1 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:unchecked A.java
|
* @compile/ref=Test3.out -XDrawDiagnostics -Xlint:unchecked A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java
|
* @compile/ref=Test3.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test3b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java
|
* @compile/ref=Test3b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4.out -XDrawDiagnostics -Xlint:unchecked A.java B.java
|
* @compile/ref=Test4.out -XDrawDiagnostics -Xlint:unchecked A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java B.java
|
* @compile/ref=Test4.out -XDrawDiagnostics -nowarn -Xlint:unchecked A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java B.java
|
* @compile/ref=Test4b.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 1 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4c.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 2 A.java B.java
|
* @compile/ref=Test4c.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 2 A.java B.java
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @test
|
|
||||||
* @bug 5047307
|
|
||||||
* @summary javac -nowarn improperly suppresses JLS-mandated warnings
|
|
||||||
* @compile/ref=Test4d.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 3 A.java B.java
|
* @compile/ref=Test4d.out -XDrawDiagnostics -nowarn -Xlint:unchecked -Xmaxwarns 3 A.java B.java
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -123,47 +123,3 @@ public class Test {
|
||||||
|
|
||||||
int errors;
|
int errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// These tests test the ability of the compiler to continue in the face of
|
|
||||||
// errors, accordining to the shouldStopPolicy
|
|
||||||
|
|
||||||
/* @ test /nodynamiccopyright/
|
|
||||||
* @bug 6813059
|
|
||||||
* @summary
|
|
||||||
* @compile/fail/ref=flow.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=FLOW Test.java
|
|
||||||
|
|
||||||
* @compile/fail/ref=default.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy Test.java
|
|
||||||
* @compile/fail/ref=enter.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=ENTER Test.java
|
|
||||||
* @compile/fail/ref=attr.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=ATTR Test.java
|
|
||||||
* @compile/fail/ref=transtypes.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=TRANSTYPES Test.java
|
|
||||||
* @compile/fail/ref=lower.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=LOWER Test.java
|
|
||||||
* @compile/fail/ref=generate.out -XDrawDiagnostics -XDcompilePolicy=byfile -XDverboseCompilePolicy -XDshouldStopPolicy=GENERATE Test.java
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
class Test {
|
|
||||||
void m1() {
|
|
||||||
System.err.println("hello");
|
|
||||||
0 // syntax error
|
|
||||||
System.err.println("world");
|
|
||||||
}
|
|
||||||
|
|
||||||
void m2() {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class Test2 {
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue