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 159895 - java CC in JSP's doesn't work: ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Summary: java CC in JSP's doesn't work: ClassCastException: org.netbeans.modules.java....
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Marek Fukala
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-09 11:14 UTC by Jindrich Sedek
Modified: 2009-03-17 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 147333


Attachments
stacktrace (1.11 KB, text/plain)
2009-03-09 11:16 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2009-03-09 11:14:41 UTC
Build: NetBeans IDE Dev (Build Parsing_API-209-on-090308)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: SunOS, 5.11, x86

User Comments:
jsedek: Create new Web application
create new scriptlet in JSP page
invoke code completion in scriptlet at possition of "|" in next sample:

<% | %>

CCE is thrown



Stacktrace: 
org.netbeans.modules.parsing.spi.ParseException
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
        at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:96)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.query(GsfCompletionProvider.java:309)
        at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Jindrich Sedek 2009-03-09 11:16:23 UTC
Created attachment 77896 [details]
stacktrace
Comment 2 Marek Fukala 2009-03-09 11:59:30 UTC
fixed

changeset:   118785:09518aafed84
tag:         tip
user:        Marek Fukala <mfukala@netbeans.org>
date:        Mon Mar 09 11:58:25 2009 +0100
summary:     #159895 - java CC in JSP's doesn't work: ClassCastException:
org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Comment 3 Jindrich Sedek 2009-03-09 17:26:07 UTC
verified.
NetBeans IDE Dev (Build Parsing_API-211-on-090309)
Comment 4 Quality Engineering 2009-03-17 08:45:28 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/72341be9ddf8
User: Marek Fukala <mfukala@netbeans.org>
Log: #159895 - java CC in JSP's doesn't work: ClassCastException: org.netbeans.modules.java.source.parsing.JavacParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult