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 128769 - Usage of underscores at generated variables and methods names
Summary: Usage of underscores at generated variables and methods names
Status: REOPENED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 22:20 UTC by Martin Schovanek
Modified: 2008-03-26 16:22 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 Martin Schovanek 2008-02-28 22:20:21 UTC
[#080228, jdk1.5.0]

According to the Code Conventions for the Java Programming Language, see:
http://java.sun.com/docs/codeconv/

We should not use the underscores "_" for generated variables and methods names at Page Beans, eg:

_init(), button1_action(), ...
Comment 1 _ sandipchitale 2008-03-25 19:05:57 UTC
This decision was taken a long time ago. Underscore is sometimes used to indicate internal use only methods (at least
that was the rational used that time). This leaves the non-underscore namespace for the user.
Comment 2 Martin Schovanek 2008-03-26 12:56:17 UTC
Sorry, but I still believe that we should respect the conventions, mainly the conventions published by the Sun. We are
giving really wrong example to the users and community.
Comment 3 _ sandipchitale 2008-03-26 16:22:56 UTC
The _init() method is normally hidden inside an editor fold and as such not visible to the user. The comment block also
indicates the this is a managed method.

I think it is too late and too risky to fix this in 6.1.

I am reducing the priority to P4.