Closed GoogleCodeExporter closed 9 years ago
In MyBatis-Spring, this is a problem. Spring has cglib as a dependency so most
of MyBatis-Spring users will be using lazy loading without even knowing that.
This is an overhead they may never be conscious of.
Besides, up to 3.0.4 cglib objects did not serialize so this is a source of
problems.
+1 to change lazy loading default to false regardles cglib is on the classpath
or not.
Original comment by eduardo.macarron
on 14 Dec 2010 at 5:27
This patch sets lazyload by default to false. If it is configured to true or
set to true by code it checks the availability of both cglib and asm in the
classpath and throws an exception in case any of them are not.
Original comment by eduardo.macarron
on 15 Dec 2010 at 5:33
Attachments:
Fixed in r3412
Original comment by eduardo.macarron
on 25 Dec 2010 at 11:27
Original comment by eduardo.macarron
on 25 Dec 2010 at 11:27
Original comment by eduardo.macarron
on 3 Mar 2012 at 9:11
Original comment by eduardo.macarron
on 14 Mar 2012 at 3:59
Original issue reported on code.google.com by
hpresnall@gmail.com
on 16 Oct 2010 at 9:22