Doch, ist es.
Es kann auch wieder geholt werden mit dem Schluessel.
Dann spinnen wir die Sache mal weiter:
[CODE="java"]for (Attribute attribute : response.getBody()) {
String key = attribute.getName();
System.out.println("Key: " + key + "@" + System.identityHashCode(key) + " -> " + key.hashCode());
System.out.println("Attribute: " + System.identityHashCode(attribute));
System.out.println("Map size before insert: " + attributeMap.size());
attributeMap.put(key, attribute);
System.out.println("Map size after insert: " + attributeMap.size());
System.out.println("Attribute: " + System.identityHashCode(attributeMap.get(key)));
System.out.println();
System.out.println();
}
// Refetch
String refetchKey = "Packung";
System.out.println("Refetch-Key: " + refetchKey + "@" + System.identityHashCode(refetchKey) + " -> " + refetchKey.hashCode());
System.out.println("Attribute: " + System.identityHashCode(attributeMap.get(refetchKey)));
return attributeMap;[/CODE]
Wenn das jetzt auch geht, wird das Ding korrupt irgendwo zwischen deinem erzeugen und deinem auslesen.