Iterable Batch apex showing an error

Issue #1740 resolved
Harsha Sarikonda created an issue

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)

  1. Scott Wells 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.

  2. Log in to comment