fixing issue with class generalization in MessageApi
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -85,7 +85,7 @@ public abstract class Event<Payload extends UmbrellaObject> {
|
||||
{ // get the highest superclass that is not object
|
||||
Class<?> parent = clazz.getSuperclass();
|
||||
|
||||
while (parent != null && parent != Object.class) {
|
||||
while (parent != null && parent != Object.class && parent != UmbrellaObject.class) {
|
||||
clazz = parent;
|
||||
parent = clazz.getSuperclass();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user