geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shenghao Fang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-5829) Endless loop in org.apache.geronimo.deployment.tools.loader.AbstractDeployable
Date Wed, 23 Feb 2011 02:56:39 GMT

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

Shenghao Fang updated GERONIMO-5829:
------------------------------------

    Attachment: GERONIMO-5829_AbstractDeployable.patch

> Endless loop in org.apache.geronimo.deployment.tools.loader.AbstractDeployable
> ------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5829
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5829
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: deployment
>    Affects Versions: 3.0
>            Reporter: Shenghao Fang
>            Assignee: Shenghao Fang
>         Attachments: GERONIMO-5829_AbstractDeployable.patch
>
>
> Please refer to the following code segment:
> {code:title=AbstractDeployable.java|borderStyle=solid}
> 48 protected AbstractDeployable(ModuleType type, Bundle bundle, String rootDD) throws
DDBeanCreateException {
>        ...
> 54     entries = new ArrayList<String>();
> 55     Enumeration<String> paths = bundle.getEntryPaths("/");
> 56     //TODO WTF?? if statement seems to be required????
> 57     if (paths.hasMoreElements()) {
> 58         for (String entry = paths.nextElement(); paths.hasMoreElements();) {    <-
Endless loop here
> 59             entries.add(entry);
> 60         }
> 61     }
> {code}

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

        

Mime
View raw message