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

Add support for intersection types in cast expression

XMLWordPrintable

    • b68
    • Verified

      Allow cast where target type is an intersection type - example:

      (C & I1 & I2)foo

      As a side-effect, this enables an handy opt-in mechanism for denoting serializable lambdas:

      (Serializable & Predicate<String>)s->false;

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

              Created:
              Updated:
              Resolved: