Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to edit package-info files

See original GitHub issue

Describe the bug

I have an OSGi Bundle (a jar with some extra metadata added) that normally has package-info files at package level to state which version the package is


// Decompiled with: CFR 0.150
import org.osgi.annotation.versioning.Version;


It states that it has a parse error. Found “package”, expected one of “;” “@” “class” "enum “interface” “module” “open”

To Reproduce

Open a jar (for example the following one: and go to and see the error

I would have expected to still be able to edit the file in assembler mode, but I don’t get any action anywhere to go to assembler mode?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

Col-Ecommented, Dec 28, 2020

Opened an issue with CFR so hopefully they will be printed in the correct location by default some time in the near future 👍

Col-Ecommented, Jan 11, 2021

1.17.1 will fix phantom generation for the annotations, so you no longer need to add the jar defining those annotations 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to modify annotation of using Java 8
A permanent fix is to change the annotation itself, instead of dynamically modifying it at runtime. Field annotationDataField = Class.class.getDeclaredField(" ...
Read more >
The File - Baeldung
In this tutorial, we're going to understand the purpose of and how it is useful. Simply put, package-info is a Java file...
Read more >
43114 – repeatedly compiled
After upgrading from 1.7.0 to 1.7.1, our files don't get compiled any more, and this breaks our JAXB code. The reason for...
Read more >
PackageInfo - Android Developers
Signing information read from the package file, potentially including past ... in case multiple signatures are reported you cannot assume the one at...
Read more >
DISM Operating System Package (.cab or .msu) Servicing ...
/Get-PackageInfo. Displays detailed information about a package provided as a .cab file. Only .cab files can be specified. You cannot use ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found