This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231639 - [74cat] StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.getExtendsBound
Summary: [74cat] StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.getE...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 13:50 UTC by misterm
Modified: 2013-06-26 02:22 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191571


Attachments
stacktrace (108.97 KB, text/plain)
2013-06-21 13:50 UTC, misterm
Details
IDE log (226.16 KB, text/plain)
2013-06-21 13:55 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-06-21 13:50:14 UTC
Build: NetBeans IDE Dev (Build 20130620-58a2ab47a911)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
misterm: Extracting interface from class

Olamagato-wtf: I have changed class name from EnSet<E extends Enum<E>> to Enset2<E extends Enum<E>>, successfull (by refectoring).
Then I try extract interface with name EnSet from EnSet2<E extends Enum<E>>, with exception. Cancelled. Reporting.

GUEST: Refactoring: extract an interface from an existing class




Stacktrace: 
java.lang.StackOverflowError
   at com.sun.tools.javac.code.Type$WildcardType.getExtendsBound(Type.java:612)
   at com.sun.tools.javac.code.Type$WildcardType.getExtendsBound(Type.java:534)
   at org.netbeans.modules.refactoring.java.RefactoringUtils.findUsedGenericTypes(RefactoringUtils.java:732)
   at org.netbeans.modules.refactoring.java.RefactoringUtils.findUsedGenericTypes(RefactoringUtils.java:728)
   at org.netbeans.modules.refactoring.java.RefactoringUtils.findUsedGenericTypes(RefactoringUtils.java:719)
   at org.netbeans.modules.refactoring.java.RefactoringUtils.findUsedGenericTypes(RefactoringUtils.java:738)
Comment 1 misterm 2013-06-21 13:50:16 UTC
Created attachment 136147 [details]
stacktrace
Comment 2 misterm 2013-06-21 13:53:59 UTC
This makes such refactorings impossible, raising to P2
Comment 3 misterm 2013-06-21 13:55:03 UTC
Created attachment 136148 [details]
IDE log
Comment 4 misterm 2013-06-21 14:05:31 UTC
The signature for the class is: MyClass<D extends Comparable<? super D>>
Comment 5 Ralph Ruijs 2013-06-24 11:44:49 UTC
changeset   : c2957c4411f9
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Mon Jun 24 10:13:11 CEST 2013
summary     : #231639 - StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.getExtendsBound
Comment 6 Quality Engineering 2013-06-26 02:22:38 UTC
Integrated into 'main-golden', will be available in build *201306252301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c2957c4411f9
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #231639 - StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.getExtendsBound