Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1278

Uncaught checked exceptions in page constructor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-final
    • Fix Version/s: 1.3.2
    • Component/s: wicket
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              syl Dmitry Kandalov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: