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 215117

Summary: StackOverflowError when compiling tests on Windows
Product: java Reporter: Jiri Skrivanek <jskrivanek>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: VERIFIED FIXED    
Severity: normal Keywords: JDK_SPECIFIC
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Output log.

Description Jiri Skrivanek 2012-07-03 10:28:23 UTC
Created attachment 121692 [details]
Output log.

It is not possible to compile refactoring.java tests with JDK6u33 on Windows. With JDK7 it works. To reproduce:

ant -f refactoring.java clean test-build

you get:

 [nb-javac] The system is out of resources.
 [nb-javac] Consult the following stack trace for details.
 [nb-javac] java.lang.StackOverflowError
 [nb-javac] 	at com.sun.tools.javac.comp.AttrContext.dup(AttrContext.java:72)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1140)
 [nb-javac] 	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1210)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:1799)
 [nb-javac] 	at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1522)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:377)
 [nb-javac] 	at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1241)
 [nb-javac] 	at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1210)

Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) Client VM (build 20.8-b03, mixed mode)
Comment 1 Ralph Ruijs 2012-07-03 12:25:59 UTC
Jirka, I'm not able to reproduce on:

Java: 1.6.0_33; Java HotSpot(TM) 64-Bit Server VM 20.8-b03
System: Windows 7 version 6.1 running on amd64; Cp1250; cs_CZ (nb)

Could it be specific to your setup?
Comment 2 Jiri Skrivanek 2012-07-03 13:11:18 UTC
I reinstalled JDK6u33 and it started to work. Now I have 64bit, previously I had 32bit java.
Comment 3 Ralph Ruijs 2012-07-03 14:31:59 UTC
Thanks. It is a 32bit specific problem, caused by a very long method chain in  IntroduceLocalExtensionTest.
Comment 4 Ralph Ruijs 2012-11-08 10:22:46 UTC
Changeset: 933a28c4aa4f
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2012-11-08 11:18
Comment 5 Quality Engineering 2012-11-09 02:51:02 UTC
Integrated into 'main-golden', will be available in build *201211090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/933a28c4aa4f
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #215117 - StackOverflowError when compiling tests on Windows