src/java.management/share/classes/sun/management/StackTraceElementCompositeData.java
--- a/src/java.management/share/classes/sun/management/StackTraceElementCompositeData.java Tue Oct 16 11:24:41 2018 -0700
+++ b/src/java.management/share/classes/sun/management/StackTraceElementCompositeData.java Tue Oct 16 11:47:33 2018 -0700
@@ -78,14 +78,16 @@
// CONTENTS OF THIS ARRAY MUST BE SYNCHRONIZED WITH
// STACK_TRACE_ELEMENT_ATTRIBUTES!
final Object[] stackTraceElementItemValues = {
- ste.getClassLoaderName(),
- ste.getModuleName(),
- ste.getModuleVersion(),
+ // JDK 5 attributes
ste.getClassName(),
ste.getMethodName(),
ste.getFileName(),
ste.getLineNumber(),
ste.isNativeMethod(),
+ // JDK 9 attributes
+ ste.getClassLoaderName(),
+ ste.getModuleName(),
+ ste.getModuleVersion(),
};
try {
return new CompositeDataSupport(STACK_TRACE_ELEMENT_COMPOSITE_TYPE,