Code generation for abstract class methods overriding a virtual method does not add "override" keyword to method signature
Issue #2292
resolved
I have an unlocked package that is installed into my scratch.
In this unlocked package:
I have an Interface
public interface IFilterProvider {
FilterDefinition getFilter();
void initProvider(List<String> params);
}
And an abstract class
public with sharing abstract class AbstractFilterProvider implements IFilterProvider {
protected Contact getContact() { ... }
protected User getUser() { ... }
public virtual void initProvider(List<String> params) {
// default implementation here...
}
}
Then in my current project I create a class that extends the abstract class.
When I auto implement I get these methods defined.
However the initProvider method should have the override keyword.
public with sharing class ResourceListFilters extends AbstractFilterProvider {
public FilterDefinition getFilter() {
return null;
}
public void initProvider(List<String> params) {
}
}
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.2.5.5.
- Log in to comment
Fix committed for the next build.