publicclass Main { publicstaticvoid main(String args[]) throws Exception { Class<?> vmStack = Class.forName("dalvik.system.VMStack");
Method getAnnotatedThreadStackTrace =
vmStack.getDeclaredMethod("getAnnotatedThreadStackTrace", Thread.class);
Object[] annotatedStackTrace =
(Object[]) getAnnotatedThreadStackTrace.invoke(null, Thread.currentThread());
AnnotatedStackTraceElement annotatedElement =
(AnnotatedStackTraceElement) annotatedStackTrace[0]; // This used to fail an assertion that the AnnotatedStackTraceElement.class // is at least initializing (i.e. initializing, initialized or resolved-erroneous). // Note: We cannot use reflection for this test because getDeclaredMethod() would // initialize the class and hide the failure.
annotatedElement.getStackTraceElement();
System.out.println("passed");
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.