Bug 431288 - [content assist] Changing autocomplete overloaded method results in incorrect argument boxes
Summary: [content assist] Changing autocomplete overloaded method results in incorrect...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 16:17 EDT by Jared Martin CLA
Modified: 2022-09-29 17:52 EDT (History)
1 user (show)

See Also:


Attachments
A screenshot of the box bug (8.73 KB, image/png)
2014-03-26 16:17 EDT, Jared Martin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Martin CLA 2014-03-26 16:17:40 EDT
Created attachment 241286 [details]
A screenshot of the box bug

If you autocomplete a method a second time, the boxes around argument times are wrong for overloaded methods.

Steps to reproduce: 
1. Start with the following class:

	public class AutocompleteTest {
		public static void main(String... args) {
			Object something = new Object();
			Object anotherThing = new Object();
			Object aThirdThing = new Object();
			
			// Here is where you should place your cursor to follow the following steps:
			
		}
		
		public static void foo(Object arg0, Object arg1) {
			
		}
		
		public static void foo(Object arg0, Object arg1, Object arg2) {
			
		}
	}

2. Press Ctrl+Space (autocomplete)
3. Choose the first signature - foo(Object arg0, Object arg1)
4. Make a choice for the first argument, e.g. "something"
5. Press comma to advance to the second argument
6. Press Ctrl+Space again
7. Switch to the other method signature
8. Finish adding the other arguments

As you can see, there will be two boxes around the arguments, not three.
Comment 1 Martin Mathew CLA 2014-03-27 03:46:25 EDT
The issue is reproducible in Build id: I20140318-0830. The annoying part is after step 8 in comment 0, if user press TAB key, then instead of the individual method parameter the second and third parameter is selected together.
Comment 2 Eclipse Genie CLA 2020-06-06 13:17:58 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2022-09-29 17:52:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.