eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Stackoverflow in CoreASTProvider

Open
#1,977 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
59
Forks
127
Avg merge
23h 30m
Merged PRs (30d)
35

Description

This is likely because I had a breakpoint set somewhere. Even still, it would seem like there should be some checks on this recursive loop somewhere, and a better or more checked exception should somehow be thrown here.

!ENTRY org.eclipse.core.jobs 4 2 2024-02-21 11:54:17.989
!MESSAGE An internal error occurred during: "Requesting Java AST from selection".
!STACK 0
java.lang.StackOverflowError
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:132)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)
at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:189)

Contributor guide

Open the contributing guide

Research direction

Read CoreASTProvider.java, especially getAST at lines 132 and 189, and inspect the "Requesting Java AST from selection" job associated with the stack trace. Trace why getAST re-enters recursively and define done as preventing the unbounded recursion while reporting an appropriate exception; the payload names no test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.