[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4144) Seam JavaScanner fails on annotation types

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Apr 8 08:54:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461206#action_12461206 ] 

Viacheslav Kabanovich commented on JBIDE-4144:
----------------------------------------------

Declaration of @Name is annotated by @Target(ElementType.TYPE). I would assume that this should narrow its usage to classes, but compiler does not report problems if I add it to annotation types and enums.
Also, compiler allows the following construction

@Name("comp1")
public @interface S {

	@Name("comp2")
	public static class V {
		
	}
}

Since internal class  is certainly good to be a Seam component, I think we need to parse and collect everything.
If "comp1" in my example is not legal and will not work at Seam runtime, it is up to Seam validator to report the problem.


> Seam JavaScanner fails on annotation types
> ------------------------------------------
>
>                 Key: JBIDE-4144
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4144
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 3.0.0.GA
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.0.1.GA
>
>
> In Java sources of a Seam project, create an annotation type
> @Deprecated
> public @interface MyAnnotation {
> } 
> After that Seam Builder fails with NullPointerException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list