jdk-24/langtools/test/tools/javac/T5024091/T5024091.java
Jonathan Gibbons ccd014ed3f 6971882: Remove -XDstdout from javac test
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00

15 lines
399 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5024091
* @summary AssertionError shouldn't be thrown
* @author Wei Tao
* @compile/fail/ref=T5024091.out -XDfailcomplete=java.lang.StringBuilder -XDdev -XDrawDiagnostics T5024091.java
*/
public class T5024091 {
private final String[] stringArray = {"s", "t", "r"};
public void foo() {
String str = "S = " + stringArray[0];
}
}