Thanks. Fixed in https://github.com/rakudo/rakudo/commit/17604e3e4643442ba84ab5670ad7438ef04a5c31 Test unfuddged in https://github.com/perl6/roast/commit/2836648481af39f5bc1474b056133b545372a02c
On Mon, 21 Nov 2016 23:22:04 -0800, barto...@gmx.de wrote: > The following code dies with StringIndexOutOfBoundsException on > rakudo-j: > > $ ./perl6-j -e '+"120e"' > WARNINGS for -e: > Useless use of "+" in expression "+\"120e\"" in sink context (line 1) > java.lang.StringIndexOutOfBoundsException: String index out of range: > 4 > in sub parse-int-frac-exp at gen/jvm/CORE.setting line 30717 > in sub parse-simple-number at gen/jvm/CORE.setting line 30841 > in sub parse-real at gen/jvm/CORE.setting line 30847 > in sub val at gen/jvm/CORE.setting line 30868 > in method Numeric at gen/jvm/CORE.setting line 12738 > in sub prefix:<+> at gen/jvm/CORE.setting line 10006 > in block <unit> at -e line 1 > > It is supposed to return a Failure like that: > > $ ./perl6-m -e 'say +"120e" ~~ Failure' > True > > It looks like this was introduced with commit cb9df2bd40 (if I revert > that commit, > the code works as expected). > > I'm going to fudge (skip) the test, since I don't have time to look > for a fix > at the moment.