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 51704 - Code-complete on <jsp:directive.attribute> throws StringIndexOutOfBoundsException
Summary: Code-complete on <jsp:directive.attribute> throws StringIndexOutOfBoundsExcep...
Status: CLOSED DUPLICATE of bug 51626
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 04:42 UTC by _ gtzabari
Modified: 2005-07-13 15:55 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 _ gtzabari 2004-11-22 04:42:35 UTC
dev build 200411181900
JDK 1.5

I try to code-complete on:

<jsp:directive.attribute name="background"
required="true"/>

where my cursor is located on the "r" in
"required". The following exception is thrown:

Annotation: Exception occurred in Request Processor
java.lang.StringIndexOutOfBoundsException: String
index out of range: -1
	at java.lang.String.substring(String.java:1768)
	at
org.netbeans.modules.web.core.syntax.CompletionItem$Attribute.getHelp(CompletionItem.java:461)
	at
org.netbeans.modules.web.core.syntax.JspCompletionJavaDoc$JspDocParsingThread.run(JspCompletionJavaDoc.java:140)
	at org.openide.util.Task.run(Task.java:189)
	at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
Comment 1 Marek Fukala 2004-11-22 08:54:31 UTC

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