Skip to content

Commit 23adb58

Browse files
committed
fix incorrect bundle analysis in BreakpointInterceptor.extractBundleInfo
1 parent b0cdc3e commit 23adb58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

substratevm/src/com.oracle.svm.agent/src/com/oracle/svm/agent/BreakpointInterceptor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,11 @@ private static List<Pair<String, String>> extractBundleInfo(JNIEnvironment jni,
604604
return null;
605605
}
606606
String localeTag = readLocaleTag(jni, locale);
607-
JNIObjectHandle clazz = callObjectMethod(jni, result, agent.handles().javaLangObjectGetClass);
607+
if (localeTag.equals("und")) {
608+
/*- Root locale is serialized into "und" */
609+
localeTag = "";
610+
}
611+
JNIObjectHandle clazz = callObjectMethod(jni, curr, agent.handles().javaLangObjectGetClass);
608612
if (!clearException(jni)) {
609613
JNIObjectHandle classNameHandle = callObjectMethod(jni, clazz, agent.handles().javaLangClassGetName);
610614
if (!clearException(jni)) {

0 commit comments

Comments
 (0)