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

BUG! exception in phase 'conversion' in source unit with NumberFormatException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-beta-3
    • 2.0.6
    • None
    • None

    Description

      def upperLong = 0
      new UUID(upperLong, 0xC000000000000000L)
      

      The code above fails with

      BUG! exception in phase 'conversion' in source unit 'Script1.groovy' For input string: "C000000000000000"
      Caused by: java.lang.NumberFormatException: For input string: "C000000000000000"
      

      I put the above code in Java after facing this issue and it worked fine.

      If I reduce the size to "0xC0000000000L", it works fine.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            roshandawrani Roshan Dawrani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: