Hi,

I just implemented VMStackWalker for our VM and have some questions.

The reference implementation of 'getCallingClass()' and
'getCallingClassLoader()' just look at the third entry in the class
context. Would it not be better to return the first class that is not
assignable to the class in context[0] ? That way we could cope with
classes that first call some private or protected classes an then ends
up calling the stack walker. 

The next thing I would like to have is a method to get the calling
method name. This would be good for logging. 

For the security part: Is it enough to check if the class loader of
context[0] is the boot classloader?

Thanks
Ingo
-- 
Ingo Prötel                                          [EMAIL PROTECTED]
aicas GmbH                                        http://www.aicas.com
Haid-und-Neu-Str. 18                        phone   +49 721 663 968-32
76131 Karlsruhe                             fax     +49 721 663 968-93
Germany                                      




_______________________________________________
Classpath mailing list
Classpath@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to