Interface implementation is incorrectly reported as a problem
Issue #874
resolved
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)
-
repo owner -
repo owner - changed component to Code Inspections and Intentions
-
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.
-
repo owner Yes, very easy to fix. It'll be in the next build.
-
repo owner - changed status to resolved
Delivered in 1.8.2.0 (inheritance linking only) and 2.0.1.1 (inheritance linking and inspection).
- Log in to comment
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.