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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1-beta-2
    • Fix Version/s: 1.1-beta-3
    • Component/s: groovy-jdk
    • Labels:
      None
    • Environment:
      JDK 1.5

      Description

      sprintf('%2.4f',

      {3}

      )

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: