Skip to content

Commit b955e01

Browse files
committed
Fixed a bad class reference in the exception message.
1 parent 211e688 commit b955e01

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

release-notes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Version 1.0.2
55
* Added a DebugHudState.removeDebugValue() for removing previously created debug values
66
from the HUD.
77
* Fixed the DebugHudState to clear the background of the "screen" container regardless
8-
of style settings.
8+
of style settings.
9+
* Fixed a bug where the wrong class was being reported in the exception message for
10+
adding event bus listeners.
911

1012
Version 1.0.1
1113
--------------

src/main/java/com/simsilica/event/EventBus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ protected Method findMethod( Class c, EventType type ) throws NoSuchMethodExcept
215215
// That's ok, we handle the miss later
216216
}
217217

218-
throw new NoSuchMethodException(type.getName() + "." + name1 + "(" + type.getEventClass().getName() + ")"
219-
+ " or " + type.getName() + "." + name2 + "(" + type.getEventClass().getName() + ")");
218+
throw new NoSuchMethodException(c.getName() + "." + name1 + "(" + type.getEventClass().getName() + ")"
219+
+ " or " + c.getName() + "." + name2 + "(" + type.getEventClass().getName() + ")");
220220
}
221221

222222
/**

0 commit comments

Comments
 (0)