IntelliIdea Apex Parser error for Custom Iterator in batch

Issue #1747 duplicate
Nagendra Singh created an issue

Take this snippet of code :

global class RiderInsertInBatch implements Database.Batchable<Integer>{


    global Iterable<Integer> start(Database.BatchableContext info){
        return new IntegerIterator(1000);
    }

    global void execute(Database.BatchableContext info, List<Integer> scope){
        //Loop through integer list and create records
    }

    global void finish(Database.BatchableContext info){

    }
}

Here I have used a custom iterator which is Integer, but I think the Apex Parser is not able to parse this because of the Symbol table having List<SObject> scope as the second parameter in execute method.

Comments (3)

  1. Log in to comment