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.
Almost all inaccuracy tests has 'error' status (it is not in e-mail). Exception: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.ConstructorDefinitionImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmMethod at org.openide.util.RequestProcessor.post(RequestProcessor.java:341) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory.post(CsmFileTaskFactory.java:334) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory.stateChangedImpl(CsmFileTaskFactory.java:242) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory.access$300(CsmFileTaskFactory.java:74) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$2.run(CsmFileTaskFactory.java:122) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123) Caused by: java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.ConstructorDefinitionImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmMethod at org.netbeans.modules.cnd.navigation.overrides.ComputeAnnotations.computeAnnotation(ComputeAnnotations.java:87) at org.netbeans.modules.cnd.navigation.overrides.ComputeAnnotations.computeAnnotations(ComputeAnnotations.java:72) at org.netbeans.modules.cnd.navigation.overrides.ComputeAnnotations.computeAnnotations(ComputeAnnotations.java:80) at org.netbeans.modules.cnd.navigation.overrides.ComputeAnnotations.computeAnnotations(ComputeAnnotations.java:80) at org.netbeans.modules.cnd.navigation.overrides.OverridesTaskFactory$PhaseRunnerImpl.addAnnotations(OverridesTaskFactory.java:155) at org.netbeans.modules.cnd.navigation.overrides.OverridesTaskFactory$PhaseRunnerImpl.run(OverridesTaskFactory.java:140) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:452) at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:468) ... 2 more
Same exception appears on this code (28/01 build from netbeans.org) class A { public: void b(); }; void A::b() { } void foo() { A aa; } int main() { return 0; }
fixed: http://hg.netbeans.org/cnd-main/rev/96b67f983138
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/96b67f983138 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fix + test for #179981 ClassCastException
*** Bug 193133 has been marked as a duplicate of this bug. ***