Author: scabanovich
Date: 2009-04-10 08:12:32 -0400 (Fri, 10 Apr 2009)
New Revision: 14676
Added:
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
Modified:
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
Log:
JBIDE-4144
Added:
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
===================================================================
---
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java
(rev 0)
+++
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/projects/TestScanner/JavaSource/demo/CustomAnnotation.java 2009-04-10
12:12:32 UTC (rev 14676)
@@ -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:
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java
===================================================================
---
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2009-04-10
12:03:29 UTC (rev 14675)
+++
branches/jbosstools-3.0.x/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/ScannerTest.java 2009-04-10
12:12:32 UTC (rev 14676)
@@ -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");