User: vharcq  
  Date: 02/02/22 15:20:09

  Modified:    core/src/xdoclet/ejb/tags DataObjectTagsHandler.java
                        InterfaceTagsHandler.java
  Log:
  Message more clear when an ejb interface can not be loaded to find the bean class
  
  Revision  Changes    Path
  1.22      +5 -1      xdoclet/core/src/xdoclet/ejb/tags/DataObjectTagsHandler.java
  
  Index: DataObjectTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/DataObjectTagsHandler.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -w -r1.21 -r1.22
  --- DataObjectTagsHandler.java        17 Feb 2002 22:13:01 -0000      1.21
  +++ DataObjectTagsHandler.java        22 Feb 2002 23:20:09 -0000      1.22
  @@ -28,7 +28,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 15, 2001
  - * @version   $Revision: 1.21 $
  + * @version   $Revision: 1.22 $
    */
   public class DataObjectTagsHandler extends EjbTagsHandler
   {
  @@ -542,6 +542,10 @@
        public String dataObjectClassNameFromInterfaceName() throws XDocletException
        {
                String return_type = MethodTagsHandler.getMethodTypeFor( 
getCurrentMethod() );
  +
  +             if( return_type == null )
  +                     throw new XDocletException( Translator.getString( 
"xdoclet.ejb.Messages",
  +                             "interface_not_found", new 
String[]{getCurrentMethod().name()} ) );
   
                String bean_class_name = 
InterfaceTagsHandler.getBeanClassNameFromInterfaceNameFor( return_type );
   
  
  
  
  1.21      +3 -2      xdoclet/core/src/xdoclet/ejb/tags/InterfaceTagsHandler.java
  
  Index: InterfaceTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/InterfaceTagsHandler.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -w -r1.20 -r1.21
  --- InterfaceTagsHandler.java 17 Feb 2002 08:51:02 -0000      1.20
  +++ InterfaceTagsHandler.java 22 Feb 2002 23:20:09 -0000      1.21
  @@ -26,7 +26,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 15, 2001
  - * @version   $Revision: 1.20 $
  + * @version   $Revision: 1.21 $
    */
   public class InterfaceTagsHandler extends EjbTagsHandler
   {
  @@ -150,7 +150,8 @@
                if( cat.isDebugEnabled() )
                        cat.debug( "return_type=" + return_type );
                if( return_type == null )
  -                     throw new XDocletException( "You asked the bean class for a 
NULL interface name." );
  +                     throw new XDocletException( Translator.getString( 
"xdoclet.ejb.Messages",
  +                             "ask_for_bean_from_null_interface", new 
String[]{return_type} ) );
   
                for( int i = 0; i < classes.length; i++ )
                {
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to