Skip to content

Commit

Permalink
Merge pull request #13888 from tajila/mh2
Browse files Browse the repository at this point in the history
(0.29.1) Use the dot naming convention in exception stack traces
  • Loading branch information
pshipton authored Nov 9, 2021
2 parents cea999b + aeb6acd commit d9ff2ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions runtime/jcl/common/jclexception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@ getStackTraceIterator(J9VMThread * vmThread, void * voidUserData, UDATA bytecode
goto done;
}
} else {
/* Can't peek anon or hidden ramClasses */
string = mmfns->j9gc_createJavaLangStringWithUTFCache(vmThread, (J9UTF8 *)utfClassName);
/* Can't peek all classes. Ie. anon/hidden classes or cases where classloader is NULL */
UDATA flags = J9_STR_XLAT | J9_STR_INTERN;

if (J9ROMCLASS_IS_ANON_OR_HIDDEN(romClass)) {
flags |= J9_STR_ANON_CLASS_NAME;
}
string = mmfns->j9gc_createJavaLangString(vmThread, J9UTF8_DATA(utfClassName), J9UTF8_LENGTH(utfClassName), flags);
}
element = PEEK_OBJECT_IN_SPECIAL_FRAME(vmThread, 0);
J9VMJAVALANGSTACKTRACEELEMENT_SET_DECLARINGCLASS(vmThread, element, string);
Expand Down
1 change: 1 addition & 0 deletions runtime/oti/j9modifiers_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#define J9ROMCLASS_IS_INTERMEDIATE_DATA_A_CLASSFILE(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassIntermediateDataIsClassfile)
#define J9ROMCLASS_IS_UNSAFE(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassUnsafe)
#define J9ROMCLASS_IS_HIDDEN(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassHidden)
#define J9ROMCLASS_IS_ANON_OR_HIDDEN(romClass) _J9ROMCLASS_J9MODIFIER_IS_ANY_SET((romClass), J9AccClassAnonClass | J9AccClassHidden)
#define J9ROMCLASS_IS_OPTIONNESTMATE_SET(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassHiddenOptionNestmate)
#define J9ROMCLASS_IS_OPTIONSTRONG_SET(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassHiddenOptionStrong)
#define J9ROMCLASS_HAS_VERIFY_DATA(romClass) _J9ROMCLASS_J9MODIFIER_IS_SET((romClass), J9AccClassHasVerifyData)
Expand Down

0 comments on commit d9ff2ac

Please sign in to comment.