← All tasks
javaLibrePDF/OpenPDF #512Not a task: already works

Wrong OSGI import for javax.annotation

envgap__LibrePDF__OpenPDF-512

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
a5a7113384e594454a264bc17de2e4c4ab958366
Manifest
openpdf/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

LibrePDF/OpenPDF #512 · read the original issue
I tried to use openpdf with karaf 4.3.1 (OSGI server) but I found out that there is a wrong import :

missing requirement [com.github.librepdf.openpdf/1.3.25] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.annotation)(version>=3.0.0)(!(version>=4.0.0)))"]]



But there isn't any bundle that provides javax.annotation >= 3.0.0.The latest javax.annotation package has this osgi releated manifest entry:

Export-Package: javax.annotation.security;version="1.3.5",javax.annotation.sql;version="1.3.5",javax.annotation;version="1.3.5"



Probably this dependency comes from findbugs 3.0.2 that contains invalid bundle import  (see discussion https://stackoverflow.com/questions/64568455/why-does-findbugs-jsr305-break-osgi-package-export-of-javax-annotations-in-redha)



Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]