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
Bad selection for method call with nested instanceof argument #848
Comments
|
Seems like an exception is thrown while Also an exception is thrown during the selection itself. The method in the loop is: And the exception is: From what I can tell this is the line that causes the problem: After this change the selection works as expected. |
|
If I remove Maybe some earlier attempts at supporting pattern |
Selecting a method with a call as follows results in an AIOOBE: foo(x.y instanceof Object); This change adjusts SelectionParser.consumeInstanceOfExpression() to not try to parse a type reference if there are no generic identifiers. This prevents an AIOOBE in the method. Fixes: eclipse-jdt#848 Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
|
Just another manifestation of same issue from #853 : |
|
Moving this out of M1 |
|
I can review this candidate fix early next week. |
|
I checked, this is fixed with: #1028 |
See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=575150
Navigate to the call to
CompletionEngine.findMethods()inCompletionEngine.completionOnMessageSend(), try computing a call hierarchy or using F3, observe nothing meaningful is shown.The method is:
Reproducible also with:
Select the call to
foo()inmain()and use F3, see the status error text in the bottom left (the left part of the status line).The text was updated successfully, but these errors were encountered: