You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: Failed to backport class: Example
at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:128)
at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:107)
at net.orfjackal.retrolambda.Transformers.backportClass(Transformers.java:47)
at net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:77)
at net.orfjackal.retrolambda.Main.main(Main.java:26)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1955)
at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations.isNonOwnedMethodVisible(BackportLambdaInvocations.java:107)
at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations.getLambdaAccessMethod(BackportLambdaInvocations.java:66)
at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.backportLambda(BackportLambdaInvocations.java:169)
at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.visitInvokeDynamicInsn(BackportLambdaInvocations.java:160)
at net.orfjackal.retrolambda.asm.ClassReader.readCode(ClassReader.java:1452)
at net.orfjackal.retrolambda.asm.ClassReader.readMethod(ClassReader.java:1017)
at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:693)
at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:506)
at net.orfjackal.retrolambda.Transformers.lambda$transform$5(Transformers.java:107)
at net.orfjackal.retrolambda.Transformers$$Lambda$8/1530388690.accept(Unknown Source)
at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:124)
... 4 more
Pretty sure this is my fault! We should be checking for -1 from indexOf before calling substring. Unlikely to be hit in production because no one should be using the default package! I found it while working on content for a presentation.
I'll send a fix later this week or next if someone doesn't beat me to it.
The text was updated successfully, but these errors were encountered:
Pretty sure this is my fault! We should be checking for
-1
fromindexOf
before callingsubstring
. Unlikely to be hit in production because no one should be using the default package! I found it while working on content for a presentation.I'll send a fix later this week or next if someone doesn't beat me to it.
The text was updated successfully, but these errors were encountered: