cglib is a powerful, high performance and quality Code Generation Library, It is used to extend JAVA classes and implements interfaces at runtime.



cglib Build Status

IMPORTANT NOTE: cglib is unmaintained and does not work well (or possibly at all?) in newer JDKs, particularly JDK17+. If you need to support newer JDKs, we will accept well-tested well-thought-out patches... but you'll probably have better luck migrating to something like ByteBuddy.

Byte Code Generation Library is high level API to generate and transform JAVA byte code. It is used by AOP, testing, data access frameworks to generate dynamic proxy objects and intercept field access.

How To:

Latest Release:

All Releases:

cglib-#.#_#.jar binary distribution, CGLIB classes only, it must be used to extend cglib classes dependant on ASM API

cglib-nodep-#.#_#.jar binary distribution, CGLIB and renamed ASM classes, not extendable