Re: invokedynamic and error messages

2012-01-06 Thread Jochen Theodorou
Am 06.01.2012 17:22, schrieb John Rose: > On Jan 6, 2012, at 4:57 AM, Jochen Theodorou wrote: > >> I see where it comes from, but "reusing" that instead of making a new if >> is not really needed, is it? >> >> Do people here agree this should be improved? > > The javadoc for this throw is: > * @thr

Re: invokedynamic and error messages

2012-01-06 Thread John Rose
On Jan 6, 2012, at 4:57 AM, Jochen Theodorou wrote: > I see where it comes from, but "reusing" that instead of making a new if > is not really needed, is it? > > Do people here agree this should be improved? The javadoc for this throw is: * @throws IllegalArgumentException if the target do

invokedynamic and error messages

2012-01-06 Thread Jochen Theodorou
Hi all, I noticed some of the error message are a bit strange. For example I was going to use bindTo for a boolean, but primitives are not allowed. The error message I then get is: no leading reference parameter Which makes no sense at all. Looking at the code: if (type().parameterCo