Bug 277576 - [content assist][5.0] coercible auto-box variables should be included in quick assist suggestions
Summary: [content assist][5.0] coercible auto-box variables should be included in quic...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-23 11:37 EDT by Hollis Waite CLA
Modified: 2009-05-25 05:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hollis Waite CLA 2009-05-23 11:37:14 EDT
Build ID: M20090211-1700

Steps To Reproduce:
class Test {
  void m1(Object o) {}
  void m2() {
    int i = 0;
    String s = "";

    m1(/* your var here */);
  }
}


More information:
Use Ctrl-Space and select the "m1(Object)" method.  IntelliSense will provide a list of appropriate variables.  In this case, the String 's' is included in the list but the int 'i' is not.  Since 'i' is a legal parameter, it ought to be included in the list.

I don't know if this warrants a separate bug but perhaps '0' should be included as a candidate for java.lang.Number args as well.