Variable Navigation throwing NPE and support for lambda#715
Merged
SougandhS merged 1 commit intoeclipse-jdt:masterfrom Jul 7, 2025
Merged
Conversation
SougandhS
requested changes
Jun 9, 2025
7ad4d31 to
af0ddda
Compare
af0ddda to
530252e
Compare
Member
530252e to
535604a
Compare
Contributor
Author
SougandhS
requested changes
Jun 10, 2025
Member
|
|
535604a to
d5d06b3
Compare
SougandhS
reviewed
Jun 10, 2025
d5d06b3 to
ddc29c4
Compare
SougandhS
reviewed
Jun 10, 2025
ddc29c4 to
7dca8c4
Compare
7dca8c4 to
51cbfa4
Compare
SougandhS
requested changes
Jun 26, 2025
99259bd to
753f596
Compare
753f596 to
3b8032a
Compare
SougandhS
requested changes
Jun 28, 2025
Member
SougandhS
left a comment
There was a problem hiding this comment.
getting BadLocation exception in few scenarios..
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.ListLineTracker.getLineInformation(ListLineTracker.java:178)
at org.eclipse.jface.text.AbstractLineTracker.getLineInformation(AbstractLineTracker.java:228)
at org.eclipse.jface.text.AbstractDocument.getLineInformation(AbstractDocument.java:873)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.getLineInformation(SynchronizableDocument.java:385)
at org.eclipse.jdt.internal.debug.ui.actions.NavigateToVarDeclAction.highlightLine(NavigateToVarDeclAction.java:275)
at org.eclipse.jdt.internal.debug.ui.actions.NavigateToVarDeclAction$1.visit(NavigateToVarDeclAction.java:189)
at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:231)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3383)
at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:253)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3383)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:128)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3360)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:676)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3383)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:497)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3383)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:497)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:3383)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:257)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
at org.eclipse.jdt.internal.debug.ui.actions.NavigateToVarDeclAction.run(NavigateToVarDeclAction.java:141)
at org.eclipse.jdt.internal.debug.ui.actions.ObjectActionDelegate.runWithEvent(ObjectActionDelegate.java:102)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:581)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:415)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4660)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1657)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1680)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1665)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1394)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4427)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4003)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:678)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:583)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:185)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:627)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
at org.eclipse.equinox.launcher.Main.main(Main.java:1403)
Member
Put an entry lambda breakpoint in any stream operation and check the operation with below stackframes test.mp4 |
52195f4 to
e74176c
Compare
SougandhS
requested changes
Jul 5, 2025
Member
SougandhS
left a comment
There was a problem hiding this comment.
Now it works in every scenarios. Thanks!
Please do the minor review changes I suggested then we can merge
SougandhS
reviewed
Jul 5, 2025
e74176c to
69078ea
Compare
Variable Navigation throwing NPE and support for variable navigation in lambda for non-java projects Fix: eclipse-jdt#712
69078ea to
509ffc0
Compare
noopur2507
pushed a commit
that referenced
this pull request
Jul 21, 2025
Variable Navigation throwing NPE and support for variable navigation in lambda for non-java projects Fix: #712
noopur2507
added a commit
that referenced
this pull request
Jul 21, 2025
This reverts commit d33c440.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Variable Navigation throwing NPE and support for variable navigation in lambda for non-java projects
Fix: #712
What it does
How to test
Author checklist