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

When calling printf leads to exceptions in the parsing process of the format, the thrown exception is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-3
    • groovy-jdk
    • None
    • JDK 1.5

    Description

      sprintf('%2.4f',

      {3}

      )

      should lead to an IllegalFormatConversionException. Instead an InvocationTargetException is thrown.

      Attachments

        Activity

          People

            jbaumann Joachim Baumann
            jbaumann Joachim Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: