ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Tue, 05 Sep 2000 12:32:35 GMT
bodewig     00/09/05 05:32:33

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Avoid StringIndexOutOfBoundsException when .java files were found
  directly inside one of the source directories (classes in the default
  package).
  
  Revision  Changes    Path
  1.30      +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
  
  Index: Javadoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Javadoc.java	2000/09/04 15:19:16	1.29
  +++ Javadoc.java	2000/09/05 12:32:32	1.30
  @@ -905,7 +905,7 @@
       			}
       		});
       
  -    	if (foundJavaFile) {
  +    	if (foundJavaFile && vpath.length() > 0) {
       		String newPkg = vpath.substring(1).replace(File.separatorChar, '.');
       		if (!pkgs.contains(newPkg)) {
       			pkgs.addElement(newPkg);
  
  
  

Mime
View raw message