Comments (14)
Can confirm this is an open issue with class-level annotations also.
Original comment by [email protected]
on 3 Dec 2008 at 11:09
from jarjar.
This currently prevents applications that use Guice from using jarjar on the
application. After jarjar'ing the application, Guice complains that they
annotaions are missing.
Original comment by bsoutham
on 30 Jan 2009 at 12:31
from jarjar.
Funny story, I was using guice too.
Original comment by [email protected]
on 30 Jan 2009 at 5:15
from jarjar.
I'm trying to Jar Jar the google collections API, most famous for it's
incompatibilities over the years.
And I am having the seeing the same issue with the 1.0 rc2 version.
Has anyone found a workaround?
Original comment by [email protected]
on 4 Aug 2009 at 11:05
from jarjar.
I hit the same problem, have done some investigation, and have an initial patch.
The issue seems to be in ASM, used by jarjar for the renaming of types. It
variously
doesn't attempt to rename annotation related types or calls what seems to be the
wrong method to do so (mapType calls that I think should be mapDesc).
I attach two patches - one for ASM that fixes the issue for me, and another for
jarjar with a test for annotation repackaging. The test would probably now be
better
rewritten as an ASM test. I patched ASM from the 3.1 tag but it also applies
cleanly
to trunk (not otherwise tested).
To test the patch you need to build and replace jarjar's
lib/asm-commons-3.1.jar.
I guess the next step is to raise an ASM bug. I'll leave that for the moment
in case
someone here wants to pick that up.
Original comment by matt%[email protected]
on 15 Nov 2009 at 11:55
Attachments:
from jarjar.
I have submitted a bug for this to the asm issue tracker here -
http://forge.ow2.org/tracker/index.php?func=detail&aid=314481&group_id=23&atid=1
00023
Original comment by [email protected]
on 18 Nov 2009 at 7:00
from jarjar.
([email protected]) commentor 5 - could you post your updated fixed copy of the
jarjarlinks jar here?
Original comment by [email protected]
on 18 Nov 2009 at 9:52
from jarjar.
Attached. This is jarjar trunk r128 with asm-commons 3.1 with my patch.
I'm new to both jarjar and ASM so I'd advise waiting for some review before
using it
for anything other than testing.
Original comment by matt%[email protected]
on 18 Nov 2009 at 10:40
Attachments:
from jarjar.
Thanks a lot. It seems to work for me.
Original comment by [email protected]
on 19 Nov 2009 at 7:04
from jarjar.
Ok it seems asm framework has committed your patch.
http://forge.ow2.org/tracker/?func=detail&atid=100023&aid=314481&group_id=23
Original comment by [email protected]
on 22 Nov 2009 at 8:39
from jarjar.
For the record the patch was committed to asm trunk in r1412.
Original comment by matt%[email protected]
on 22 Nov 2009 at 10:09
from jarjar.
ASM 3.3 has now been released, which includes the fix from above.
Original comment by matt%[email protected]
on 30 May 2010 at 6:12
from jarjar.
Original comment by hayward.chan
on 10 Feb 2011 at 12:28
- Changed state: Accepted
from jarjar.
1.1 should fix this (by upgrading asm from 3.1 to 3.3.1).
Original comment by hayward.chan
on 10 Feb 2011 at 12:49
- Changed state: Fixed
from jarjar.
Related Issues (20)
- Resources repackaged but not zapped
- Upgrade to ASM 4 HOT 5
- Missing 1.2 in Maven Central HOT 3
- Fix up Export-Package in MANIFEST.MF when running jar jar.
- jarjarXXXXXX.jar files are not deleted from the temp directory
- Jarjar rules file syntax should support comments HOT 1
- Provide public API for reusing jarjar as library (e.g. in a gradle task)
- The jarjar-1.4 binary package is empty
- jarjar-1.4.jar package does not contain any class file
- Java source filenames ignored by jarjar rules that work for classes.
- jarjar should rename inner $SwitchMap$com$foo$MyEnum class generated by enum switch
- version 1.4 not published in maven
- Empty directories in jar HOT 1
- Class not included in jar but it should be
- Please add to wiki (i'll be happy to if i have permission) a command line example with conversion of jar
- jarjar fails to repackage Java8 classes
- jarjar doesn't support JDK8/JDK9 HOT 1
- Support single class files as the classpath(s) to "find"
- Jarjar not shrink jar library
- Not exported to GitHub by the maintainers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jarjar.