Skip to content

Commit

Permalink
6971882: Remove -XDstdout from javac test
Browse files Browse the repository at this point in the history
Reviewed-by: darcy
  • Loading branch information
jonathan-gibbons committed Jul 26, 2010
1 parent 7eb8c11 commit ccd014e
Show file tree
Hide file tree
Showing 97 changed files with 179 additions and 179 deletions.
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/4980495/static/Test.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test /nodynamiccopyright/
* @bug 4980495 6260444
* @compile/fail/ref=Test.out -XDstdout -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
* @compile/fail/ref=Test.out -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
*/

package p;
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/4980495/std/Test.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test /nodynamiccopyright/
* @bug 4980495 6260444
* @compile/fail/ref=Test.out -XDstdout -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
* @compile/fail/ref=Test.out -XDrawDiagnostics Test.java p1/A1.java p2/A2.java
*
*/

Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/6304921/T6304921.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/
* @bug 6304921
* @compile/fail/ref=T6304921.out -XDstdout -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java
* @compile/fail/ref=T6304921.out -XDcompilePolicy=bytodo -XDrawDiagnostics -Xjcov -Xlint:all,-path -Werror T6304921.java
*/

import java.util.ArrayList;
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/6330920/T6330920.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6330920
* @summary Verify that javac doesn't duplicate method error on method with error
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T6330920.out -XDstdout -XDrawDiagnostics T6330920.java
* @compile/fail/ref=T6330920.out -XDrawDiagnostics T6330920.java
*/

public class T6330920 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/6491592/T6491592.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6491592
* @summary Compiler crashes on assignment operator
* @author alex.buckley@...
* @compile/fail/ref=T6491592.out -XDstdout -XDrawDiagnostics T6491592.java
* @compile/fail/ref=T6491592.out -XDrawDiagnostics T6491592.java
*/

public class T6491592 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/6717241/T6717241a.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6717241
* @summary some diagnostic argument is prematurely converted into a String object
* @author Maurizio Cimadamore
* @compile/fail/ref=T6717241a.out -XDstdout -XDrawDiagnostics T6717241a.java
* @compile/fail/ref=T6717241a.out -XDrawDiagnostics T6717241a.java
*/

