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 241169 - navigator logs IllegalArgumentException
Summary: navigator logs IllegalArgumentException
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-30 12:59 UTC by Alexander Simon
Modified: 2014-01-31 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-01-30 12:59:02 UTC
Steps to reproduce:
- create welcome sample
- put cursor on the first char in line:
  std::cout << i << ": " << argv[i] << std::endl;
- do hint refactoring (Assign Return Value)
- undo changes
See 3 exceptions in log:
java.lang.IllegalArgumentException: 
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.getText(FileBufferFile.java:88)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:1601)
	at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:157)
	at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase.getText(OffsetableBase.java:158)
	at org.netbeans.modules.cnd.qnavigator.navigator.StatementNode.<init>(StatementNode.java:370)
	at org.netbeans.modules.cnd.qnavigator.navigator.StatementNode.createIfNode(StatementNode.java:222)
	at org.netbeans.modules.cnd.qnavigator.navigator.StatementNode.createStatementNode(StatementNode.java:104)
	at org.netbeans.modules.cnd.qnavigator.navigator.BreadcrumbsElementImpl.getChildren(BreadcrumbsElementImpl.java:119)
	at org.netbeans.modules.cnd.qnavigator.navigator.BreadCrumbsFactory$Body.run(BreadCrumbsFactory.java:153)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 2 Quality Engineering 2014-01-31 02:39:12 UTC
Integrated into 'main-silver', will be available in build *201401310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4ce66b59485e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #241169 - navigator logs IllegalArgumentException
- reset snapshot in parser result