Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6992698

JSR 292: remove support for transient syntax in polymorphic signature calls

XMLWordPrintable

    • b128
    • unknown
    • generic
    • Verified

      The initial version if compiler changes supporting 292 features contained special syntax for denoting return type in a polymorphic signature call. Such syntax, leveraging explicit type-arguments in method calls, has been dropped in favor of a syntax leveraging cast:

      BEFORE:

      s = mh.<String>invokeExact("daddy",'d','n');

      AFTER:

      s = (String)mh.invokeExact("bunny",'n','d');

      Old syntax is still allowed in order to favor migration of existing 292 clients to the new syntax - however, such support is meant to be transient and, consequently, is to be removed.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: