RVM
  1. RVM
  2. RVM-868

Method resolution code unable to resolve methods in some cases

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.1.4
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      2

      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.

      1. crash.txt
        0.7 kB
        Suriya Subramanian
      2. ResolverTestCase.java
        0.3 kB
        Suriya Subramanian

        Issue Links

          Activity

          Hide
          David Grove added a comment -

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

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

          defer to 3.1.4

          Show
          David Grove added a comment - defer to 3.1.4

            People

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

              Dates

              • Created:
                Updated: