Uncaught checked exceptions in page constructor
-----------------------------------------------
Key: WICKET-1278
URL: https://issues.apache.org/jira/browse/WICKET-1278
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.3.0-final
Reporter: Dmitry Kandalov
Priority: Minor
DefaultPageFactory#newPage(final Class pageClass) uses Class#newInstance()
method which "propagates any exception thrown by the nullary constructor,
including a checked exception". This way Wicket doesn't catch checked
exceptions thrown from default Page constructor.
Constructor#newInstance() should be used as in other newPage(...) methods.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.