Iterable Batch apex showing an error
I am trying to create a new Batch class with an iterable and below is my basic code. When I am trying to save this code IC2 is showing the following error. But when I save the same class using SF develoer console it didn't have any issues. Please help.
Error:
Class BatchChatOfflineUserRun must implement the following methods or be declared abstract: execute(Database.BatchableContext, List<SObject>)
/**
- Created by hsarikonda on 10/20/20.
- /
global with sharing class BatchChatOfflineUserRun implements Database.Batchable<String>{
global Iterable<String> start(Database.BatchableContext BC) {
return new String[] { 'Harsha', 'Harsha2' };
}
global void execute(Database.BatchableContext BC, List<String> strings) {
}
global void finish(Database.BatchableContext BC) {
}
}
Comments (3)
-
repo owner -
repo owner Fix committed for inclusion in the next build. You will need to regenerate your OST after updating to that build for the fix to take effect.
-
repo owner - changed status to resolved
Delivered in 2.1.4.9. Note that you must regenerate your OST for the fix to take effect.
- Log in to comment
Issue
#1747was marked as a duplicate of this issue.