google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

Guice AOP explodes with "Cannot subclass final class class" exception #407

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
> Exception in thread "main"
> com.google.inject.internal.ComputationException:
> java.lang.IllegalArgumentException: Cannot subclass final class class
> com.google.Elided
>        at 
com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
>        at 
com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
>        at 
com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcu
rrentH
ashMap.java:2041)
>        at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
>        at 
com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore
.java:48)
>        at 
com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingI
mpl.java:113)
>        at 
com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:367)
>        at 
com.google.inject.internal.BindingProcessor$1$1.run(BindingProcessor.java:192)
>        at 
com.google.inject.internal.BindingProcessor.initializeBindings(BindingProcessor.
java:229)
>        at 
com.google.inject.internal.InjectorBuilder.initializeStatically(InjectorBuilder.
java:121)
>        at 
com.google.inject.internal.InjectorBuilder.build(InjectorBuilder.java:106)
>        at com.google.inject.Guice.createInjector(Guice.java:93)
>        at com.google.inject.Guice.createInjector(Guice.java:70)
>        at com.google.inject.Guice.createInjector(Guice.java:60)
>        at com.google.common.inject.Modules.createInjector(Modules.java:169)

Original issue reported on code.google.com by limpbizkit on 23 Jul 2009 at 7:11

GoogleCodeExporter commented 9 years ago
See this:
http://forum.springsource.org/archive/index.php/t-10052.html

Original comment by tuno...@gmail.com on 22 Oct 2009 at 8:29

GoogleCodeExporter commented 9 years ago
I believe the fix is simply to report the error in a friendlier way...

Original comment by limpbizkit on 22 Oct 2009 at 5:07

GoogleCodeExporter commented 9 years ago
fixed in r1319.

Original comment by sberlin on 25 Oct 2010 at 4:56