[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-1642) An internal error occurred during: "Seam Validator" when input Seam entity class name as Entity

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Jan 17 09:40:20 EST 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-1642?page=all ]

Viacheslav Kabanovich resolved JBIDE-1642.
------------------------------------------

    Resolution: Done

I have prevented stack overflow in seam core. 
However, this case may invoke other failures in Eclipse core, 
for instance I have got stack overflow in org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.
Also, compiler puts error markers to generated EntityHome class.

The main problem is incorrect code generated by seam-gen for this case in class EntityHome:

import org.jboss.seam.framework.EntityHome;
...

class EntityHome extends EntityHome<Entity> {
...
}

It is not allowed to import class that has the same name as class declared in the current file.
Correct code would be:

class EntityHome extends org.jboss.seam.framework.EntityHome<Entity> {
...
}

So, you can create new issue for seam-gen component "Home component class is generated incorrectly if entity class is named 'Entity' "

However, is not this case is too artificial to worth taking it into consideration? 



> An internal error occurred during: "Seam Validator" when input Seam entity class name as Entity
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1642
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1642
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.1
>            Reporter: Anton Klimkovich
>         Assigned To: Viacheslav Kabanovich
>             Fix For: 2.0.1
>
>         Attachments: 111.txt
>
>
> Create Seam war project 
> Call New Seam Entity wizard
> In Seam entity class name field type Entity
> Click Finish button.
> An internal error occurred during: "Seam Validator".
> Log attached.

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

        



More information about the jbosstools-issues mailing list