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

__$swapInit not quite doing what was expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8-rc-3
    • 1.8-rc-4
    • bytecode
    • None

    Description

      The new method __$swapInit was added (I think) to support reloading, enabling someone to drive re-initialization of some state (like constants, callsite arrays). Unfortunately it doesn't quite do that - with regards to the callsite array all it does is call $getCallSiteArray. This doesn't clear it, this just ensures it is initialized - and if initialized in the past it will not be reinitialized. This means the reloader has to additionally null the callsite array before calling __$swapInit - which is a shame since it is all invoked by reflection.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: