mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
add classes and methods needed for GNU Classpath compatibility
Most of these methods are stubs which throw UnsupportedOperationExceptions for now.
This commit is contained in:
@ -53,4 +53,12 @@ public abstract class Enum<E extends Enum<E>> implements Comparable<E> {
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Class<E> getDeclaringClass() {
|
||||
Class c = getClass();
|
||||
while (c.getSuperclass() != Enum.class) {
|
||||
c = c.getSuperclass();
|
||||
}
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user