Skip to content

Instantly share code, notes, and snippets.

@erkieh
erkieh / AnnotationTest.java
Last active September 27, 2015 11:45
An example to reproduce annotation corruption after a class has been redefined with dcevm
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
/**
*
* @author Erki Ehtla