Closed vlsi closed 7 months ago
Thanks for reporting this issue here! Our parser has an issue with parsing arrays annotated in valid but unexpected order. We're working on a fix in
There were a few similar issues reported previously; if you feel your issue above overlaps with either of those feel free to close this issue early; it'll be picked up in the above PR, and tracked in the other issues all the same.
While we much appreciate the bug report, I'm going to close this one as a duplicate. Hope you're watching those other issues above!
What version of OpenRewrite are you using?
org.openrewrite.rewrite.gradle.plugin:6.4.3
How are you running OpenRewrite?
Gradle plugin:
What is the smallest, simplest way to reproduce the problem?
Not sure yet. The issue reproduces with https://github.com/pgjdbc/pgjdbc/blob/9cf9f36a1d3a1edd9286721f9c0b9cfa9e8422e3/pgjdbc/src/main/java/org/postgresql/ssl/PKCS12KeyManager.java#L66, and the error location seems to point to
Principal @Nullable [] principals
parameter while its "begin index" somehow exceeds "end index"What did you see instead?
The code compiles, so it should parse.
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
Not sure yet