jdk-24/langtools/test/tools/javac/T5024091/T5024091.java

15 lines
399 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @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
2007-12-01 00:00:00 +00:00
*/
public class T5024091 {
private final String[] stringArray = {"s", "t", "r"};
public void foo() {
String str = "S = " + stringArray[0];
}
}