--- old/agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java 2015-10-30 19:14:40.704475298 +0100 +++ new/agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java 2015-10-30 19:14:40.600475294 +0100 @@ -268,8 +268,8 @@ VM vm = VM.getVM(); SystemDictionary sysDict = vm.getSystemDictionary(); InstanceKlass strKlass = sysDict.getStringKlass(); - // String has a field named 'value' of type 'char[]'. - stringValueField = (OopField) strKlass.findField("value", "[C"); + // String has a field named 'value' of type 'byte[]'. + stringValueField = (OopField) strKlass.findField("value", "[B"); } private long stringSize(Instance instance) {