Interface implementation is incorrectly reported as a problem

Issue #874 resolved
Aidan Harding created an issue

I have an interface where the method takes a parameter of type List<sObject>, and then a number of implementations with specific sObjects as the template parameter. IC2 reports this as an error, when it should not.

The error message is attached, example code follows:

global interface AfterInsertI { void handleAfterInsert(List<sObject> newList); }

public class ContactSwitchToDD implements AfterUpdateI {

public void handleAfterUpdate(List<Contact> oldList, List<Contact> newList) {

}

Comments (5)

  1. Scott Wells repo owner

    Thanks for reporting, Aidan, and for the example. I'll let you know if I can't reproduce this, but otherwise I'll try to address if for the next (or next-next) build.

  2. Scott Wells repo owner

    Easily reproduced. The issue that IC isn't recognizing the strongly-typed implementation as being an implementation. Should be pretty simple to address.

  3. Scott Wells repo owner

    Delivered in 1.8.2.0 (inheritance linking only) and 2.0.1.1 (inheritance linking and inspection).

  4. Log in to comment