Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366358 - Error message is not very helpful in case of name clashes
Summary: Error message is not very helpful in case of name clashes
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT Core Triaged CLA
QA Contact: Ayushman Jain CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 03:25 EST by Sebastian Zarnekow CLA
Modified: 2020-03-12 15:33 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-12-12 03:25:25 EST
Just stumbled accross his one:

Two classes with the same simple name ('String' - it was created for testing purposes) were present and I accidently used the wrong one. Therefore, I got a compiler error that told me something along this line 

'The method doStuff(String) in the type MyClass is not applicable for the arguments (String)'

It would be more helpful if the qualified names were used iff the simple names are equal.
Comment 1 Sebastian Zarnekow CLA 2011-12-12 03:25:55 EST
package sample;

public class MyClass {

	void doStuff(String s) {}
	
	void doStuff() {
		doStuff("");
	}
	
}

===

package sample;

public class String {

}
Comment 2 Ayushman Jain CLA 2011-12-12 08:33:42 EST
Will consider, time permitting.
Comment 3 Eclipse Genie CLA 2020-03-12 15:33:09 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.