I’ve done that before. It is a bit difficult to extract the underlying error 
because the exception that bubbles up is flat and doesn’t contain the root 
cause. 

I did managed to find a workaround (which was probably in the bug comments or 
really obvious but took me a bit to come to). However, the workaround requires 
quite a bit of work. I had to unwind any lambdas in my project that were in the 
Guice injection path. We have a number of modules that are lambdas because the 
Module interface is functional. If you remove all lambdas, the stack trace gets 
fixed because ASM no longer runs into bytecode it can’t figure out.

A toggle would be great. Or just bumping to the latest ASM (which we did for 
Prime-MVC) fixes this and a bunch of other ASM issues as well.

-- Brian

On Dec 5, 2013, at 3:09 PM, Sam Berlin <[email protected]> wrote:

> If you weren't using AOP, you could use the NO_AOP variant... but AOP 
> requires cglib requires ASM, so there's no way to disable it right now.
> 
> I'm looking into fixing it now, and in the meantime you can temporarily hack 
> in a try/catch around the place that is failing.
> 
>  sam
> 
> 
> On Thu, Dec 5, 2013 at 5:05 PM, Brian Pontarelli <[email protected]> wrote:
> I’m working on a JDK 8 application that and running into the ASM line number 
> problem. Just FYI - we are using AOP, multi-binders, Module overrides and a 
> couple of other features. Here’s the bug tracking this issue:
> 
> https://code.google.com/p/google-guice/issues/detail?id=757
> 
> Does anyone have a workaround for this? Anyway to disable ASM completely?
> 
> — Brian
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-guice.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-guice.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to