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 199793 - Hint "Create method" malfunctioning when using enum as parameter
Summary: Hint "Create method" malfunctioning when using enum as parameter
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on: 166139
Blocks:
  Show dependency tree
 
Reported: 2011-06-30 18:11 UTC by ecerichter
Modified: 2011-07-02 14:07 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 ecerichter 2011-06-30 18:11:00 UTC
I've the following piece of code:

  public void relatorioNotaFiscal(FiltroNfVO model, FORMAT format, Relatorio relatorio, final AsyncCallback<PrintReportVO> async) {
    try {
      getRelatorioService().getRelatorioNotaFiscal(model, format, relatorio, async);
    } finally {
      executeSessionService();
    }
  }

Where FORMAT is a public enum FORMAT {...}

Editor corretly warn that I don't have "getRelatorioNotaFiscal(..." in interface RelatorioServiceAsync.

I hit "Alt+Enter" to get "Create method..." and then I confirm method creation. NetBeans create method as:

  public void getRelatorioNotaFiscal(FiltroNfVO model, FORMAT fORMAT, Relatorio format, AsyncCallback<PrintReportVO> relatorio);


expected result is:

  public void getRelatorioNotaFiscal(FiltroNfVO model, FORMAT format, Relatorio relatorio, AsyncCallback<PrintReportVO> asyncCallback);


Reproducible always, when at least one of the parameters is an Enum.

Regards,

Edson.
Comment 1 Jan Lahoda 2011-07-01 14:42:13 UTC
Fixed for NetBeans 7.1:
http://hg.netbeans.org/jet-main/rev/6e09c9a1c71d
Comment 2 Quality Engineering 2011-07-02 14:07:50 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/6e09c9a1c71d
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #199793: correcting guessed name for variables of enum type and for guessed names that start with several capital letters.