Comment #16 on issue 757 by [email protected]: Java 8 lambda definitions
can break Guice's internal exception handling
http://code.google.com/p/google-guice/issues/detail?id=757
This problem, or a very similar one, exists still in 4.0beta4 which claims
Java 8 compatibility:
Exception in thread "main"
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.RuntimeException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at
com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
at
com.google.inject.internal.util.StackTraceElements.forMember(StackTraceElements.java:66)
at
com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:790)
at com.google.inject.internal.Errors.formatSource(Errors.java:752)
at com.google.inject.internal.Errors.formatSource(Errors.java:743)
at com.google.inject.internal.Errors.format(Errors.java:569)
at
com.google.inject.CreationException.getMessage(CreationException.java:50)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)
at java.lang.Throwable.toString(Throwable.java:480)
at java.lang.String.valueOf(String.java:2979)
at java.io.PrintStream.println(PrintStream.java:821)
at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:748)
at java.lang.Throwable.printStackTrace(Throwable.java:655)
at java.lang.Throwable.printStackTrace(Throwable.java:643)
at java.lang.Throwable.printStackTrace(Throwable.java:634)
at
com.opentable.service.discovery.server.DiscoveryServerMain.main(DiscoveryServerMain.java:61)
Caused by: java.lang.RuntimeException
at com.google.inject.internal.asm.$MethodVisitor.visitParameter(Unknown
Source)
at com.google.inject.internal.asm.$ClassReader.b(Unknown Source)
at com.google.inject.internal.asm.$ClassReader.accept(Unknown Source)
at com.google.inject.internal.asm.$ClassReader.accept(Unknown Source)
at
com.google.inject.internal.util.LineNumbers.<init>(LineNumbers.java:65)
at
com.google.inject.internal.util.StackTraceElements$1.load(StackTraceElements.java:46)
at
com.google.inject.internal.util.StackTraceElements$1.load(StackTraceElements.java:43)
at
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
... 19 more
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev.
For more options, visit https://groups.google.com/d/optout.