-
Methods in java.lang that throw ClassFormatError
| Modifier and Type |
Method |
Description |
protected Class<?> |
ClassLoader.defineClass(byte[] classRep,
int offset,
int length) |
Deprecated.
|
protected Class<?> |
ClassLoader.defineClass(String className,
byte[] classRep,
int offset,
int length) |
Constructs a new class from an array of bytes containing a class
definition in class file format.
|
protected Class<?> |
ClassLoader.defineClass(String className,
byte[] classRep,
int offset,
int length,
ProtectionDomain protectionDomain) |
Constructs a new class from an array of bytes containing a class
definition in class file format and assigns the specified protection
domain to the new class.
|
protected Class<?> |
ClassLoader.defineClass(String name,
ByteBuffer b,
ProtectionDomain protectionDomain) |
Defines a new class with the specified name, byte code from the byte
buffer and the optional protection domain.
|
-
ClassLoader.defineClass(String, byte[], int, int)instead.