I would like to know if/why I should upgrade CGLib 2.2.2 to Version 3.0. I am using CGLib with the latest versions of Hibernate/Spring/Mockito and Java 7.
I can not find release notes or upgrade directions for this version anywhere on the web.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you should migrate to CGLib 3.1 because it can correctly generate stack map frame and deal with Java 7 bytecode.
Update
The following issues were all addressed by CGLib 3.1
We’re using EasyMock and switched to a custom version of CGLIB 3. We switched because code coverage with EclEmma/JaCoCo/Sonar would no longer work. It was more or less a drop in replacement (apart from updating POMs). UnfortunatelyCGLIB 3 is not (yet) in Maven CentralCGLIB 3 has a blocker bug https://sourceforge.net/tracker/?func=detail&aid=3601081&group_id=56933&atid=482368 so we had to build a custom version and deployed it to our in-house NexusSo if you don’t currently have any issues like code coverage no longer working I would not switch.