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 155158

Summary: Generated getters and setters name should change only the first letter of the field name
Product: php Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: VERIFIED FIXED    
Severity: blocker CC: sustaining
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Pisl 2008-12-10 16:30:43 UTC
Based on a user feedback:
http://blogs.sun.com/netbeansphp/entry/generating_getters_and_setters_improved#comment-1228897146000

private $myVar;

I would expect the name of the getter/setter to be:

public getMyVar();
public setMyVar();

Currently it seems to only do getMyvar and setMyvar
Comment 1 Petr Pisl 2008-12-12 13:51:58 UTC
Should be simple fix.
Comment 2 Petr Pisl 2008-12-12 14:49:17 UTC
Fixed in the trunk. It can be integrated in the next patch for NB 6.5
Comment 3 Quality Engineering 2008-12-13 17:00:20 UTC
Integrated into 'main-golden', will be available in build *200812131401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6b84d3901b48
User: Petr Pisl <ppisl@netbeans.org>
Log: #155158 - Generated getters and setters name should change only the first letter of the field name
Comment 4 Mikhail Matveev 2008-12-23 17:51:10 UTC
Marking as fixed (it seems that Petr barely missed doing that).
Comment 5 Mikhail Matveev 2008-12-23 17:51:35 UTC
Verified
Comment 6 jinb 2009-01-08 14:16:23 UTC
fix backported into release65_fixes branch
http://hg.netbeans.org/release65_fixes/rev/87c045baf05e
Comment 7 Victoria Zhukovskaya 2009-01-21 13:31:38 UTC
verified 65fixes2