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

ClassGenration for numeric literal types other than Double and Integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • class generator
    • None
    • All

    Description

      ClassGenerator does not correctly generate byte code for numeric constants other than Integer and Double. For example, if a number is too large to fit in an Integer, a Long is created by ASTBuilder. However, ClassGenerator assumes it is an Integer, incorrectly generating byte code which will fail at runtime. An error should be produced at compile time.

      Attachments

        Issue Links

          Activity

            People

              bl7385 Brian Larson
              bl7385 Brian Larson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: