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.StringIndexOutOfBoundsException: String index out of range: -29
at java.lang.String.substring(String.java:1967)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitAnnotation(OracleJdkParserVisitor.kt:78)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitAnnotation(OracleJdkParserVisitor.kt:40)
at com.netflix.devinsight.shaded.com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:2327)
at com.netflix.devinsight.shaded.com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convert(OracleJdkParserVisitor.kt:1026)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convertAll(OracleJdkParserVisitor.kt:1058)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitMethod(OracleJdkParserVisitor.kt:617)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitMethod(OracleJdkParserVisitor.kt:40)
at com.netflix.devinsight.shaded.com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:800)
at com.netflix.devinsight.shaded.com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convert(OracleJdkParserVisitor.kt:1026)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convertPossibleMultiVariable(OracleJdkParserVisitor.kt:1082)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitClass(OracleJdkParserVisitor.kt:279)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitClass(OracleJdkParserVisitor.kt:40)
at com.netflix.devinsight.shaded.com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
at com.netflix.devinsight.shaded.com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convert(OracleJdkParserVisitor.kt:1026)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.convertAll(OracleJdkParserVisitor.kt:1058)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitCompilationUnit(OracleJdkParserVisitor.kt:311)
at com.netflix.rewrite.parse.OracleJdkParserVisitor.visitCompilationUnit(OracleJdkParserVisitor.kt:40)
at com.netflix.devinsight.shaded.com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:550)
at com.netflix.devinsight.shaded.com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
at com.netflix.rewrite.parse.OracleJdkParser.parse(OracleJdkParser.kt:112)
at com.netflix.rewrite.parse.AbstractParser.parse(Parser.kt:69)
Interestingly, it doesn't happen if I change the type of the annotated element from Object (or any other reference type) to a primitive type such as int.
The text was updated successfully, but these errors were encountered:
I've a specific usage of Java 8 type annotations (JSR 308) which makes the parser fail. To reproduce, parse these classes:
That's the stacktrace I'm getting:
Interestingly, it doesn't happen if I change the type of the annotated element from
Object
(or any other reference type) to a primitive type such asint
.The text was updated successfully, but these errors were encountered: