You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2021/09/11 12:31:03 UTC
[jira] [Closed] (THRIFT-5400) Java library does not export the
.annotation package
[ https://issues.apache.org/jira/browse/THRIFT-5400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer closed THRIFT-5400.
------------------------------
> Java library does not export the .annotation package
> ----------------------------------------------------
>
> Key: THRIFT-5400
> URL: https://issues.apache.org/jira/browse/THRIFT-5400
> Project: Thrift
> Issue Type: Bug
> Components: Java - Library
> Affects Versions: 0.13.0, 0.14.0, 0.14.1
> Reporter: Antonio Garcia Dominguez
> Assignee: Antonio Garcia Dominguez
> Priority: Major
> Fix For: 0.15.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)