Details
-
Type: Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.2.2
-
Component/s: None
-
Labels:None
Description
Environment: Java 1.5, with cglib-full-2.0.jar in the path.
Calling: new XSteam();
Throws:
java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.isEnhanced(Ljava/lang/Class;)Z
at com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.canConvert(CGLIBEnhancedConverter.java:59)
at com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(DefaultConverterLookup.java:58)
at com.thoughtworks.xstream.XStream.registerConverter(XStream.java:975)
at com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:646)
at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:629)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:371)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:297)
cglib-full-2.0.jar is in the path for a completely unrelated reason (and not something I can easily change). I'd like to use XStream but don't care about CGLib support.
Joe, can I close this? It is really only happening for the cglib-2.0 version that is more than 3 years old. Since 2.0.1 and later anything works as expected. Since upgrading cglib is quite flawless, I'd like to ignore this as known problem with easy workaround.