Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayaprakash Arthanareeswaran2014-04-02 09:06:35 +0000
committerJayaprakash Arthanareeswaran2014-04-02 12:29:29 +0000
commitb254baac66bf2889dacf5067873dc414e39763d4 (patch)
tree2fdf7a1dd17c45db72623caecc57b7debf989055 /org.eclipse.jdt.compiler.apt.tests
parentd4d6b0243291019997a7d2e0c012e405a0f88778 (diff)
downloadeclipse.jdt.core-b254baac66bf2889dacf5067873dc414e39763d4.tar.gz
eclipse.jdt.core-b254baac66bf2889dacf5067873dc414e39763d4.tar.xz
eclipse.jdt.core-b254baac66bf2889dacf5067873dc414e39763d4.zip
Fix for Bug 425687 - Invalid annotation inference when 2 classes have
the same (simple) name
Diffstat (limited to 'org.eclipse.jdt.compiler.apt.tests')
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors.jarbin173483 -> 173483 bytes
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/Marker.java15
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/outer/OuterClass.java16
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/test/Foo.java18
4 files changed, 49 insertions, 0 deletions
diff --git a/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors.jar b/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors.jar
index 2552ebb837..79b1cdb868 100644
--- a/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors.jar
+++ b/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors.jar
Binary files differ
diff --git a/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/Marker.java b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/Marker.java
new file mode 100644
index 0000000000..029047d319
--- /dev/null
+++ b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/Marker.java
@@ -0,0 +1,15 @@
+/*******************************************************************************
+ * Copyright (c) 2014 IBM Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package targets.model.pd;
+
+public @interface Marker {
+}
diff --git a/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/outer/OuterClass.java b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/outer/OuterClass.java
new file mode 100644
index 0000000000..0dc83ed70f
--- /dev/null
+++ b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/outer/OuterClass.java
@@ -0,0 +1,16 @@
+/*******************************************************************************
+ * Copyright (c) 2014 IBM Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package targets.model.pd.outer;
+public class OuterClass {
+ public interface Marker {
+ }
+}
diff --git a/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/test/Foo.java b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/test/Foo.java
new file mode 100644
index 0000000000..16fdbe8887
--- /dev/null
+++ b/org.eclipse.jdt.compiler.apt.tests/resources/targets/model/pd/test/Foo.java
@@ -0,0 +1,18 @@
+/*******************************************************************************
+ * Copyright (c) 2014 IBM Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package targets.model.pd.test;
+
+import targets.model.pd.Marker;
+import targets.model.pd.outer.OuterClass;
+
+@Marker
+public class Foo extends OuterClass {
+} \ No newline at end of file

Back to the top