aboutsummaryrefslogtreecommitdiff
path: root/test/tools/javac/lambda/T8057794.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/javac/lambda/T8057794.java')
-rw-r--r--test/tools/javac/lambda/T8057794.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/tools/javac/lambda/T8057794.java b/test/tools/javac/lambda/T8057794.java
new file mode 100644
index 00000000..2bf4c5ae
--- /dev/null
+++ b/test/tools/javac/lambda/T8057794.java
@@ -0,0 +1,12 @@
+/**
+ * @test /nodynamiccopyright/
+ * @bug 8057794
+ * @summary The tree for TypeVar.class does not have a type set, which leads to an NPE when
+ * checking if deferred attribution is needed
+ * @compile/fail/ref=T8057794.out -XDrawDiagnostics T8057794.java
+ */
+class T8057794<T> {
+ void t() {
+ System.out.println(T.class.getSimpleName());
+ }
+}