409 |
* do not match up |
* do not match up |
410 |
* @since 1.2 |
* @since 1.2 |
411 |
*/ |
*/ |
412 |
protected final Class defineClass(String name, byte[] data, int offset, |
protected final synchronized Class defineClass(String name, byte[] data, |
413 |
int len, ProtectionDomain domain) |
int offset, int len, |
414 |
|
ProtectionDomain domain) |
415 |
throws ClassFormatError |
throws ClassFormatError |
416 |
{ |
{ |
417 |
if (domain == null) |
if (domain == null) |
493 |
* @return the found Class, or null if it is not found |
* @return the found Class, or null if it is not found |
494 |
* @since 1.1 |
* @since 1.1 |
495 |
*/ |
*/ |
496 |
protected final Class findLoadedClass(String name) |
protected final synchronized Class findLoadedClass(String name) |
497 |
{ |
{ |
498 |
// NOTE: If the VM is keeping its own cache, it may make sense to have |
// NOTE: If the VM is keeping its own cache, it may make sense to have |
499 |
// this method be native. |
// this method be native. |