You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Mirko Caserta (JIRA)" <ji...@apache.org> on 2009/05/27 11:07:50 UTC

[jira] Created: (SM-1860) SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package

SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package
-----------------------------------------------------------------------------------------

                 Key: SM-1860
                 URL: https://issues.apache.org/activemq/browse/SM-1860
             Project: ServiceMix
          Issue Type: Bug
    Affects Versions: 4.0
         Environment: ServiceMix Kernel testing support
            Reporter: Mirko Caserta
             Fix For: 4.0
         Attachments: smx4-kernel-testing-classloader.patch

The folliwing line:

pkg = name.substring(0, name.lastIndexOf('.'));

fails when name represents a class in the default package and makes String.substring() throw ad ArrayIndexOutOfBoundsException.

Attached is a simple fix. I guess you can make it look better :)

Patch is against current trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1860) SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package

Posted by "Mirko Caserta (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51932#action_51932 ] 

Mirko Caserta commented on SM-1860:
-----------------------------------

I can't seem to find the equivalent class in the karaf svn repository. I'm browsing the felix components in svn but still can't find the right place.

Can you please point me to the right direction? Thank you.

Mirko

> SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package
> -----------------------------------------------------------------------------------------
>
>                 Key: SM-1860
>                 URL: https://issues.apache.org/activemq/browse/SM-1860
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: ServiceMix Kernel testing support
>            Reporter: Mirko Caserta
>             Fix For: 4.0
>
>         Attachments: smx4-kernel-testing-classloader.patch
>
>
> The folliwing line:
> pkg = name.substring(0, name.lastIndexOf('.'));
> fails when name represents a class in the default package and makes String.substring() throw ad ArrayIndexOutOfBoundsException.
> Attached is a simple fix. I guess you can make it look better :)
> Patch is against current trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1860) SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51931#action_51931 ] 

Freeman Fang commented on SM-1860:
----------------------------------

Hi Mirko,
Apache Servicemix Kernel now move as Apache felix karaf.
Would you please raise jira here[1] and contribute patch against karaf code, you can download the code from [2], so that we can apply your patch there

[1]https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&pid=12310100&sorter/order=DESC&sorter/field=priority&resolution=-1&component=12312824
[2]https://svn.apache.org/repos/asf/felix/trunk/karaf

Thanks
Freeman

> SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package
> -----------------------------------------------------------------------------------------
>
>                 Key: SM-1860
>                 URL: https://issues.apache.org/activemq/browse/SM-1860
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: ServiceMix Kernel testing support
>            Reporter: Mirko Caserta
>             Fix For: 4.0
>
>         Attachments: smx4-kernel-testing-classloader.patch
>
>
> The folliwing line:
> pkg = name.substring(0, name.lastIndexOf('.'));
> fails when name represents a class in the default package and makes String.substring() throw ad ArrayIndexOutOfBoundsException.
> Attached is a simple fix. I guess you can make it look better :)
> Patch is against current trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1860) SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package

Posted by "Mirko Caserta (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mirko Caserta updated SM-1860:
------------------------------

    Attachment: smx4-kernel-testing-classloader.patch

patch against trunk

> SmxKernelPlatform$GuardClassLoader.loadClass() fails when class is in the default package
> -----------------------------------------------------------------------------------------
>
>                 Key: SM-1860
>                 URL: https://issues.apache.org/activemq/browse/SM-1860
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: 4.0
>         Environment: ServiceMix Kernel testing support
>            Reporter: Mirko Caserta
>             Fix For: 4.0
>
>         Attachments: smx4-kernel-testing-classloader.patch
>
>
> The folliwing line:
> pkg = name.substring(0, name.lastIndexOf('.'));
> fails when name represents a class in the default package and makes String.substring() throw ad ArrayIndexOutOfBoundsException.
> Attached is a simple fix. I guess you can make it look better :)
> Patch is against current trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.