Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-733

NullpointerException instead of MissingMethodException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-beta-10
    • None
    • None

    Description

      from the mailing list by Martin C. Martin:

      In the CVS head, if you do this:

      import groovy.swing.SwingBuilder

      swing = new SwingBuilder()
      swing.frame() {
      button(10, 'hello')
      }

      you'll get a NullPointerException, because the exception is in the
      closure. If you do this:

      import groovy.swing.SwingBuilder

      swing = new SwingBuilder()
      swing.frame(10, 'hello')

      You get a missing method exception, as it should be.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: