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 167064 - ClassCast Exception cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Summary: ClassCast Exception cannot be cast to org.netbeans.modules.csl.spi.ParserResult
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-14 17:44 UTC by maxnitribitt
Modified: 2009-06-17 07:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Module project (1.17 MB, text/plain)
2009-06-14 17:46 UTC, maxnitribitt
Details
Output text (147.03 KB, text/plain)
2009-06-14 17:46 UTC, maxnitribitt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxnitribitt 2009-06-14 17:44:13 UTC
Created a Module to test CSL & parsingAPI (see attachment).
When opening a .MI file (New File -> other -> Empty Minifest File) I get a ClassCastException.

java.lang.ClassCastException: org.netbeans.modules.minifest.parser.MinifestParser$MinifestParserResult cannot be cast to
org.netbeans.modules.csl.spi.ParserResult

I've seen to similar FIXED Issues:
http://www.netbeans.org/issues/show_bug.cgi?id=159895
http://www.netbeans.org/issues/show_bug.cgi?id=157205

Maybe related?
Comment 1 maxnitribitt 2009-06-14 17:46:15 UTC
Created attachment 83559 [details]
Module project
Comment 2 maxnitribitt 2009-06-14 17:46:55 UTC
Created attachment 83560 [details]
Output text
Comment 3 Vitezslav Stejskal 2009-06-16 10:19:24 UTC
Well, is your MinifestParserResult a subclass of o.n.m.csl.spi.ParserResult? If you want to use CSL it has to be. 
Comment 4 mslama 2009-06-16 11:35:29 UTC
Your class extends directly from org.netbeans.modules.parsing.spi.Parser.Result not from o.n.m.csl.spi.ParserResult. As
Vita suggests you must fix this.
Comment 5 maxnitribitt 2009-06-17 07:17:31 UTC
thanks for the clarification! 
--Toni