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 69480 - AssertionError at org.netbeans.modules.editor.completion.CompletionImpl$Result.createRefreshResult(CompletionImpl.java:1372)
Summary: AssertionError at org.netbeans.modules.editor.completion.CompletionImpl$Resul...
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Prazak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-28 17:02 UTC by Lukas Hasik
Modified: 2008-09-10 15:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.AssertionError at org.netbeans.modules.editor.completion.CompletionImpl$Result.createRefreshResult(CompletionImpl.java:1372) (6.12 KB, text/plain)
2005-11-28 17:04 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2005-11-28 17:02:46 UTC
nb1127+mobility1128

- typed "//#if HANZ" then SPACE+CTRL to invoke CC
-when there is "No Suggestions" message press ENTER

*exception appears
Comment 1 Lukas Hasik 2005-11-28 17:04:03 UTC
Created attachment 27356 [details]
java.lang.AssertionError at org.netbeans.modules.editor.completion.CompletionImpl$Result.createRefreshResult(CompletionImpl.java:1372)
Comment 2 Lukas Hasik 2005-11-30 10:50:57 UTC
increasing priority and cc'ing Jirka

It's easy to fall into this problem in j2me project. When user starts write a
preprocessor block and use an unexisting ability the the code completion changes
to "No suggestion" and the exception appears after enter to finish line.

It happens only with preprocessor code completion
Comment 3 Dusan Balek 2005-12-02 09:47:11 UTC
The problem is caused by StringIndexOutOfBoundsExceptions thrown from the
PPCompletionProvider while refreshing completion results. Code completion
infrastructure was modified to notify user in such cases.

Checking in src/org/netbeans/modules/editor/completion/CompletionImpl.java;
/cvs/editor/completion/src/org/netbeans/modules/editor/completion/CompletionImpl.java,v
 <--  CompletionImpl.java
new revision: 1.37; previous revision: 1.36
done
Comment 4 Dusan Balek 2005-12-02 09:48:46 UTC
Reassigning to j2me.
Comment 5 Martin Ryzl 2005-12-02 20:35:01 UTC
has it been fixed or the fix requires something on mobility side?
Comment 6 Jiri Prazak 2005-12-05 12:49:34 UTC
ok, this is a bug that is also in bugster, work in progress...
Comment 7 Jiri Prazak 2005-12-08 16:52:58 UTC
fixed and commited to trunk
Comment 8 Lukas Hasik 2007-02-16 10:39:08 UTC
v
Comment 9 Ivan Sidorkin 2008-09-10 15:58:19 UTC
close old issues