2007-12-01 00:00:00 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 5024091
|
|
|
|
* @summary AssertionError shouldn't be thrown
|
|
|
|
* @author Wei Tao
|
2010-07-26 21:18:45 +00:00
|
|
|
* @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];
|
|
|
|
}
|
|
|
|
}
|