jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject cvs commit: jakarta-bcel/examples listclass.java
Date Wed, 13 Aug 2003 14:11:07 GMT
mdahm       2003/08/13 07:11:07

  Modified:    examples listclass.java
  Log:
  regard again .class files
  
  Revision  Changes    Path
  1.3       +5 -2      jakarta-bcel/examples/listclass.java
  
  Index: listclass.java
  ===================================================================
  RCS file: /home/cvs/jakarta-bcel/examples/listclass.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- listclass.java	23 May 2003 07:55:10 -0000	1.2
  +++ listclass.java	13 Aug 2003 14:11:07 -0000	1.3
  @@ -142,8 +142,11 @@
           if(name.startsWith((String) exclude_name.elementAt(idx)))
             return;
   
  -      if((java_class = Repository.lookupClass(name)) == null)
  +      if(name.endsWith(".class")) {
           java_class = new ClassParser(name).parse(); // May throw IOException
  +      } else {
  +	java_class = Repository.lookupClass(name);
  +      }
   
         if(nocontents)
           System.out.println(java_class.getClassName());
  
  
  

Mime
View raw message