- changed status to duplicate
IntelliIdea Apex Parser error for Custom Iterator in batch
Issue #1747
duplicate
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)
-
repo owner -
repo owner I'll be addressing this via issue
#1740. -
reporter Thanks
- Log in to comment
Duplicate of
#1740.