langtools/test/tools/javac/ExtraneousEquals.java
author pmuthuswamy
Wed, 19 Jul 2017 11:44:08 +0530
changeset 45915 1afba647cd44
parent 26528 a1a7ad15183e
permissions -rw-r--r--
8057647: javac parser needs updates to have better error recovery for error cases of new array creation with dimensions Reviewed-by: jlahoda

/*
 * @test /nodynamiccopyright/
 * @bug 5019614 8057647
 * @summary variance prototype syntax leftover
 *
 * @compile/fail/ref=ExtraneousEquals.out -XDrawDiagnostics ExtraneousEquals.java
 */

public class ExtraneousEquals {
  int[] foo = new int[=] { 1, 2, 3 };
}