6618930: (javac) fix test after whitespace normalization

Whitespace normalization left the test unusable, back to service

Reviewed-by: jjg
This commit is contained in:
Kumar Srinivasan 2008-03-20 08:44:18 -07:00
parent 493ac9ee8f
commit 8cb91c890d
2 changed files with 5 additions and 7 deletions

View File

@ -1,8 +1,6 @@
/* /*
* @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/ * @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/
* @bug 6304921 * @bug 6304921
* @ignore
* Need to fix this test post whitespace normalization
* @compile/fail/ref=T6304921.out -XDstdout -XDcompilePolicy=bytodo -XDdiags=%b:%s/%o/%e:%_%t%m|%p%m -Xjcov -Xlint:all,-path -Werror T6304921.java * @compile/fail/ref=T6304921.out -XDstdout -XDcompilePolicy=bytodo -XDdiags=%b:%s/%o/%e:%_%t%m|%p%m -Xjcov -Xlint:all,-path -Werror T6304921.java
*/ */

View File

@ -1,20 +1,20 @@
T6304921.java:569/569/584: warning: [unchecked] unchecked conversion T6304921.java:667/667/682: warning: [unchecked] unchecked conversion
found : java.util.ArrayList found : java.util.ArrayList
required: java.util.List<java.lang.Integer> required: java.util.List<java.lang.Integer>
List<Integer> list = new ArrayList(); List<Integer> list = new ArrayList();
^ ^
T6304921.java:410/410/418: warning: [fallthrough] possible fall-through into case T6304921.java:445/445/453: warning: [fallthrough] possible fall-through into case
default: default:
^ ^
T6304921.java:452/522/523: warning: [finally] finally clause cannot complete normally T6304921.java:522/613/614: warning: [finally] finally clause cannot complete normally
} }
^ ^
T6304921.java:622/628/632: cannot find symbol T6304921.java:727/733/737: cannot find symbol
symbol : variable orr symbol : variable orr
location: class java.lang.System location: class java.lang.System
System.orr.println("abc"); // name not found System.orr.println("abc"); // name not found
^ ^
T6304921.java:700/704/710: operator + cannot be applied to int,boolean T6304921.java:812/816/822: operator + cannot be applied to int,boolean
return 123 + true; // bad binary expression return 123 + true; // bad binary expression
^ ^
2 errors 2 errors