Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345439

Summary: Debug - Variables view - HashMap content, seeming keys collision
Product: [Eclipse Project] JDT Reporter: Alessandro Leonardi <alessandro1leonardi>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: trivial    
Priority: P3 CC: Michael_Rennie, pwebster
Version: 3.7Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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