Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-1419

don't generate unneeded references to outer objects in inner classes

    Details

      Description

      Currently (change set 16246 of trunk) named inner classes always contain a reference to their enclosing object, regardless of whether it is use or not. This is similar to the old behavior of anonymous inner classes as demonstrated in https://lampsvn.epfl.ch/trac/scala/ticket/854 . I think named inner classes should not retain a reference to the enclosing object if it is not required so that subtle memory leaks can be avoided.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                retronym Jason Zaugg
                Reporter:
                eengbrec Erik Engbrecht
                TracCC:
                Erik Engbrecht, Seth Tisue
              • Votes:
                11 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: