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

        Dmitry Kandalov created issue -
        Dmitry Kandalov made changes -
        Field Original Value New Value
        Attachment defaultpagefactory.patch [ 12373270 ]
        Igor Vaynberg made changes -
        Assignee Igor Vaynberg [ ivaynberg ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3.2 [ 12312942 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        27d 10h 45m 1 Igor Vaynberg 09/Feb/08 20:49

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development