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.
nb1127+mobility1128 - typed "//#if HANZ" then SPACE+CTRL to invoke CC -when there is "No Suggestions" message press ENTER *exception appears
Created attachment 27356 [details] java.lang.AssertionError at org.netbeans.modules.editor.completion.CompletionImpl$Result.createRefreshResult(CompletionImpl.java:1372)
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
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
Reassigning to j2me.
has it been fixed or the fix requires something on mobility side?
ok, this is a bug that is also in bugster, work in progress...
fixed and commited to trunk
v
close old issues