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 166339 - wrong CC for @var tag to document mixed type of class variables
Summary: wrong CC for @var tag to document mixed type of class variables
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-06-01 13:43 UTC by rmatous
Modified: 2009-09-24 12:37 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 rmatous 2009-06-01 13:43:18 UTC
<?
interface If1 { public function testIf1(); }
interface If2 { public function testIf2(); }
class TestClass {
	/**
	 * @var If1|If2
	 */
	public $_testObject;
} $test = new TestClass(); $test->_testObject->| 
?>
Comment 1 rmatous 2009-06-01 13:46:27 UTC
works in 6.7, not in 6.8 => REGRESSION 

caused by:
http://hg.netbeans.org/web-main/rev/f7d4cd51aa63
Comment 2 rmatous 2009-06-01 13:49:41 UTC
Even this simpler case doesn't work:
<?
class I { public function test(); }
class TestBaseClass {
	/**
	 * @var I
	 */
	public $_testObject;
}
class TestClass extends TestBaseClass {}
$test = new TestClass(); 
$test->_testObject->
?>
Comment 3 rmatous 2009-06-01 13:51:41 UTC
Add unit test! Although regression no test failed
Comment 5 Quality Engineering 2009-09-24 12:37:43 UTC
Integrated into 'main-golden', will be available in build *200909230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9f7f341e4dbb
User: Radek Matous <rmatous@netbeans.org>
Log: #166339 wrong CC for @var tag to document mixed type of class variables