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 181400 - Incorrect overriding method generated
Summary: Incorrect overriding method generated
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-02 03:04 UTC by Tomas Mysik
Modified: 2010-03-16 16:47 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 Tomas Mysik 2010-03-02 03:04:51 UTC
Have a class A with method (notice "&" before the parameter):

protected function onManageInitialValues(&$initialValues) {}

Create class B that extends the class A and invoke in its body:

onMana|           // <- press ENTER

Method is generated but without "&" so it will likely cause quite hard to find bugs because parameter is passed via its value and not reference, that's also the reason for P2.

Thanks.

Product Version: NetBeans IDE Dev (Build 201002152000)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
System: Linux version 2.6.31-19-generic running on amd64; UTF-8; cs_CZ (nb)