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 174722 - ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javafx.code.JavafxClassSymbol
Summary: ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cas...
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Karol Harezlak
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 10:32 UTC by J Bachorik
Modified: 2009-11-18 02:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 160316


Attachments
stacktrace (1.25 KB, text/plain)
2009-10-16 10:33 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Bachorik 2009-10-16 10:32:59 UTC
Build: NetBeans Platform Dev (Build 200910150201)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.31-14-generic, amd64

User Comments:
yardus: insert this code:
package bpak;

import apak.Humpydumpy;

/**
 * @author jb198685
 */

class A{
    public function funci(){
    }
}


class B extends A{
    public override function funci(){
    }

}

Note that the apak.Humpydumpy must be unresolvable for this issue to appear.



Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$ClassSymbol cannot be cast to com.sun.tools.javafx.code.JavafxClassSymbol
        at org.netbeans.modules.javafx.editor.hints.HintsUtils.isClassUsed(HintsUtils.java:84)
        at org.netbeans.modules.javafx.editor.hints.MarkOverridenTaskFactory$2.run(MarkOverridenTaskFactory.java:178)
        at org.netbeans.modules.javafx.editor.hints.MarkOverridenTaskFactory$2.run(MarkOverridenTaskFactory.java:123)
        at org.netbeans.modules.javafx.source.parsing.JavaFXSourceCancelableTask.run(JavaFXSourceCancelableTask.java:103)
        at org.netbeans.modules.javafx.source.parsing.JavaFXSourceCancelableTask.run(JavaFXSourceCancelableTask.java:58)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:654)
Comment 1 J Bachorik 2009-10-16 10:33:03 UTC
Created attachment 89599 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-10-30 17:23:26 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160316
Comment 3 Karol Harezlak 2009-11-12 04:08:25 UTC
Can't reproduce it anymore. Please reopen when it is still reproducible.
Comment 4 Alexandr Scherbatiy 2009-11-18 02:41:24 UTC
Unable to reproduce in build Build 200911170201