Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho and "Imported Packages"

1. is package org.eclipse.xtend2.lib exported by bundle org.eclipse.xtext.xtend2.lib without restriction (x-internal, x-friends,...)?

2. did you declare Import-Package: org.eclipse.xtend2.lib in your bundle manifest?

If the answer to both is yes, this could be a bug and we need a sample project to analyse.

Jan

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Aaron Digulla
Sent: Freitag, 30. März 2012 10:29
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Tycho and "Imported Packages"

Hello,

 From the documentation, I gathered that Tycho supports "Imported  
Packages" but when I compile Xtext 2.2 projects, I get this error:

1. ERROR in xxx.java (at line 43)
         import org.eclipse.xtend2.lib.StringConcatenation;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The type StringConcatenation is not accessible due  
to restriction on classpath entry  
$HOME/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.xtend2.lib/2.2.1.v201112130541/org.eclipse.xtext.xtend2.lib-2.2.1.v201112130541.jar

When I add the plugin org.eclipse.xtext.xtend2.lib to "Required  
Plug-ins", the error goes away.

Why?

Regards,

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top