Wicket
  1. Wicket
  2. WICKET-1278

Uncaught checked exceptions in page constructor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development