Hi All.
I've used the following for debug purposes in Java 1.5:
While trying to compile the same code in Java 6 I'm getting the following error:
Any ideas / suggestions are appreciated.
Thanks,
-Pavel
I've used the following for debug purposes in Java 1.5:
Code:
System.out.println(Thread.currentThread().getStackTrace()[2].toString());
While trying to compile the same code in Java 6 I'm getting the following error:
Code:
1. ERROR in IAutoUtils.java (at line 116)
System.out.println(Thread.currentThread().getStackTrace()[2].toString());
^^^^^^^^^^^^^
The method getStackTrace() is undefined for the type Thread
Any ideas / suggestions are appreciated.
Thanks,
-Pavel