Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7115044 Umbrella: Add support for lambda expressions
  3. JDK-7148164

attribution code for diamond should not rely on mutable state

XMLWordPrintable

    • b30
    • unknown
    • generic
    • Not verified

      The code for attributing an instance creation expression with diamond relies on mutable state. The code changes the scope of a class with a 'synthetic' scope, so that a slightly different overload step could be applied. Mutable state is problematic, as in the future, we might have the compiler doing something more during overload resolution (i.e. type-checking expressions) - in which case the change in the class scope might become visible and cause spurious errors.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: