[
https://issues.apache.org/jira/browse/GROOVY-10131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christopher Smith updated GROOVY-10131:
---------------------------------------
Description:
I'm getting a stack overflow in Eclipse on some Groovy code, and I can't figure
out which specifically is triggering it. The stack trace is
{code}
!ENTRY org.eclipse.core.jobs 4 2 2021-06-08 17:47:00.347!MESSAGE An internal
error occurred during: "Requesting Java AST from selection".!STACK
0java.lang.StackOverflowError at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.isUsingGenericsOrIsArrayUsingGenerics(StaticTypeCheckingSupport.java:1334)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1848)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
{code}
(with the last line repeating until it fails)
I had this with an update from a few days ago and the current nightly
({{org.codehaus.groovy_3.0.8.v202106072003-e2103}}).
was:
I'm getting a stack overflow in Eclipse on some Groovy code, and I can't figure
out which specifically is triggering it. The stack trace is
{code}
!ENTRY org.eclipse.core.jobs 4 2 2021-06-08 17:47:00.347!MESSAGE An internal
error occurred during: "Requesting Java AST from selection".!STACK
0java.lang.StackOverflowError at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.isUsingGenericsOrIsArrayUsingGenerics(StaticTypeCheckingSupport.java:1334)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1848)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
at
org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
{code}
(with the last line repeating until it fails)
I had this with an update from a few days ago and the current nightly.
> Stack overflow in STC when inspecting generics
> ----------------------------------------------
>
> Key: GROOVY-10131
> URL: https://issues.apache.org/jira/browse/GROOVY-10131
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 3.0.8
> Reporter: Christopher Smith
> Priority: Major
>
> I'm getting a stack overflow in Eclipse on some Groovy code, and I can't
> figure out which specifically is triggering it. The stack trace is
> {code}
> !ENTRY org.eclipse.core.jobs 4 2 2021-06-08 17:47:00.347!MESSAGE An internal
> error occurred during: "Requesting Java AST from selection".!STACK
> 0java.lang.StackOverflowError at
> org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.isUsingGenericsOrIsArrayUsingGenerics(StaticTypeCheckingSupport.java:1334)
> at
> org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1848)
> at
> org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
> at
> org.codehaus.groovy.transform.stc.StaticTypeCheckingSupport.extractGenericsConnections(StaticTypeCheckingSupport.java:1856)
> {code}
> (with the last line repeating until it fails)
> I had this with an update from a few days ago and the current nightly
> ({{org.codehaus.groovy_3.0.8.v202106072003-e2103}}).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)