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 113271 - AIOOBE during code completion selection
Summary: AIOOBE during code completion selection
Status: RESOLVED DUPLICATE of bug 113172
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 113261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-21 01:41 UTC by _ gsporar
Modified: 2007-08-21 03:11 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 _ gsporar 2007-08-21 01:41:18 UTC
Running the daily build from 2007-08-20 with JDK6u2 on Ubuntu 7.04.

1. Create a new Ruby project.

2. In the main.rb file that is generated, replace the puts with:

cl

3. With the cursor right after the 'l' of "cl" press Ctrl-Space to bring up code completion

4. The code completion dialog comes up.  Press the Down-Arrow key on the keyboard to move the cursor from class to
class_eval.  I get the exception below:

java.lang.ArrayIndexOutOfBoundsException: 64
	at org.netbeans.lib.lexer.LanguageOperation.embeddingPresence(LanguageOperation.java:200)
	at org.netbeans.lib.lexer.EmbeddingContainer.embeddedTokenList(EmbeddingContainer.java:85)
	at org.netbeans.lib.lexer.LexerUtilsConstants.embeddedTokenList(LexerUtilsConstants.java:246)
	at org.netbeans.api.lexer.TokenSequence.embeddedImpl(TokenSequence.java:290)
	at org.netbeans.api.lexer.TokenSequence.embedded(TokenSequence.java:284)
	at org.netbeans.modules.ruby.RDocFormatter.appendSequence(RDocFormatter.java:545)
	at org.netbeans.modules.ruby.RDocFormatter.getRubyHtml(RDocFormatter.java:486)
	at org.netbeans.modules.ruby.RDocFormatter.finishSection(RDocFormatter.java:394)
	at org.netbeans.modules.ruby.RDocFormatter.process(RDocFormatter.java:140)
	at org.netbeans.modules.ruby.RDocFormatter.appendLine(RDocFormatter.java:133)
	at org.netbeans.modules.ruby.CodeCompleter.document(CodeCompleter.java:2238)
	at org.netbeans.modules.retouche.editor.completion.GsfCompletionDoc.<init>(GsfCompletionDoc.java:82)
	at org.netbeans.modules.retouche.editor.completion.GsfCompletionDoc.create(GsfCompletionDoc.java:92)
	at
org.netbeans.modules.retouche.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveDocumentation(GsfCompletionProvider.java:427)
	at
org.netbeans.modules.retouche.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:365)
	at
org.netbeans.modules.retouche.editor.completion.GsfCompletionProvider$JavaCompletionQuery.run(GsfCompletionProvider.java:202)
	at org.netbeans.api.retouche.source.Source.runUserActionTask(Source.java:458)
	at
org.netbeans.modules.retouche.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:274)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:196)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)


This looks a lot like http://www.netbeans.org/issues/show_bug.cgi?id=113261
Comment 1 Torbjorn Norbye 2007-08-21 03:09:34 UTC
*** Issue 113261 has been marked as a duplicate of this issue. ***
Comment 2 Torbjorn Norbye 2007-08-21 03:11:59 UTC
Duplicate of issue 113172 which was fixed this afternoon

*** This issue has been marked as a duplicate of 113172 ***