Re: Basic Security: ClassLoader
Monday, December 31, 2001 03:04 AM
I too found a mistake in first exercise "Your Class Loader": the method loadClassData is never entered on account that whatever class you want is loaded by findSystemClass.So you may write "java CLTester foo Tester"(instead of the correct " . Tester" ) and it works anyway.
It is not enough to remove the row "c=findSystemClass" because it is necessary for native classes.That row must be pasted (if c==null) before the row "c=defineClass".