-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaElementHyperlinkDetector: Parser runs into NegativeArraySizeException in some cases #968
Comments
I can't reproduce the logged errors, however I can reproduce the not working selection. First commit I see this with is: 446877a Reverting this change at the commit above results in the selection (and e.g. Ctrl+Click) working again:
On top of current
A test can be added with:
@jarthana do you have time to look into this? |
Here is another example. ` import java.lang.StackWalker.Option; public class TestEcl {
}
|
Can confirm for Eclipse 2023-09 M1 I was able to create a code-example that will throw an error in the eclipse console when holding CTRL and hoverying over any element (Source lookup popup).
|
Can confirm for Version: 2023-09 M3 (4.29.0 M3) |
This problem may have been fixed by #1349 - The code segments @trancexpress calls out in earlier comments as being problematic have undergone change in that PR. I will roll the code segments in this ticket into regression tests to see what part of the problem may still remain, |
Hey,
CTRL+Leftclick to open a File/Method from Code will break in the whole file if specific generics + switch statements are added.
I include a Code that will no longer allow clicking on Methods/Filenames but NOT show an error in eclipse
In some other files I will get an exception (See video below)
at org.eclipse.jdt.internal.compiler.parser.Parser.consumeEnterVariable(Parser.java:3713) java.lang.NegativeArraySizeException: -1
I was not able to reproduce the error-message in this small example
on Version: 2023-03 (4.27.0) (+ Lombok / Windows 10)
Build id: 20230309-1520
Using var fixes the line again:
Code example that is working until TestDraft2 in Line 25 is enabled.
eclipseBug2.mp4
The text was updated successfully, but these errors were encountered: