Bug 345439 - Debug - Variables view - HashMap content, seeming keys collision
Summary: Debug - Variables view - HashMap content, seeming keys collision
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-05-11 11:10 EDT by Alessandro Leonardi CLA
Modified: 2011-05-24 11:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Leonardi CLA 2011-05-11 11:10:04 EDT
Build Identifier: M20100909-0800

Trying debugging a simple code as reported below, the variables view will shown a keys collision ( request and requestHeader ), but is only an apperent collision, all keys are correctly displayed

import java.util.HashMap;

class HashTest {
	static public void main(String args[]) {
		HashMap myhm1 = new HashMap();
		myhm1.put("request",new String("request"));
		myhm1.put("Request",new String("Request"));
		myhm1.put("RequestHeader",new String("RequestHeader"));
		System.out.println(myhm1.get("request"));
		System.out.println(myhm1.get("Request"));
		System.out.println(myhm1.get("RequestHeader"));
		return;
	}
}



Reproducible: Always

Steps to Reproduce:
1. produce a main class as describe abowe
2. debug it
Comment 1 Michael Rennie CLA 2011-05-19 11:27:02 EDT
(In reply to comment #0)
> Build Identifier: M20100909-0800
> 
> Trying debugging a simple code as reported below, the variables view will shown
> a keys collision ( request and requestHeader ), but is only an apperent
> collision, all keys are correctly displayed
> 

Not sure I understand what you mean here. If I debug the snippet, I see a map with three keys and the following output in the console:

request
Request
RequestHeader

What do you mean by "an apparent collision"?
Comment 2 Michael Rennie CLA 2011-05-24 11:30:38 EDT
Closing invalid