Bugs item #491482, was opened at 2001-12-11 01:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=491482&group_id=31602
Category: ejbdoclet
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Erwin Guib (eguib)
Assigned to: Nobody/Anonymous (nobody)
Summary: entitycmp and session tasks
Initial Comment:
during testing of the current CVS version (11. Dec)
I got problems with the EJB subtasks entitycmp and
session. The following happens:
- when not starting the <entitycmp/> subtaskt
xdoclet crashes with a NullPointerException.
- when <entitycmp/> is started everything works fine
- when the <session/> task is started the session
object gets created, but is not set in the
ejb-jar.xml descriptor as bean class.
I located the problem in the file
./xdoclet/core/src/xdoclet/ejb/tags/EjbTagsHandler.java
in the wrong/missing call to
DocletContext.isSubTaskDefined(String)
which expects a class name but gets some symbolic
string ("session") as parameter. At other places the
call was not there at all.
I made the following changes:
- line 464 change
!DocletContext.getInstance().isSubTaskDefined
( "session" ) )
---
!DocletContext.getInstance().isSubTaskDefined(
SessionSubTask.class.getName() ) )
- line 471 add an OR branch to the if stmt
|| !DocletContext.getInstance().isSubTaskDefined(
EntityBmpSubTask.class.getName() ) )
- line 477/480 add { } for the branch
else if( CmpTagsHandler.isEntityCmp( getCurrentClass
() ) )
- line 478 add an OR branch to the if stmt
|| !DocletContext.getInstance().isSubTaskDefined(
EntityCmpSubTask.class.getName() ) )
At least for the testing I did (up to now :-) this
fixes the problems described.
To make things easier I add the changed file
to the post.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-12-23 22:33
Message:
Logged In: NO
All subtasks are now optional. Check out the latest code
from cvs.
Ara.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=491482&group_id=31602
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel