8

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.

tine2k
  • 1,521
  • 1
  • 16
  • 21

1 Answers1

4

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). Unfortunately

So if you don't currently have any issues like code coverage no longer working I would not switch.

Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52