Menu

#7 Misleading javadoc comment

open
nobody
Core (6)
5
2003-02-28
2003-02-28
No

I'm just starting out with Maverick, using 2.1.2 that I just downloaded. For my controller, inheriting from ThrowawayBean2, I deduced from looking at the source that I should put my own logic in the perform() method rather than the go() method. Unfortunately, I *had* to go look at the source to discover that, as the generated javadocs for *both* methods says "This is the method you should override to implement application logic." so I wasn't sure which I should be using...

This appears to be because the javadoc comment on ThrowawayBean2.go() is empty, so it inherits the text from Throwaway2. Perhaps a comment should be added there, to clarify which one should be overridden by users' controllers?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB