User: rinkrank
  Date: 02/07/10 14:18:10

  Modified:    modules/ejb/src/xdoclet/modules/ejb/entity
                        PersistentTagsHandler.java
  Log:
  Set UnknownClass' superclass to java.lang.Object to avoid NPE
  
  Revision  Changes    Path
  1.9       +6 -2      
xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/PersistentTagsHandler.java
  
  Index: PersistentTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/PersistentTagsHandler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -w -r1.8 -r1.9
  --- PersistentTagsHandler.java        10 Jul 2002 01:07:01 -0000      1.8
  +++ PersistentTagsHandler.java        10 Jul 2002 21:18:09 -0000      1.9
  @@ -27,7 +27,7 @@
    * @author               Ara Abrahamian ([EMAIL PROTECTED])
    * @created              Oct 16, 2001
    * @xdoclet.taghandler   namespace="EjbPersistent"
  - * @version              $Revision: 1.8 $
  + * @version              $Revision: 1.9 $
    */
   public class PersistentTagsHandler extends CmpTagsHandler
   {
  @@ -438,7 +438,11 @@
               }
   
               // Add super class info
  -            if 
(getCurrentClass().getSuperclass().getQualifiedName().equals("java.lang.Object")) {
  +                             XClass cur = getCurrentClass();
  +                             XClass sup = cur.getSuperclass();
  +                             String qname = sup.getQualifiedName();
  +                             boolean top = qname.equals("java.lang.Object");
  +            if (top) {
                   popCurrentClass();
                   break;
               }
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to