Bug 550619 - StackOverflowError with transitive dependency
Summary: StackOverflowError with transitive dependency
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.13   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-30 17:46 EDT by Snjezana Peco CLA
Modified: 2023-08-14 15:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Snjezana Peco CLA 2019-08-30 17:46:09 EDT
Steps to reproduce:

- create a Java 9+ project with the following files:

a) module-info.java

module test {
	requires transitive java.xml;
}

b) Test.java
package test;
import java.ut| // call content assist here
public class Test {}

- you will get the following exception:

java.lang.StackOverflowError
	at org.eclipse.jdt.internal.core.PackageFragment.hashCode(PackageFragment.java:450)
	at org.eclipse.jdt.internal.core.JavaElement.hashCode(JavaElement.java:548)
	at org.eclipse.jdt.internal.core.JavaElement.hashCode(JavaElement.java:548)
	at java.base/java.util.HashMap.hash(HashMap.java:339)
	at java.base/java.util.HashMap.get(HashMap.java:552)
	at org.eclipse.jdt.internal.core.JavaModelCache.getInfo(JavaModelCache.java:158)
	at org.eclipse.jdt.internal.core.JavaModelManager.getInfo(JavaModelManager.java:2186)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:324)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:312)
	at org.eclipse.jdt.internal.core.AbstractModule.getModuleInfo(AbstractModule.java:83)
	at org.eclipse.jdt.internal.core.AbstractModule.getExportedPackages(AbstractModule.java:121)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findPackagesFromRequires(SearchableEnvironment.java:294)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findPackagesFromRequires(SearchableEnvironment.java:303)
	at org.eclipse.jdt.internal.core.SearchableEnvironment.findPackagesFromRequires(SearchableEnvironment.java:303)
...
Comment 1 Snjezana Peco CLA 2019-08-30 17:48:54 EDT
Original issue: https://github.com/redhat-developer/vscode-java/issues/881
Comment 2 Eclipse Genie CLA 2021-08-23 03:14:07 EDT
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.

If you have further information on the current state of the bug, please add it. 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.
Comment 3 Eclipse Genie CLA 2023-08-14 15:47:16 EDT
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.

If you have further information on the current state of the bug, please add it. 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.