All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jtransc.rt.test.JTranscStackTraceTest Maven / Gradle / Ivy

package jtransc.rt.test;

public class JTranscStackTraceTest {
	static public void main(String[] args) {
		test();
	}

	static public void test() {
		StackTraceElement[] items = Thread.currentThread().getStackTrace();
		System.out.println(items.length >= 3);
		System.out.println(items[1].getMethodName() != null); // .contains("test")
		System.out.println(items[2].getMethodName() != null); // .contains("main")
		//for (StackTraceElement i : items) System.out.println(i);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy