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 - Class code completion shows variables from extended object incorrectly
Summary: Class code completion shows variables from extended object incorrectly
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: issues@php
URL: http://i49.tinypic.com/264pegp.jpg
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 15:41 UTC by Sc0tTyXL
Modified: 2010-11-16 23:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
abstract class (2.10 KB, application/octet-stream)
2010-06-18 14:07 UTC, Sc0tTyXL
Details
class extending the abstract class (8.10 KB, application/octet-stream)
2010-06-18 14:08 UTC, Sc0tTyXL
Details
abstract class (677 bytes, application/octet-stream)
2010-06-18 14:11 UTC, Sc0tTyXL
Details

Note You need to log in before you can comment on or make changes to this bug.
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