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

Overloaded method resolution foiled by nulls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • None
    • core-libs
    • None
    • b86
    • Verified

    Description

      Passing null spoils overloaded method resolution at invocation time. Previous strategy was to use the static call site type as the type of a null argument, but that was wrong - the possible overloads are already narrowed at link time to those matching static types at the call site. Instead, a new class value representing null and matching any reference type has to be used.

      Attachments

        Activity

          People

            attila Attila Szegedi
            attila Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: