Thu, 20 Mar 2008 08:44:18 -0700
6618930: (javac) fix test after whitespace normalization
Summary: whitespace normalization left the test unusable, back to service
Reviewed-by: jjg
test/tools/javac/6304921/T6304921.java | file | annotate | diff | comparison | revisions | |
test/tools/javac/6304921/T6304921.out | file | annotate | diff | comparison | revisions |
1.1 --- a/test/tools/javac/6304921/T6304921.java Fri Mar 14 16:09:30 2008 -0700 1.2 +++ b/test/tools/javac/6304921/T6304921.java Thu Mar 20 08:44:18 2008 -0700 1.3 @@ -1,8 +1,6 @@ 1.4 /* 1.5 * @test (important: no SCCS keywords to affect offsets in golden file.) /nodynamiccopyright/ 1.6 * @bug 6304921 1.7 - * @ignore 1.8 - * Need to fix this test post whitespace normalization 1.9 * @compile/fail/ref=T6304921.out -XDstdout -XDcompilePolicy=bytodo -XDdiags=%b:%s/%o/%e:%_%t%m|%p%m -Xjcov -Xlint:all,-path -Werror T6304921.java 1.10 */ 1.11
2.1 --- a/test/tools/javac/6304921/T6304921.out Fri Mar 14 16:09:30 2008 -0700 2.2 +++ b/test/tools/javac/6304921/T6304921.out Thu Mar 20 08:44:18 2008 -0700 2.3 @@ -1,20 +1,20 @@ 2.4 -T6304921.java:569/569/584: warning: [unchecked] unchecked conversion 2.5 +T6304921.java:667/667/682: warning: [unchecked] unchecked conversion 2.6 found : java.util.ArrayList 2.7 required: java.util.List<java.lang.Integer> 2.8 List<Integer> list = new ArrayList(); 2.9 ^ 2.10 -T6304921.java:410/410/418: warning: [fallthrough] possible fall-through into case 2.11 +T6304921.java:445/445/453: warning: [fallthrough] possible fall-through into case 2.12 default: 2.13 ^ 2.14 -T6304921.java:452/522/523: warning: [finally] finally clause cannot complete normally 2.15 +T6304921.java:522/613/614: warning: [finally] finally clause cannot complete normally 2.16 } 2.17 ^ 2.18 -T6304921.java:622/628/632: cannot find symbol 2.19 +T6304921.java:727/733/737: cannot find symbol 2.20 symbol : variable orr 2.21 location: class java.lang.System 2.22 System.orr.println("abc"); // name not found 2.23 ^ 2.24 -T6304921.java:700/704/710: operator + cannot be applied to int,boolean 2.25 +T6304921.java:812/816/822: operator + cannot be applied to int,boolean 2.26 return 123 + true; // bad binary expression 2.27 ^ 2.28 2 errors