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 138324 - The "improper field access" hint may not work correctly with inherited hints
Summary: The "improper field access" hint may not work correctly with inherited hints
Status: RESOLVED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks: 150234
  Show dependency tree
 
Reported: 2008-06-26 10:25 UTC by Tomasz Slota
Modified: 2011-10-04 08:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2008-06-26 10:25:56 UTC
PHPIndex.getAllProperties() should be used instead of finding the fields directly.

This bug is based on code analysis, I don't have the steps to reproduce it in the IDE.
Comment 1 rmatous 2008-06-26 10:59:08 UTC
Steps how to reproduce:

<?php
    //must contain basecls with basefld field
    include("inc.php");

    class cls extends basecls {
        function fce() {
            $basefld="";//must exists variable with the same name
            echo $this->$basefld;//then warning isn't showed
        }
    }
?>

Should happen rarely, I would say. Maybe I should rather resign on finding the fields directly at all and thus simplify
the impl. Definitely P4 for now, I think
Comment 2 Filip Zamboj 2010-09-15 12:25:45 UTC
batch reassigning
Comment 3 Tomas Mysik 2011-06-08 14:56:51 UTC
Batch reassigning.
Comment 4 Ondrej Brejla 2011-10-04 08:59:25 UTC
There is no "Improper field access" hint in 7.1.