1 /*
   2  * @test /nodynamiccopyright/
   3  * @bug     6313164 8036953
   4  * @author mcimadamore
   5  * @summary  javac generates code that fails byte code verification for the varargs feature
   6  * @compile/fail/ref=T6313164Source7.out -source 7 -XDrawDiagnostics T6313164.java
   7  * @compile/fail/ref=T6313164Source8AndHigher.out -XDrawDiagnostics T6313164.java
   8  */
   9 import p1.*;
  10 
  11 class T6313164 {
  12     {
  13         B b = new B();
  14         b.foo1(new B(), new B()); //error - A not accessible
  15         /*   7  : ok - A not accessible, but foo2(Object...) applicable
  16          *   8+ : error - A not accessible
  17          */
  18         b.foo2(new B(), new B());
  19         b.foo3(null, null); //error - A (inferred) not accessible
  20         b.foo4(null, null); //error - A not accesible
  21         /*   7  : ok - A not accessible, but foo4(Object...) applicable
  22          *   8+ : error - A not accessible
  23          */
  24         b.foo4(new B(), new C());
  25     }
  26 }