Chained exception handling: bug?
Remi Forax
forax at univ-mlv.fr
Wed Feb 28 00:00:45 UTC 2018
Funny, i've hit this exact same issue earlier in the morning.
Rémi
----- Mail original -----
> De: "Brian Goetz" <brian.goetz at oracle.com>
> À: "kulla-dev" <kulla-dev at openjdk.java.net>
> Envoyé: Mercredi 28 Février 2018 00:45:50
> Objet: Chained exception handling: bug?
> If I evaluate an expression which results in throwing an exception, and
> that exception has a cause, the cause is not included in the stack trace:
>
> jshell> $8.resolveConstantRef(MethodHandles.lookup())
>| java.lang.BootstrapMethodError thrown: bootstrap method
> initialization exception
>| at BootstrapMethodInvoker.invoke (BootstrapMethodInvoker.java:174)
>| at ConstantBootstraps.makeConstant (ConstantBootstraps.java:66)
>| at DynamicConstantRef.resolveConstantRef
> (DynamicConstantRef.java:308)
>| at (#22:1)
>
> This exception had a chained cause, but it wasn't displayed. Was the
> choice to only process the first exception in the chain deliberate, or
> is this an omission? (Its pretty hard to debug the above without the
> underlying cause.)
More information about the kulla-dev
mailing list