File: Neg18.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 65,172 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (16 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * @test /nodynamiccopyright/
 * @bug 8062373
 * @summary Test that inaccessible vararg element type triggers an error during diamond inferred anonymous class instance creation.
 * @compile/fail/ref=Neg18.out Neg18.java -XDrawDiagnostics
 */

import java.util.Collections;
import pkg.Neg18_01;

class Neg18 {

   public static void main(String[] args) {
        new Neg18_01<>() {};
   }
}