Author: scabanovich
Date: 2009-04-10 07:54:41 -0400 (Fri, 10 Apr 2009)
New Revision: 14672
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
Log:
JBIDE-4144
Added:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java 2009-04-10
11:54:41 UTC (rev 14672)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+import org.jboss.seam.annotations.*;
+
+@Name("myCustomAnnotation")
+public @interface CustomAnnotation {
+
+ @Name("inner_JBIDE_4144")
+ public static class Inner {
+ private String innerName;
+
+ public String getInnerName() {
+ return innerName;
+ }
+
+ public void setInnerName(String s) {
+ innerName = s;
+ }
+ }
+
+}
\ No newline at end of file
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2009-04-10
11:30:57 UTC (rev 14671)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2009-04-10
11:54:41 UTC (rev 14672)
@@ -465,6 +465,12 @@
assertTrue("Component inner_JBIDE_1374 declared in inner static class is not
found.", c != null);
}
+ public void testInnerClassInAnnotationType_JBIDE_4144() {
+ ISeamProject seamProject = getSeamProject();
+ ISeamComponent c = seamProject.getComponent("inner_JBIDE_4144");
+ assertTrue("Component inner_JBIDE_4144 declared in inner static class inside an
annotation type is not found.", c != null);
+ }
+
public void testInstallWithoutPrecedence_JBIDE_2052() {
ISeamProject seamProject = getSeamProject();
ISeamComponent c =
seamProject.getComponent("installWithoutPrecedence_JBIDE_2052");