[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] problem with "Access restriction" from compiler
|
Compile classpath and classpath access rules did not respect bundle
execution environment in Tycho 0.12. This is fixed in 0.14
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362966
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364076
https://bugs.eclipse.org/bugs/show_bug.cgi?id=364095
--
Regards,
Igor
On 12-01-04 10:30 AM, Tom Brus wrote:
Hi list,
I am trying to move from Tycho *0.12.0* to *0.14.0-SNAPSHOT* (I need
some feature fixed in 14).
My project builds just fine under 0.12.0.
When I use 0.14.0-SNAPSHOT I get the following error from the java compiler:
Access restriction: The type NamespacePrefixMapper is not accessible
due to restriction on classpath entry
/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar
Indeed, my source uses *NamespacePrefixMapper* and indeed that should
not be done.
But why does that suddenly break the build? Or maybe I should ask: why
did it not break under 0.12.0?
To fix that I tried to put the following in my pom:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>0.14.0-SNAPSHOT</version>
<configuration>
<compilerArgument>-XDignore.symbol.file=true</compilerArgument>
</configuration>
</plugin>
</plugins>
</build>
but this does not fix it. I verified that the option is passed to the
plugin, the logging shows:
...
[DEBUG] (f) compileSourceRoots = [.....]
[DEBUG] (f) compilerArgument = -XDignore.symbol.file=true
[DEBUG] (f) compilerId = jdt
...
Furthermore I see the following line in the log, which was not there in
0.12.0, does that give a clue:
[DEBUG] (f) useJDK = SYSTEM
Any ideas?
Thanks,
Tom
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user