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 144325 - cc ignores the type of instance variables
Summary: cc ignores the type of instance variables
Status: VERIFIED DUPLICATE of bug 145692
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 01:32 UTC by onthefloorr
Modified: 2008-09-10 14:55 UTC (History)
0 users

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 onthefloorr 2008-08-19 01:32:47 UTC
I downloaded Netbeans nightly release and beta6.5 full version, and it testing on my  webproject.
Auto code completion didnt work it :(
See this example code :

<?php
 class Class2
        {
            /**
             *
             * @var Class1
             */
            private $t1;

            /**
             *
             * @return Class1
             */
            public function getT1()
            {
                return $this->t1;
            }

            /**
             *
             * @param Class1 $v 
             */
            public function setT1($v)
            {
                $this->t1 = $v;
            }

            public function __construct()
            {
                
            }
        }

        class Class1
        {
            /**
             *
             * @var Class2
             */
            private $t2;

            /**
             *
             * @return Class2
             */
            public function getT2()
            {
                return $this->t2;
            }

            
            public function __construct()
            {
                $this->t2 = new Class2();

                $this->t2-> //auto code completion dont work setT1($this);
                //with eclipse pdt this was working perfect
                $this->getT2()->getT1()->getT2()->getT1()->getT2()->setT1(new Class1());
                
                
                
            }
        }
?>
Comment 1 Tomasz Slota 2008-08-19 11:02:25 UTC
The problem is that currently we are ignoring the type of instance variables. See also issue 141652
Comment 2 Tomasz Slota 2008-09-10 13:50:38 UTC

*** This issue has been marked as a duplicate of 145692 ***
Comment 3 Mikhail Matveev 2008-09-10 14:55:46 UTC
Verified duplicate