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

Don't create impossible converters for ScriptObjectMirror

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Currently, NashornLinker will create a conditional ScriptObjectMirror converter for _any_ source type if the target type is something that a ScriptObjectMirror can be, e.g. Map. However, it'll do it even if the source type can never be a ScriptObject (e.g. java.lang.Double). This causes more matches in the "canConvert" too, which allows more candidates for overload resolution to pass.

        This has no significant effect, except for making more work for overload resolution, as well as causing a bunch of bogus converters to exist for (most notably) anything-to-Map.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: