[Sablevm-developer] Class.getClassLoader() fixed
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-06-22 04:22:21
|
Etienne, I undid part of your change to Class.getClassLoader(). The isPrimitive() case is required as Class for primitive type do not have _svmt_type_info and cause segmentation fault when the pointer is unwrapped. A simple test case that was causing it: public class Test { public static void main(String[] args) { System.err.println(int.class.getClassLoader()); } } David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |