You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/06/27 12:38:00 UTC

[jira] [Created] (FELIX-5659) Possible bug with Framework#listResources

Guillaume Nodet created FELIX-5659:
--------------------------------------

             Summary: Possible bug with Framework#listResources
                 Key: FELIX-5659
                 URL: https://issues.apache.org/jira/browse/FELIX-5659
             Project: Felix
          Issue Type: Bug
            Reporter: Guillaume Nodet


I'm not completely sure what the behavior should be, but it seems to me not very understandable that the following may not return the same thing when used for the system bundle:
{code}
   systemBundle.adapt(BundleWiring.class).listResources("META-INF/services", "javax.script.ScriptEngineFactory", 2)
and
  systemBundle.adapt(BundleWiring.class).getClassLoader().loadResources("META-INF/services/javax.script.ScriptEngineFactory")
{code}

On JDK 8, the second call correctly returns the nashorn javascript engine factory, but it can't be found using the first call.

Anyone knows if this is an expected behavior ?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)