Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349377 - StackOverflowError when generating Type Hierarchy of java.util.SortedSet<E>
Summary: StackOverflowError when generating Type Hierarchy of java.util.SortedSet<E>
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Satyam Kandula CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 17:21 EDT by Luiz Fernando Oliveira Corte Real CLA
Modified: 2020-03-05 16:42 EST (History)
3 users (show)

See Also:


Attachments
Stacktrace of the error (104.58 KB, text/plain)
2011-06-14 17:24 EDT, Luiz Fernando Oliveira Corte Real CLA
no flags Details
Stacktrace of the error in newer version (104.57 KB, text/plain)
2011-06-14 17:47 EDT, Luiz Fernando Oliveira Corte Real CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Fernando Oliveira Corte Real CLA 2011-06-14 17:21:48 EDT
Build Identifier: 20100917-0705

When trying to visualize the type hierarchy of the interface java.util.SortedSet<E> (or even java.util.NavigableSet<E>) in the "Type Hierarchy" view, a StackOverflowError occurs and I'm requested to exit the workbench.

Reproducible: Always

Steps to Reproduce:
1. Open "Type Hierarchy" view
2. Right-click, "Focus On..."
3. Select java.util.SortedSet<E> or java.util.NavigableSet<E>
Comment 1 Luiz Fernando Oliveira Corte Real CLA 2011-06-14 17:24:36 EDT
Created attachment 197983 [details]
Stacktrace of the error
Comment 2 Luiz Fernando Oliveira Corte Real CLA 2011-06-14 17:45:07 EDT
Tried again in build 20110301-1815. Worked for java.util.SortedSet<E>, but not for java.util.NavigableSet<E>.
Comment 3 Luiz Fernando Oliveira Corte Real CLA 2011-06-14 17:47:24 EDT
Created attachment 197985 [details]
Stacktrace of the error in newer version
Comment 4 Olivier Thomann CLA 2011-06-14 22:32:45 EDT
Satyam, please investigate.
Comment 5 Satyam Kandula CLA 2011-06-15 00:41:18 EDT
I am unable to reproduce. Which version of JRE classes are you looking at? This error could have been possible only if there is a cycle in the hierarchy.
Comment 6 Luiz Fernando Oliveira Corte Real CLA 2011-06-15 10:21:10 EDT
(In reply to comment #5)
> I am unable to reproduce. Which version of JRE classes are you looking at? This
> error could have been possible only if there is a cycle in the hierarchy.

Hi. I'm looking at the sources of the JRockit VM (build 1.6.0_05-b13). However, I could reproduce it in the Sun JVM sources, installed through apt-get in Ubuntu 10.04 (build 1.6.0_24-b07).
Comment 7 Satyam Kandula CLA 2011-06-16 06:05:09 EDT
(In reply to comment #6)
> Hi. I'm looking at the sources of the JRockit VM (build 1.6.0_05-b13). However,
> I could reproduce it in the Sun JVM sources, installed through apt-get in
> Ubuntu 10.04 (build 1.6.0_24-b07).
It is likely to run into this problem if there is a cycle even in the subtypes of NavigableSet in any dependent jar. Could you try to reproduce in any fresh workspace? I will try to get some fix to avoid these cases, but there is definitely something wrong in your dependent jar files, which you may want to get rid of.
Comment 8 Luiz Fernando Oliveira Corte Real CLA 2011-06-16 14:55:12 EDT
(In reply to comment #7)
> (In reply to comment #6)
> > Hi. I'm looking at the sources of the JRockit VM (build 1.6.0_05-b13). However,
> > I could reproduce it in the Sun JVM sources, installed through apt-get in
> > Ubuntu 10.04 (build 1.6.0_24-b07).
> It is likely to run into this problem if there is a cycle even in the subtypes
> of NavigableSet in any dependent jar. Could you try to reproduce in any fresh
> workspace? I will try to get some fix to avoid these cases, but there is
> definitely something wrong in your dependent jar files, which you may want to
> get rid of.

Yes, you were right. I could not reproduce it in a fresh workspace. I'll take a look at my build path, thanks.
Comment 9 Srikanth Sankaran CLA 2012-01-12 00:16:20 EST
Satyam, should this be closed as WORKSFORME ?
Comment 10 Satyam Kandula CLA 2012-01-12 01:39:07 EST
I think we could add some checks to report a problem rather than throwing an exception.
Comment 11 Eclipse Genie CLA 2020-03-05 16:42:01 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.