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 187667

Summary: Class code completion shows variables from extended object incorrectly
Product: php Reporter: Sc0tTyXL
Component: EditorAssignee: issues@php <issues>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows 7 x64   
URL: http://i49.tinypic.com/264pegp.jpg
Issue Type: DEFECT Exception Reporter:
Attachments: abstract class
class extending the abstract class
abstract class

Description Sc0tTyXL 2010-06-16 15:41:30 UTC
Product Version = NetBeans IDE 6.9 (Build 201006101454)
Operating System = Windows Vista version 6.1 running on x86
Java; VM; Vendor = 1.6.0_10
Runtime = Java HotSpot(TM) Client VM 11.0-b15

As you can see in the screenshot variables of the extended class 'aDTO' show up as variables from 'Course' and without type.

    /** 
     * Object database ID
     * @var Integer
     */
    protected $_id = 0;

    /**
     * Object name
     * @var String
     */
    protected $_name;

This was fine in 6.8

Also when using the extending class 'Course' the protected variables are shown

so when i do $course-> those variables show up as well
Comment 1 Tomas Mysik 2010-06-16 21:07:06 UTC
Could you attach a sample file, please? Thanks a lot.
Comment 2 Sc0tTyXL 2010-06-18 14:07:49 UTC
Created attachment 100211 [details]
abstract class
Comment 3 Sc0tTyXL 2010-06-18 14:08:15 UTC
Created attachment 100212 [details]
class extending the abstract class
Comment 4 Sc0tTyXL 2010-06-18 14:11:56 UTC
Created attachment 100213 [details]
abstract class
Comment 5 Filip Zamboj 2010-09-15 12:31:51 UTC
batch reassigning