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

findMegaMorphicSetMethod should not cast result type.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b89
    • generic
    • generic

    Description

      The probem is that when we have megamorphic fallback, getters/setters returned by findMegaMorphicGet/SetMethod would have a ScriptObject receiver (i.e., virtual methods.) There are several points in the code, WithObject in particular, that assumed the receiver was always an Object. My previous fix originally recast the receiver in findMegaMorphicGet/SetMethod, but this caused conversion issues in the get prop case. This fix brings uniformity to the set prop case.

      Attachments

        Activity

          People

            jlaskey Jim Laskey
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: