[jbosstools-issues] [JBoss JIRA] (JBIDE-10840) Consumption of sun.misc.Signal makes Tycho 0.14 fails because of non-OSGi conformance

Mickael Istria (JIRA) jira-events at lists.jboss.org
Fri Feb 10 05:51:48 EST 2012


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

Mickael Istria commented on JBIDE-10840:
----------------------------------------

> doesn't osgi or tycho allow compiling even in these cases ?

OSGi does not really allow it. But is this bundle real OSGi? It does not seem to be used anywhere else in studio, and looking at the forge.xml file in it just make me think it is not used.

> as Koen says - its not easy to do this without this

yep, but the fact is that depdending on not exported Sun-specific classes from the JRE is like a bug. It works by luck on Sun JRE and OpenJDK, but it's not "real" Java.
Maybe another implementation is possible.
                
> Consumption of sun.misc.Signal makes Tycho 0.14 fails because of non-OSGi conformance
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-10840
>                 URL: https://issues.jboss.org/browse/JBIDE-10840
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>         Environment: any
>            Reporter: Mickael Istria
>            Assignee: Koen Aers
>            Priority: Blocker
>
> When building with Tycho, I get:
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.14.0-SNAPSHOT:compile (default-compile) on project org.jboss.tools.forge.runtime.ext: Compilation failure: Compilation failure:
> [ERROR] /home/mistria/workspaceJBossTools/trunk/forge/plugins/org.jboss.tools.forge.runtime.ext/src/org/jboss/tools/forge/runtime/ext/CtrlCAction.java:[8,0]
> [ERROR] import sun.misc.Signal;
> [ERROR] ^^^^^^^^^^^^^^^
> [ERROR] Access restriction: The type Signal is not accessible due to restriction on classpath entry /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar
> To be clear with OSGi, the forge component has to provide a "framework extension bundle" to re-export these libs: see http://blog.meschberger.ch/2008/10/osgi-bundles-require-classes-from.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list