test/tools/javac/limits/StringLength.java
Print this page
rev 2218 : [mq]: first
*** 25,35 ****
* @test
* @bug 4309152 4805490
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
! * @compile/fail StringLength.java
*/
class StringLength {
public static final String l5e0 = "abcde";
public static final String l1e1 = l5e0 + l5e0;
--- 25,35 ----
* @test
* @bug 4309152 4805490
* @summary Compiler silently generates bytecode that exceeds VM limits
* @author gafter
*
! * @compile/fail/ref=StringLength.out -XDrawDiagnostics StringLength.java
*/
class StringLength {
public static final String l5e0 = "abcde";
public static final String l1e1 = l5e0 + l5e0;