Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2017-11-20 22:57:57 +0000
committerTill Brychcy2017-11-21 07:04:47 +0000
commitf30c7e0ad075e552c3dbc7cd43cbc8c6c3f55fbf (patch)
tree056cf9e7641e4dec282b55815155db1663d1f0f9 /org.eclipse.jdt.compiler.apt.tests
parentc97401f4b9f875eb11b8925d63234153add5b449 (diff)
downloadeclipse.jdt.core-f30c7e0ad075e552c3dbc7cd43cbc8c6c3f55fbf.tar.gz
eclipse.jdt.core-f30c7e0ad075e552c3dbc7cd43cbc8c6c3f55fbf.tar.xz
eclipse.jdt.core-f30c7e0ad075e552c3dbc7cd43cbc8c6c3f55fbf.zip
Bug 527532 - NPE caused in AnnotationDiscoveryVisitor.visit
Diffstat (limited to 'org.eclipse.jdt.compiler.apt.tests')
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/resources/targets/negative/pa/Bug527532.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.jdt.compiler.apt.tests/resources/targets/negative/pa/Bug527532.java b/org.eclipse.jdt.compiler.apt.tests/resources/targets/negative/pa/Bug527532.java
new file mode 100644
index 0000000000..09ac1514af
--- /dev/null
+++ b/org.eclipse.jdt.compiler.apt.tests/resources/targets/negative/pa/Bug527532.java
@@ -0,0 +1,14 @@
+package targets.negative.pa;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+@Target(ElementType.TYPE_USE)
+@interface A {
+
+}
+
+// There is no dedicated annotation processor for this class, other process where crashing because of the syntax error (void as field type)
+public class Bug527532 {
+ @A void f;
+}

Back to the top