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 93022 - SIOOBE when using Smart CC
Summary: SIOOBE when using Smart CC
Status: VERIFIED DUPLICATE of bug 97801
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-01-23 13:20 UTC by Jiri Prox
Modified: 2007-06-04 10:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (1.45 KB, text/plain)
2007-01-23 13:22 UTC, Jiri Prox
Details
test file (9.25 KB, text/plain)
2007-01-23 13:23 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-01-23 13:20:54 UTC
NetBeans IDE Dev (Build 070123)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

SIOOBE sometimes occurres when using smart CC to complete code behind new
keyword. The scenario is not reliably reproducible, just happened to me several
times (with different source files) but it worked ok when trying to reproduce.

Steps to reproduce:
1) open attached file
2) goto line 179
3) call smart CC and select HashMap
->ava.lang.StringIndexOutOfBoundsException: String index out of range: 9450
	at java.lang.String.substring(String.java:1765)
	at org.netbeans.modules.java.source.save.CasualDiff.diffList(CasualDiff.java:1745)
	at
org.netbeans.modules.java.source.save.CasualDiff.diffTopLevel(CasualDiff.java:217)
Comment 1 Jiri Prox 2007-01-23 13:22:16 UTC
Created attachment 37594 [details]
full stacktrace
Comment 2 Jiri Prox 2007-01-23 13:23:49 UTC
Created attachment 37595 [details]
test file
Comment 3 Max Sauer 2007-03-07 12:32:20 UTC
It happens to me also, occassionally.
---
NetBeans IDE Dev (Build 070307)
1.6.0_01; Java HotSpot(TM) Server VM 1.6.0_01-b04
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 4 Pavel Flaska 2007-03-30 13:59:22 UTC
I think it is again the duplicate, even though the stacktrace is little bit
different.

*** This issue has been marked as a duplicate of 97801 ***
Comment 5 Jiri Prox 2007-06-04 10:14:42 UTC
v.