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

add method to remove or ignore a stampField #27

Closed
barthel opened this issue May 23, 2014 · 1 comment
Closed

add method to remove or ignore a stampField #27

barthel opened this issue May 23, 2014 · 1 comment
Assignees

Comments

@barthel
Copy link
Contributor

barthel commented May 23, 2014

It would be nice to ignore and/or remove the stampField to re-transform the class again.

@barthel
Copy link
Contributor Author

barthel commented May 26, 2014

If the transformation will be executed more than once the following exception was thrown:

[ERROR] Class xx.xxxxxx.xxxxx.xxxxx.XxxxxXxxxXxxxxxx$XXXXXxxXxXxxxxxxxx could not not be instrumented due to initialize FAILED.
javassist.bytecode.DuplicateMemberException: duplicate field: __TRANSFORMED_BY_JAVASSIST_MAVEN_PLUGIN__xx_xxxxxxxx_maven_plugin_javassist_transformer_VERInjectorClassTransformer
    at javassist.bytecode.ClassFile.testExistingField(ClassFile.java:602)
    at javassist.bytecode.ClassFile.addField(ClassFile.java:580)
    at javassist.CtClassType.addField(CtClassType.java:1265)
    at javassist.CtClass.addField(CtClass.java:1049)
    at com.github.drochetti.javassist.maven.ClassTransformer.applyStamp(ClassTransformer.java:211)

@barthel barthel self-assigned this May 26, 2014
barthel pushed a commit that referenced this issue May 26, 2014
@barthel barthel closed this as completed May 26, 2014
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

1 participant