Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class file annotations duplicated on repeated runs of insert-annotations #94

Open
GoogleCodeExporter opened this issue Jul 3, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Save attached files and compile source (javac C.java).  Run the following 
command twice:

    insert-annotations C.class C.jaif

Examining the class file with javap (javap -v C.class) reveals that two 
identical RuntimeInvisibleTypeAnnotations attributes have been added to the 
annotated method.  If the annotation is already present, it should not be added 
again.  Otherwise, if the attribute already exists, insert-annotations should 
add to the existing attribute instead of creating a new one.

Original issue reported on code.google.com by [email protected] on 8 May 2015 at 12:22

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants