Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5400

Java library does not export the .annotation package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.14.0, 0.14.1
    • 0.15.0
    • Java - Library
    • None

    Description

      We use the Java Thrift library as an OSGi bundle, taking advantage of the existing Export-Package and Import-Package annotations.

      After moving to the Thrift 0.13.0 library, we tried using the Thrift 0.13.0 compiler to produce up-to-date Java code, and our builds are now failing with this error message:

      Access restriction: The type 'Nullable' is not API (restriction on required library '/home/antonio/workspaces/eclipse-hawk/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.apache.thrift_0.13.0.jar')

      This appears to be due to the fact that the Java library does not list the .annotation package that contains the Nullable annotation in the Export-Package line of the JAR manifest, but still uses it all over the place in the generated code.

      Attachments

        Issue Links

          Activity

            People

              agarciad Antonio Garcia Dominguez
              agarciad Antonio Garcia Dominguez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m