RFR[9]: 8158510: Add test cases to validate Annotation

shilpi.rastogi at oracle.com shilpi.rastogi at oracle.com
Fri Jul 1 08:15:02 UTC 2016


Hi All,

Please review https://bugs.openjdk.java.net/browse/JDK-8158510
*Problem:* How to validate annotation, as javac does not allow us to 
write wrong annotation so how should we test valid annotation at runtime?

http://cr.openjdk.java.net/~srastogi/8158510/webrev.00/
*Solution:* To test this i used ASM tool and modified the classfile with 
wrong annotation (not allowed at javac level) and wrote test cases.

Thanks,
Shilpi


More information about the core-libs-dev mailing list