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 192413 - ClassCastException: org.netbeans.modules.php.editor.model.impl.InterfaceScopeImpl cannot be cast to org.netbeans.modules.php.editor.model.ClassScope
Summary: ClassCastException: org.netbeans.modules.php.editor.model.impl.InterfaceScope...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 15:15 UTC by davide_c
Modified: 2010-12-08 08:05 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173938


Attachments
stacktrace (5.74 KB, text/plain)
2010-11-24 15:15 UTC, davide_c
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davide_c 2010-11-24 15:15:21 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
nikpet: When i place my cursor inside Zend view's $this->result->..... , and it doesn't stop poping up until i move my cursor any where else.

nikpet: Switched to Zend view files with "<?php
echo $this->result->result;" in it.

GUEST: Editing view script in Zend Framework application

nikpet: Working inside Zend view file

nikpet: When i put my cursor in a line that has a $this->...->..... (in a Zend view)

nikpet: Editing Zend view file

nikpet: Switching from tab to tab (files)




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.php.editor.model.impl.InterfaceScopeImpl cannot be cast to org.netbeans.modules.php.editor.model.ClassScope
   at org.netbeans.modules.php.editor.model.impl.FieldElementImpl.getTypes(FieldElementImpl.java:186)
   at org.netbeans.modules.php.editor.model.impl.VariableNameImpl.getFieldTypes(VariableNameImpl.java:448)
   at org.netbeans.modules.php.editor.model.impl.VariousUtils.getType(VariousUtils.java:471)
   at org.netbeans.modules.php.editor.model.ModelUtils.resolveType(ModelUtils.java:188)
   at org.netbeans.modules.php.editor.verification.IntroduceHint$IntroduceFixVisitor.visit(IntroduceHint.java:188)
   at org.netbeans.modules.php.editor.parser.astnodes.MethodInvocation.accept(MethodInvocation.java:73)
Comment 1 davide_c 2010-11-24 15:15:25 UTC
Created attachment 103292 [details]
stacktrace
Comment 2 Petr Pisl 2010-12-06 17:25:50 UTC
Should be fixed now.
Comment 3 nikpet 2010-12-08 08:05:32 UTC
Thank you very much this bug was stopping my work.