Fixed incorrect type comparison.

This commit is contained in:
Erwin Vervaet
2006-12-23 13:43:23 +00:00
parent 521c80131e
commit 6463fa9bf9

View File

@@ -202,7 +202,7 @@ public class TransitionExecutingStateExceptionHandler implements FlowExecutionEx
* @return the target state id or null if not found
*/
private TargetStateResolver findTargetStateResolver(Class exceptionType) {
while (exceptionType != null && exceptionType.getClass() != Object.class) {
while (exceptionType != null && exceptionType != Object.class) {
if (exceptionTargetStateMappings.containsKey(exceptionType)) {
return (TargetStateResolver)exceptionTargetStateMappings.get(exceptionType);
}