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 257704 - StackoverflowError when opening Java file
Summary: StackoverflowError when opening Java file
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 21:18 UTC by _ gtzabari
Modified: 2016-03-22 02:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dump file (84.84 KB, application/octet-stream)
2016-01-26 21:18 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-01-26 21:18:45 UTC
Created attachment 158237 [details]
Dump file

Product Version: NetBeans IDE Dev (Build 201601210002)
Java: 1.8.0_71; Java HotSpot(TM) 64-Bit Server VM 25.71-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_71-b15
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev

Opening a Java file triggers a StackoverflowError 100% of the time. The exception message is:

Annotation: An error occurred during parsing of 'C:\Users\Gili\Documents\TaxSimulator\src\main\java\org\bitbucket\cowwoc\revolution\operators\differentialevolution\PopulationOperator.java'. Please report a bug against java/source and attach dump file 'C:\Users\Gili\AppData\Roaming\NetBeans\dev\var\log\PopulationOperator_8.dump'.
An error occurred during parsing of 'C:\Users\Gili\Documents\TaxSimulator\src\main\java\org\bitbucket\cowwoc\revolution\operators\differentialevolution\PopulationOperator.java'. Please report a bug against java/source and attach dump file 'C:\Users\Gili\AppData\Roaming\NetBeans\dev\var\log\PopulationOperator_8.dump'.
[snip]
An error occurred during parsing of 'C:\Users\Gili\Documents\TaxSimulator\src\main\java\org\bitbucket\cowwoc\revolution\operators\differentialevolution\PopulationOperator.java'. Please report a bug against java/source and attach dump file 'C:\Users\Gili\AppData\Roaming\NetBeans\dev\var\log\PopulationOperator_8.dump'.

NOTE: Exception Reporter does not work for this bug. It fails due to some sort of internal error.
Comment 1 _ gtzabari 2016-01-26 21:28:58 UTC
Increasing priority, as the entire IDE hangs (and has to be killed) if the file is modified and saved.

Please fix two separate bugs here:

1. The IDE should not hang if this exception is thrown.
2. The exception should not get thrown.
Comment 2 _ gtzabari 2016-01-27 10:57:24 UTC
This is caused by the fact that the class inherits (implements) from itself. I believe it is actually caused by a bug in the underlying JDK compiler but I am having a hard time producing a minimal testcase.
Comment 3 Svata Dedic 2016-01-29 15:30:43 UTC
compiler issue.
Comment 5 Quality Engineering 2016-03-22 02:45:58 UTC
Integrated into 'main-silver', will be available in build *201603220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b9c7dcbcefd8
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #257704 - StackoverflowError when opening Java file - fixed.