[jbosstools-issues] [JBoss JIRA] (JBIDE-15647) Compile errors when building arquillian with Luna target platform

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Thu Oct 10 06:37:02 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12813033#comment-12813033 ] 

Snjezana Peco commented on JBIDE-15647:
---------------------------------------

Arquillian uses a special classloader in order to avoid a Windows file lock issue.
The classloader uses a bundle's classloader. It wouldn't be easy to change that behaviour.
In my opinion, the fix is simple: org.eclipse.osgi.framework.adaptor.BundleClassLoader is renamed to org.eclipse.osgi.internal.loader.ModuleClassLoader.
If we would want to use the same code for Kepler and Luna, we would have to remove internal API which would be difficult to do because other parts of JBT also use it.
                
> Compile errors when building arquillian with Luna target platform
> -----------------------------------------------------------------
>
>                 Key: JBIDE-15647
>                 URL: https://issues.jboss.org/browse/JBIDE-15647
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: testing-tools
>    Affects Versions: 4.2.x
>            Reporter: Snjezana Peco
>            Assignee: Snjezana Peco
>
> When building the arquillian component with Luna TP(tpc.version=4.40.0.Alpha1-SNAPSHOT) there are the following compile errors:
> {code}
> [ERROR] import org.eclipse.osgi.framework.adaptor.BundleClassLoader;
> [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [ERROR] The import org.eclipse.osgi.framework.adaptor cannot be resolved
> [ERROR] 
> ...
> [ERROR] || tmp instanceof BundleClassLoader)
> [ERROR] ^^^^^^^^^^^^^^^^^
> [ERROR] BundleClassLoader cannot be resolved to a type
> {code}
> The errors are caused by the change of OSGi internals. 
> The org.eclipse.osgi.framework.adaptor package and the BundleClassloader class have been removed from Luna.
> The changes aren't compatible with the previous Eclipse versions, so we need a separate branch for Luna.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list