Menu

#3 Incorrect error log in MenuUtil.createActionInstance

v0.10
accepted
nobody
None
2012-03-04
2012-03-03
No

When a problem occurs during instantiation, the log incorrectly reports that the given class is not a subclass of Action.

The instance must be generated first and then casted (two steps). Add comments on new code so developers are not tempted to reverse this fix.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB