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 114332 - [Change parameters] Cannot enter more default values for new vararg
Summary: [Change parameters] Cannot enter more default values for new vararg
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 10:11 UTC by Jiri Prox
Modified: 2009-11-02 11:13 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 Jiri Prox 2007-08-31 10:11:01 UTC
Product Version: NetBeans IDE Dev (Build 070831) Java: 1.6.0_03-ea; Java HotSpot(TM) Client VM 1.6.0_03-ea-b01 System:
Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /home/jp159440/.netbeans/dev

Cannot enter more default vales separated by ',' when adding new vararg argument. The only first one is used.

Steps to reproduce:
1) have a class:
public class NewClass {    
    public void m() {        
    }    
    public void user() {
        m();
    }
}

2)  add new parameted to m() of type "int ... ", default value "1,2,3"
->
public class NewClass {
    
    public void m(int ... newparam) {
        
    }
    
    public void user() {
        m(1);
    }

}
Comment 1 Jan Becicka 2007-12-14 15:32:11 UTC
This scenario is really rare.
Comment 2 David Strupl 2009-03-31 15:55:37 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 3 Quality Engineering 2009-11-02 11:13:32 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX