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 262309 - StackOverflowError in ArithmeticUtilities
Summary: StackOverflowError in ArithmeticUtilities
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 12:56 UTC by Tomas Mysik
Modified: 2016-08-11 01:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208101


Attachments
stacktrace (97.05 KB, text/plain)
2016-06-02 12:56 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2016-06-02 12:56:24 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Linux

User Comments:
GUEST: ?

GUEST: Creating an all platforms native packager on Debian/Ubuntu without RPM tools.

tmysik: no idea, sorry. just editing java files (NB modules)

jag: Just typing

GUEST: Unsure.




Stacktrace: 
java.lang.StackOverflowError
   at com.sun.source.util.TreePath.<init>(TreePath.java:97)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:66)
   at com.sun.source.util.TreePath$1PathFinder.scan(TreePath.java:70)
   at com.sun.source.util.TreePath$1PathFinder.scan(TreePath.java:65)
   at com.sun.source.util.TreeScanner.visitMemberSelect(TreeScanner.java:346)
   at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1909)
Comment 1 Tomas Mysik 2016-06-02 12:56:26 UTC
Created attachment 159945 [details]
stacktrace
Comment 2 Svata Dedic 2016-07-28 08:14:44 UTC
Fixed in jet-main#c75904b316be
Comment 3 Svata Dedic 2016-07-28 08:16:17 UTC
The error happens if a variable decl initializer references the very same variable. Certainly an error and the source is not compilable, but may happen during development.
Comment 4 Quality Engineering 2016-08-11 01:56:48 UTC
Integrated into 'main-silver', will be available in build *201608110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c75904b316be
User: Svata Dedic <sdedic@netbeans.org>
Log: #262309: prevent stack overflow if the initializer references its own variable