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

Uncaught checked exceptions in page constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0-final
    • 1.3.2
    • wicket
    • 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

        1. defaultpagefactory.patch
          4 kB
          Dmitry Kandalov

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: