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 227680 - StackOverflowError at com.sun.tools.javac.tree.TreeCopier.copy
Summary: StackOverflowError at com.sun.tools.javac.tree.TreeCopier.copy
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-19 22:03 UTC by David Konecny
Modified: 2013-03-27 12:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 199738


Attachments
stacktrace (72.79 KB, text/plain)
2013-03-19 22:03 UTC, David Konecny
Details
java file (226.29 KB, text/plain)
2013-03-19 22:12 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2013-03-19 22:03:51 UTC
Build: NetBeans IDE Dev (Build 20130318-3a6c3502725e)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
dkonecny: just typing in editor




Stacktrace: 
java.lang.StackOverflowError
   at com.sun.tools.javac.tree.TreeCopier.copy(TreeCopier.java:58)
   at com.sun.tools.javac.api.JavacTrees$Copier.copy(JavacTrees.java:758)
   at com.sun.tools.javac.api.JavacTrees$Copier.copy(JavacTrees.java:749)
   at com.sun.tools.javac.tree.TreeCopier.visitBinary(TreeCopier.java:119)
   at com.sun.tools.javac.tree.TreeCopier.visitBinary(TreeCopier.java:42)
   at com.sun.tools.javac.tree.JCTree$JCBinary.accept(JCTree.java:1768)
Comment 1 David Konecny 2013-03-19 22:03:54 UTC
Created attachment 132804 [details]
stacktrace
Comment 2 David Konecny 2013-03-19 22:12:29 UTC
Created attachment 132805 [details]
java file

I was testing a regular expression matcher on a text which was too long. The string is correctly marked as too long in editor but before I noticed it I used code completion on line 3337 and result is this exception.
Comment 3 David Konecny 2013-03-19 22:31:19 UTC
Restarting IDE with project containing this type of user's error results into many exceptions being periodically thrown. P2 is correct priority.