felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sahoo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-2935) Bundle.getEntryPaths and findEntries are returning META-INF/ multiple times
Date Wed, 27 Apr 2011 12:36:03 GMT

     [ https://issues.apache.org/jira/browse/FELIX-2935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sahoo updated FELIX-2935:
-------------------------

    Attachment: FELIX-2935.zip

Unzip. See README for simple instructions to test.

> Bundle.getEntryPaths and findEntries are returning META-INF/ multiple times
> ---------------------------------------------------------------------------
>
>                 Key: FELIX-2935
>                 URL: https://issues.apache.org/jira/browse/FELIX-2935
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-3.0.8
>            Reporter: Sahoo
>         Attachments: FELIX-2935.zip
>
>
> Bundle.getEntryPaths("/") and Bundle.findEntries("/", "*", true) return META-INF/ twice.
There is no fragment attached, so there is no reason for findEntries to return twice.
> My code looks like this:
>     void printEntryPaths(Bundle b, String s) {
>         Enumeration e = b.getEntryPaths(s);
>         if (e!=null) {
>             while (e.hasMoreElements()) {
>                 String next = (String)e.nextElement();
>                 System.out.println(next);
>                 printEntryPaths(b, next);
>             }
>         }
>     }
>     void printEntryPaths2(Bundle b, String s) {
>         Enumeration e = b.findEntries(s, "*", true);
>         if (e != null) {
>             while (e.hasMoreElements()) {
>                 URL next = (URL)e.nextElement();
>                 System.out.println(next.getPath());
>             }
>         }
>     }
> This seems to be a regression.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message