Hello,
Consider the folder hierarchy :
Folder/
- file1.java
-SubFolder/
- file2.java ---- must contain at least a method with one or
more parameters
step 1 : Set the files to be analyzed to be Folder
step 2 : As expected we get two compilation units file1.java and
file2.java
step 3 : Set the files to be analyzed to be SubFolder - without
restarting the application
step 4 : We get two compilation units - file2.java twice...
The way I fixed this (but I'm not sure that this is the right way) was to
use a HashSet in the method recoder.io.PathList.findAll(FilenameFilter) for
the res variable:
// the filter must be able to accept null parent directories
// (e.g. for ZipEntries)
public DataLocation[] findAll(FilenameFilter filter) {
Set<DataLocation> res = new HashSet<DataLocation>();
I've attached the modified PathList file.
Ioana
Tobias Gutzmann
None
None
Public
|
Date: 2009-08-07 10:33 Added in SVN/next release. A warning is reported to the error handler if a |
|
Date: 2009-07-28 12:37 I move this to Feature Requests. I will consider this issue before the next |
|
Date: 2009-07-22 16:21 Hello, |
|
Date: 2009-07-08 08:57 Hej, |
| Filename | Description | Download |
|---|---|---|
| PathList.java | patched PathList | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2009-08-07 10:33 | tgutzmann |
| status_id | Open | 2009-08-07 10:33 | tgutzmann |
| allow_comments | 1 | 2009-08-07 10:33 | tgutzmann |
| resolution_id | Accepted | 2009-08-07 10:33 | tgutzmann |
| category_id | Parser | 2009-07-28 12:37 | tgutzmann |
| resolution_id | None | 2009-07-28 12:37 | tgutzmann |
| data_type | 392688 | 2009-07-28 12:37 | tgutzmann |
| assigned_to | nobody | 2009-07-08 08:57 | tgutzmann |
| summary | sub-package duplicate comp. units | 2009-07-05 14:40 | ioanaverebi |
| File Added | 333513: PathList.java | 2009-07-05 14:39 | ioanaverebi |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use