Author Topic: Java incomplete symbol chain (CAS-65031-TV86)  (Read 3574 times)

Marcel

  • Senior Community Member
  • Posts: 261
  • Hero Points: 26
Java incomplete symbol chain (CAS-65031-TV86)
« on: August 22, 2014, 02:15:39 PM »
SE cannot find method references that go through an interface, even though it seems to do a brute force source file scan trying to find them.

interface if: amethod();
class impl: implements if, declares amethod()
class ref: accesses amethod() through if.


Expected search result, when looking up "amethod" from within "impl"
impl ----> if ---> ref
Got:
impl




Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Java incomplete symbol chain (CAS-65031-TV86)
« Reply #1 on: August 22, 2014, 02:25:37 PM »
I'll look into it.  For the record, here is the real code I used to reproduce it.  Real code examples make reproducing bugs much easier than pseudo-code.

Code: [Select]
interface ifInterface {
    void amethod();
};
class impl: implements ifInterface {
    void amethod() {
    }
}
class ref {
    void another(ifInterface b) {
        b.amethod();
    }
}

Marcel

  • Senior Community Member
  • Posts: 261
  • Hero Points: 26
Re: Java incomplete symbol chain (CAS-65031-TV86)
« Reply #2 on: August 22, 2014, 02:55:03 PM »
Yeah - but what would have meant more work for me   :)
Actually, there was a sample project attached to the case I filed. Glad you could repro the problem.

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Java incomplete symbol chain (CAS-65031-TV86)
« Reply #3 on: August 22, 2014, 06:36:10 PM »
This will be fixed in the next beta drop.  Thanks for the report.