On Fri, Feb 6, 2015 at 10:00 AM, Kirill <[email protected]> wrote: > The problem is that the users of Plugin B recently started to complain that > they regularly get errors "java.lang.ClassCastException: com.foo.EventImpl > cannot be cast to com.foo.Event". Library XX contains an interface > com.foo.Event and an implementing class com.foo.EventImpl. So the error > means that class and interface were loaded by different classloaders from > different library versions.
Then somebody somewhere is loading classes incorrectly and you have to track down why. Typically this is the result of reflective calls to ClassLoader.loadClass (or Class.forName), which might be visible in code near lines in the stack trace. >> select plugin-first class loading mode for this plugin (a dangerous option >> disabled by default). > > What's dangerous about it? If you do not know what you are doing, you can unintentionally mask something you should not have masked, and wind up with linkage errors. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2Sj%2BPqqwJb%3D4UxkLDux0zeBhipZagK5_iaKWWUE46-OQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
