[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [tycho-user] problem with "Access restriction" from compiler | 
| Tom, 
 you need to create another project for the fragment and not to add Fragment-Host:
    in your own bundle manifest...
 
 attached is the fragment project that I'm using successfully here...
    just add the packages that you want to access in its manifest at
    Export-Package:  ...
 
 and ensure that this project is in you pom as a module.
 
 at least here this is working fine in my product...
 
 On 04/01/12 17:05, Tom Brus wrote:
 Thanks Igor.
      
 I guess I will hold off from 0.14.0 until this is fixed.... 
 Should it not be a workaround to pass the -XDignore.symbol.file=true
        to the compiler? If yes, what did I do wrong (see first post)? 
 Tom 
 
        
        On Wed, Jan 4, 2012 at 20:54, Igor
          Fedorenko <igor@xxxxxxxxxxxxxx> 
          wrote:
           https://bugs.eclipse.org/bugs/show_bug.cgi?id=367431
 --
 Regards,
 Igor
 
 On 12-01-04 2:50 PM, Tom Brus wrote:
 
 
              
                No luck yet.... 
                I tried to put
                 
                   com.sun.xml.internal.bind.marshaller
                 
                in the Import-Package section of the manifest: manual
                eclipse does not 
                allow me and if I put it in the manifest forcefully, I
                get an error 
                (both from manual eclipse and Tycho). Am I doing
                something wrong here?
                 
                The other suggestion, putting this in the manifest:
                 
                   Fragment-Host: org.eclipse.osgi;extension:=framework
                 
                also does not work: I am getting the error:
                 
                   A fragment must not declare a bundle activator
                
                 
                any other suggestions....
                 
                Tom
                
                 
                On Wed, Jan 4, 2012 at 16:48, Cristiano Gavião <cvgaviao@xxxxxxxxx*NamespacePrefixMapper *is located ?
                <mailto:cvgaviao@xxxxxxxxx >>
                wrote:
                 
                   One question:
                 
                   the bundle that is accessing this api has a
                Import-Package to where
              
 
 
 On 04/01/12 12:30, Tom Brus wrote:
 
     Hi
                list,
 I am trying to move from Tycho *0.12.0* to
                *0.14.0-SNAPSHOT* (I
 Indeed, my source uses *NamespacePrefixMapper* and
                indeed thatneed 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
 
 
 
                  tycho-user@xxxxxxxxxxx
                 <mailto:tycho-user@xxxxxxxxxxx>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
 
 https://dev.eclipse.org/mailman/listinfo/tycho-user
 
 
 _______________________________________________
 tycho-user mailing list
 tycho-user@xxxxxxxxxxx
              <mailto:tycho-user@xxxxxxxxxxx>
 
 
 _______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
 
 | 
Attachment:
com.c4biz.osgiutils.jdk.deps.zip
Description: Zip archive