class T6717241a<X extends Object & java.io.Serializable> {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/6717241/T6717241b.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6717241
* @summary some diagnostic argument is prematurely converted into a String object
* @author Maurizio Cimadamore
* @compile/fail/ref=T6717241b.out -XDstdout -XDrawDiagnostics T6717241b.java
* @compile/fail/ref=T6717241b.out -XDrawDiagnostics T6717241b.java
*/

class T6717241b {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* file are correct, including those within InnerClasses attributes.
* @author John Rose (jrose). Entered as a regression test by Bill Maddox (maddox).
*
* @compile/ref=ClassModifiers.out -XDstdout -XDdumpmodifiers=ci ClassModifiers.java
* @compile/ref=ClassModifiers.out -XDdumpmodifiers=ci ClassModifiers.java
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @bug 4249112 4785453
* @summary Verify that implicit member modifiers are set correctly.
*
* @compile/ref=MemberModifiers.out -XDstdout -source 1.4 -target 1.4.2 -XDdumpmodifiers=cfm MemberModifiers.java
* @compile/ref=MemberModifiers.out -source 1.4 -target 1.4.2 -XDdumpmodifiers=cfm MemberModifiers.java
*/

// Currently, we check only that members of final classes are not final.
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/CyclicInheritance.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Test that recursive 'extends' and 'implements' clauses are detected
* and disallowed.
*
* @compile/fail/ref=CyclicInheritance.out -XDrawDiagnostics -XDstdout CyclicInheritance.java
* @compile/fail/ref=CyclicInheritance.out -XDrawDiagnostics CyclicInheritance.java
*/


Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/Digits.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test /nodynamiccopyright/
* @bug 6183529
* @summary javac gives warnings instead of errors on non-ASCII digits
* @compile/fail/ref=Digits.out -XDstdout -XDrawDiagnostics Digits.java
* @compile/fail/ref=Digits.out -XDrawDiagnostics Digits.java
*/

class Digits
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/ExtendArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 4336282 4785453
* @summary Verify that extending an erray class does not crash the compiler.
*
* @compile/fail/ref=ExtendArray.out -XDstdout -XDrawDiagnostics ExtendArray.java
* @compile/fail/ref=ExtendArray.out -XDrawDiagnostics ExtendArray.java
*/

// Note that an error is expected, but not a crash.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 4087314 4087314 4785453
* @summary Test access checking within 'extends' and 'implements' clause.
* @author William Maddox (maddox)
* @compile/fail/ref=ExtendsAccess.out -XDrawDiagnostics -XDstdout ExtendsAccess.java
* @compile/fail/ref=ExtendsAccess.out -XDrawDiagnostics ExtendsAccess.java
*/

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary strictfp may not be used with constructors
* @author David Stoutamire (dps)
*
* @compile/fail/ref=BadConstructorModifiers.out -XDrawDiagnostics -XDstdout BadConstructorModifiers.java
* @compile/fail/ref=BadConstructorModifiers.out -XDrawDiagnostics BadConstructorModifiers.java
*/

public class BadConstructorModifiers {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/IllegalAnnotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary javac crash when declare an annotation type illegally
*
* @compile/fail IllegalAnnotation.java
* @compile/fail/ref=IllegalAnnotation.out -XDdev -XDrawDiagnostics -XDstdout IllegalAnnotation.java
* @compile/fail/ref=IllegalAnnotation.out -XDdev -XDrawDiagnostics IllegalAnnotation.java
*/
class IllegalAnnotation {
{
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/InnerNamedConstant_2.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Verify rejection of illegal static variables in inner classes.
* @author William Maddox (maddox)
*
* @compile/fail/ref=InnerNamedConstant_2.out -XDrawDiagnostics -XDstdout InnerNamedConstant_2.java
* @compile/fail/ref=InnerNamedConstant_2.out -XDrawDiagnostics InnerNamedConstant_2.java
*/

public class InnerNamedConstant_2 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Verify that invalid access modifiers on interface members don't cause crash.
* @author maddox
*
* @compile/fail/ref=InterfaceMemberClassModifiers.out -XDstdout -XDdiags=%b:%l:%_%m InterfaceMemberClassModifiers.java
* @compile/fail/ref=InterfaceMemberClassModifiers.out -XDdiags=%b:%l:%_%m InterfaceMemberClassModifiers.java
*/

public interface InterfaceMemberClassModifiers {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/LocalClasses_2.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Verify that a local class cannot be redefined within its scope.
* @author William Maddox (maddox)
*
* @compile/fail/ref=LocalClasses_2.out -XDrawDiagnostics -XDstdout LocalClasses_2.java
* @compile/fail/ref=LocalClasses_2.out -XDrawDiagnostics LocalClasses_2.java
*/

class LocalClasses_2 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/NameCollision.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Interface names for classes in the same scope should not
* cause the compiler to crash.
*
* @compile/fail/ref=NameCollision.out -XDrawDiagnostics -XDstdout NameCollision.java
* @compile/fail/ref=NameCollision.out -XDrawDiagnostics NameCollision.java
*/

// The test fails if the compiler crashes.
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/NestedInnerClassNames.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary Verify that an inner class cannot have the same simple name as an enclosing one.
* @author William Maddox (maddox)
*
* @compile/fail/ref=NestedInnerClassNames.out -XDrawDiagnostics -XDstdout NestedInnerClassNames.java
* @compile/fail/ref=NestedInnerClassNames.out -XDrawDiagnostics NestedInnerClassNames.java
*/

/*
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/NonStaticFieldExpr1.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@author dps
@summary field: instance access through types is not allowed
@compile/fail/ref=NonStaticFieldExpr1.out -XDrawDiagnostics -XDstdout NonStaticFieldExpr1.java
@compile/fail/ref=NonStaticFieldExpr1.out -XDrawDiagnostics NonStaticFieldExpr1.java
*/
class NonStaticFieldExpr1 {
public int x;
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/NonStaticFieldExpr2.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@author dps
@summary method: instance access through types is not allowed
@compile/fail/ref=NonStaticFieldExpr2.out -XDrawDiagnostics -XDstdout NonStaticFieldExpr2.java
@compile/fail/ref=NonStaticFieldExpr2.out -XDrawDiagnostics NonStaticFieldExpr2.java
*/

class NonStaticFieldExpr2 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/NonStaticFieldExpr3.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@author dps
@summary class: instance access through types is not allowed
@compile/fail/ref=NonStaticFieldExpr3.out -XDrawDiagnostics -XDstdout NonStaticFieldExpr3.java
@compile/fail/ref=NonStaticFieldExpr3.out -XDrawDiagnostics NonStaticFieldExpr3.java
*/

class NonStaticFieldExpr3 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/OverridePosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @summary "attemping to assign weaker access" message doesn't give method line number
* @author Neal Gafter
*
* @compile/fail/ref=OverridePosition.out -XDstdout -XDrawDiagnostics OverridePosition.java
* @compile/fail/ref=OverridePosition.out -XDrawDiagnostics OverridePosition.java
*/

package T4524388;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @compile pack1/P1.java
* @compile pack1/P2.java
* @compile/fail/ref=QualifiedAccess_1.out -XDrawDiagnostics -XDstdout QualifiedAccess_1.java
* @compile/fail/ref=QualifiedAccess_1.out -XDrawDiagnostics QualifiedAccess_1.java
*/

import pack1.P1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @compile pack1/P1.java
* @compile pack1/P2.java
* @compile/fail/ref=QualifiedAccess_2.out -XDrawDiagnostics -XDstdout QualifiedAccess_2.java
* @compile/fail/ref=QualifiedAccess_2.out -XDrawDiagnostics QualifiedAccess_2.java
*/

import pack1.P1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* the type to which a component member belongs be accessible in qualified
* names.
*
* @compile/fail/ref=QualifiedAccess_3.out -XDrawDiagnostics -XDstdout QualifiedAccess_3.java
* @compile/fail/ref=QualifiedAccess_3.out -XDrawDiagnostics QualifiedAccess_3.java
*/

import pack1.P1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6827009
* @summary Check for case labels of different types.
* @compile/fail -source 6 BadlyTypedLabel1.java
* @compile/fail/ref=BadlyTypedLabel1.out -XDstdout -XDrawDiagnostics BadlyTypedLabel1.java
* @compile/fail/ref=BadlyTypedLabel1.out -XDrawDiagnostics BadlyTypedLabel1.java
*/
class BadlyTypedLabel1 {
String m(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6827009
* @summary Check for case lables of different types.
* @compile/fail -source 6 BadlyTypedLabel2.java
* @compile/fail/ref=BadlyTypedLabel2.out -XDstdout -XDrawDiagnostics BadlyTypedLabel2.java
* @compile/fail/ref=BadlyTypedLabel2.out -XDrawDiagnostics BadlyTypedLabel2.java
*/
import static java.math.RoundingMode.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6827009
* @summary Check for non-constant case labels.
* @compile/fail -source 6 NonConstantLabel.java
* @compile/fail/ref=NonConstantLabel.out -XDstdout -XDrawDiagnostics NonConstantLabel.java
* @compile/fail/ref=NonConstantLabel.out -XDrawDiagnostics NonConstantLabel.java
*/
class NonConstantLabel {
String m(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6827009
* @summary Check for repeated string case labels.
* @compile/fail -source 6 RepeatedStringCaseLabels1.java
* @compile/fail/ref=RSCL1.out -XDstdout -XDrawDiagnostics RepeatedStringCaseLabels1.java
* @compile/fail/ref=RSCL1.out -XDrawDiagnostics RepeatedStringCaseLabels1.java
*/
class RepeatedStringCaseLabels1 {
String m(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6827009
* @summary Check for repeated string case labels.
* @compile/fail -source 6 RepeatedStringCaseLabels2.java
* @compile/fail/ref=RSCL2.out -XDstdout -XDrawDiagnostics RepeatedStringCaseLabels2.java
* @compile/fail/ref=RSCL2.out -XDrawDiagnostics RepeatedStringCaseLabels2.java
*/
class RepeatedStringCaseLabels2 {
String m(String s) {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/SynchronizedClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@summary Verify that ClassModifier "synchronized" is not allowed.
@author dps
@compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics -XDstdout SynchronizedClass.java
@compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
*/

public synchronized class SynchronizedClass { } // ERROR
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T4093617/T4093617.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 4093617
* @summary Object has no superclass
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4093617.out -XDstdout -XDrawDiagnostics T4093617.java
* @compile/fail/ref=T4093617.out -XDrawDiagnostics T4093617.java
*/

package java.lang;
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T4906100.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @test /nodynamiccopyright/
* @bug 4906100
* @summary detect empty statement after if
* @compile/ref=T4906100.out -XDstdout -XDrawDiagnostics -Xlint:empty T4906100.java
* @compile/ref=T4906100.out -XDrawDiagnostics -Xlint:empty T4906100.java
*/

class T4906100 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T4994049/T4994049.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 4994049
* @summary Improved diagnostics while parsing enums
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4994049.out -XDstdout -XDrawDiagnostics T4994049.java
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
*/

public enum T4994049 {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T5003235/T5003235a.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 5003235
* @summary Private inner class accessible from subclasses
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5003235a.out -XDstdout -XDdiags=%b:%l:%_%m T5003235a.java
* @compile/fail/ref=T5003235a.out -XDdiags=%b:%l:%_%m T5003235a.java
*/

class Super {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T5003235/T5003235b.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 5003235
* @summary Accessibility of private inner class
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5003235b.out -XDstdout -XDdiags=%b:%l:%_%m T5003235b.java
* @compile/fail/ref=T5003235b.out -XDdiags=%b:%l:%_%m T5003235b.java
*/

class Outer {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T5003235/T5003235c.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 5003235
* @summary Access to private inner classes
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T5003235c.out -XDstdout -XDrawDiagnostics T5003235c.java
* @compile/fail/ref=T5003235c.out -XDrawDiagnostics T5003235c.java
*/

class T5003235c {
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T5024091/T5024091.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 5024091
* @summary AssertionError shouldn't be thrown
* @author Wei Tao
* @compile/fail/ref=T5024091.out -XDfailcomplete=java.lang.StringBuilder -XDdev -XDstdout -XDrawDiagnostics T5024091.java
* @compile/fail/ref=T5024091.out -XDfailcomplete=java.lang.StringBuilder -XDdev -XDrawDiagnostics T5024091.java
*/

public class T5024091 {
Expand Down
4 changes: 2 additions & 2 deletions langtools/test/tools/javac/T5048776.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @test /nodynamiccopyright/
* @bug 5048776
* @compile/ref=T5048776a.out -XDstdout -XDrawDiagnostics T5048776.java
* @compile/ref=T5048776b.out -XDstdout -XDrawDiagnostics -Xlint:all,-path T5048776.java
* @compile/ref=T5048776a.out -XDrawDiagnostics T5048776.java
* @compile/ref=T5048776b.out -XDrawDiagnostics -Xlint:all,-path T5048776.java
*/
class A1 {
void foo(Object[] args) { }
Expand Down
4 changes: 2 additions & 2 deletions langtools/test/tools/javac/T6214885.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @test /nodynamiccopyright/
* @bug 6214885
* @summary This test exercises features provided by the new internal Diagnostics API
* @compile/fail/ref=T6214885a.out -XDstdout -XDdiags=%b:%l%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885b.out -XDstdout -XDdiags=%b:%l:%c%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885a.out -XDdiags=%b:%l%_%t%m|%p%m T6214885.java
* @compile/fail/ref=T6214885b.out -XDdiags=%b:%l:%c%_%t%m|%p%m T6214885.java
*/
class T6214885
{
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T6224167.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6224167
* @summary misleading error message when both array and varargs
* methods are defined
* @compile/fail/ref=T6224167.out -XDstdout -XDrawDiagnostics T6224167.java
* @compile/fail/ref=T6224167.out -XDrawDiagnostics T6224167.java
*/
class T6224167
{
Expand Down
2 changes: 1 addition & 1 deletion langtools/test/tools/javac/T6227617.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @bug 6227617
* @summary Lint option for redundant casts
* @compile -Werror T6227617.java
* @compile/ref=T6227617.out -XDstdout -XDrawDiagnostics -Xlint:cast T6227617.java
* @compile/ref=T6227617.out -XDrawDiagnostics -Xlint:cast T6227617.java
*/
import java.util.HashMap;
import java.util.Map;
Expand Down
Loading

0 comments on commit ccd014e

Please sign in to comment.