[
https://issues.apache.org/jira/browse/KARAF-7778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré reassigned KARAF-7778:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> CommandExtension doesn't handle correctly bundles with a package that
> includes the word class
> ---------------------------------------------------------------------------------------------
>
> Key: KARAF-7778
> URL: https://issues.apache.org/jira/browse/KARAF-7778
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.3.6
> Reporter: Joao Assuncao
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
>
> If a bundle marked with the header Karaf-Commands includes a package
> starting with the word ".class" it will fail to load the class and log
> something like this:
> {noformat}
> Inspection of class
> com.atobe.ort.events.combiner.providerification.RmtaClassifier failed.
> java.lang.ClassNotFoundException:
> com.atobe.ort.events.combiner.providerification.RmtaClassifier not found by
> eventscombiner-provider [235]
> {noformat}
> In this case the package in question is
> "com.atobe.ort.events.combiner.provider.classification"
>
> This is caused by the regex in CommandExtension:
> {noformat}
> ...
> className = className.replace('/', '.').replace(".class", "");
> ...{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)