Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-868

Method resolution code unable to resolve methods in some cases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.4
    • Component/s: None
    • Labels:
      None

      Description

      Looks like the method resolution code MethodReference.resolveInternal() is incorrect. It does not look for methods implemented in interfaces implemented by a class. In contrast, FieldReference.resolveInternal() looks in all super classes and interfaces a class implements. I am attaching a simple test program that demonstrates this bug. This bug exists in SVN r15788.

        Attachments

          Issue Links

            Activity

            Hide
            dgrove David Grove added a comment -

            can reproduce problem. I'll take a look at fixing it.

            Show
            dgrove David Grove added a comment - can reproduce problem. I'll take a look at fixing it.
            Hide
            dgrove David Grove added a comment -

            defer to 3.1.4

            Show
            dgrove David Grove added a comment - defer to 3.1.4
            Hide
            ebrangs Erik Brangs added a comment -

            Dave, I've committed a possible fix. Feel free to revert it if there's anything wrong with it.

            Show
            ebrangs Erik Brangs added a comment - Dave, I've committed a possible fix. Feel free to revert it if there's anything wrong with it.
            Hide
            dgrove David Grove added a comment -

            Thanks Erik. I took a look at the patch; seems fine to me.

            Show
            dgrove David Grove added a comment - Thanks Erik. I took a look at the patch; seems fine to me.

              People

              • Assignee:
                dgrove David Grove
                Reporter:
                suriyasubramanian Suriya Subramanian
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: