[XDoclet-JIRA] Created: (XDT-1551) Some classes are visited more than once causing dulicated entries.

"Cserveny Tamas (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Some classes are visited more than once causing dulicated entries.
------------------------------------------------------------------

         Key: XDT-1551
         URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1551
     Project: XDoclet
        Type: Bug
  Components: Spring Module, Core, Apache Module  
 Environment: irrelevant
 Reporter: Cserveny Tamas
 Assigned to: xdoclet-devel (Use for new issues) 
 Attachments: visited.patch

I'm experienceing a strange bug with xdoclet 1.2.3. 

Useing springxml and strutsconfig tags (probably all tags affected) when I define a class A and its child class B and both of them has xdoclet tags

eg.:

/**
@struts.action ..
@spring.bean ..
*/
class A extends ..struts...Action {
}

/**
@struts.action ..
@spring.bean ..
*/
class B extends A {
}

In both output files the following generated:

<bean name="/A" class="A" .../>
<bean name="/B" class="B" .../>
<bean name="/A" class="B" .../>

'A' is redefined ( same with struts action ).

I think this issue lies somewhere deep in core, where the superceded class in question is revisited.

I made a small patch to stop this revisit in my project, but unfortunatelty i'm unable to provide a full patch againt your CVS version.

The patch is in unified diff format.


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



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.