db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata RepositoryXmlHandler.java
Date Thu, 11 Nov 2004 23:10:50 GMT
arminw      2004/11/11 15:10:50

  Modified:    src/java/org/apache/ojb/broker/metadata
                        RepositoryXmlHandler.java
  Log:
  add null-check for super-class attribute
  add error when parsing exception occur
  
  Revision  Changes    Path
  1.65      +3 -4      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java
  
  Index: RepositoryXmlHandler.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryXmlHandler.java,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- RepositoryXmlHandler.java	26 Oct 2004 15:27:40 -0000	1.64
  +++ RepositoryXmlHandler.java	11 Nov 2004 23:10:50 -0000	1.65
  @@ -250,10 +250,9 @@
                           }
   
                           // set if extends
  -                        // set row-reader attribute
                           String extendsAtt = atts.getValue(RepositoryTags.getTagById(EXTENDS));
                           if (isDebug) logger.debug("     " + RepositoryTags.getTagById(EXTENDS)
+ ": " + extendsAtt);
  -                        if (extendsAtt != null)
  +                        if (checkString(extendsAtt))
                           {
                               m_CurrentCLD.setSuperClass(extendsAtt);
                           }
  @@ -979,7 +978,7 @@
           }
           catch (Exception ex)
           {
  -            // logger.error(ex);
  +            logger.error("Exception while read metadata", ex);
               if(ex instanceof MetadataException) throw (MetadataException)ex;
               else throw new MetadataException("Exception when reading metadata information,"+
                       " please check your repository.xml file", ex);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message