You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/08/18 08:49:48 UTC

[jira] Created: (SMX4-579) extract common used classes for itests

extract common used classes for itests
--------------------------------------

                 Key: SMX4-579
                 URL: https://issues.apache.org/activemq/browse/SMX4-579
             Project: ServiceMix 4
          Issue Type: Improvement
            Reporter: Freeman Fang
            Assignee: Freeman Fang


this avoid put same classes in different bundles, which can cause ClassCastException

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


[jira] Work started: (SMX4-579) extract common used classes for itests

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

Work on SMX4-579 started by Freeman Fang.

> extract common used classes for itests
> --------------------------------------
>
>                 Key: SMX4-579
>                 URL: https://issues.apache.org/activemq/browse/SMX4-579
>             Project: ServiceMix 4
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>
> this avoid put same classes in different bundles, which can cause ClassCastException

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


[jira] Issue Comment Edited: (SMX4-579) extract common used classes for itests

Posted by "Geert Schuring (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61248#action_61248 ] 

Geert Schuring edited comment on SMX4-579 at 8/18/10 4:31 AM:
--------------------------------------------------------------

This is why every bundle should have package-import statements covering all packages it exports. That way, if 2 bundles offer the same code (which happens frequently) the OSGi classloaders make sure that only 1 version is used throughout the JVM.

This is the maven-bundle-plugin' s default behaviour. See http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

Extract:
"<Import-Package> is assumed to be "*", which imports everything referred to by the bundle content, but not contained in the bundle.
Any exported packages are also imported by default, to ensure a consistent class space."

      was (Author: cathodion):
    This is why every bundle should have package-import statements covering its own packages. That way, if 2 bundles offer the same code (which happens frequently) the OSGi classloaders make sure that only 1 version is used throughout the JVM.
  
> extract common used classes for itests
> --------------------------------------
>
>                 Key: SMX4-579
>                 URL: https://issues.apache.org/activemq/browse/SMX4-579
>             Project: ServiceMix 4
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.4.0
>
>
> this avoid put same classes in different bundles, which can cause ClassCastException

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


[jira] Commented: (SMX4-579) extract common used classes for itests

Posted by "Geert Schuring (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SMX4-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61248#action_61248 ] 

Geert Schuring commented on SMX4-579:
-------------------------------------

This is why every bundle should have package-import statements covering its own packages. That way, if 2 bundles offer the same code (which happens frequently) the OSGi classloaders make sure that only 1 version is used throughout the JVM.

> extract common used classes for itests
> --------------------------------------
>
>                 Key: SMX4-579
>                 URL: https://issues.apache.org/activemq/browse/SMX4-579
>             Project: ServiceMix 4
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.4.0
>
>
> this avoid put same classes in different bundles, which can cause ClassCastException

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


[jira] Resolved: (SMX4-579) extract common used classes for itests

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

Freeman Fang resolved SMX4-579.
-------------------------------

    Fix Version/s: 4.4.0
       Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=986579&view=rev

> extract common used classes for itests
> --------------------------------------
>
>                 Key: SMX4-579
>                 URL: https://issues.apache.org/activemq/browse/SMX4-579
>             Project: ServiceMix 4
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 4.4.0
>
>
> this avoid put same classes in different bundles, which can cause ClassCastException

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