CC adds invalid 'params' keyword for AsyncTask.doInBackground

.971 Java

  dflogin = public class(AsyncTask)
  private
    property dfr : dfresult;
    property Act : Activity;
  protected
    method onPreExecute; override;
    method doInBackground(params arg1: array of Activity): String; override;
    //method doInBackground(arg1: array of Activity): String; override;
    method onPostExecute(arg1: String); override;
  public

  end;

The ‘params’ keyword is invalid and should not be included here. It also triggers this error on compile:
Error 3 () Object reference not set to an instance of an object.
at H.K.A(G A)
at H.x.A(Func`2 A)
at H.K.b(x A)
at H.K.d()
at H.K.A()
at F.q.l()
at F.q.J()
at RemObjects.Oxygene.MSBuild.OxygeneCompiler.Execute() C:\Program Files (x86)\MSBuild\RemObjects Software\Oxygene\RemObjects.Oxygene.Java.targets 247 5 nl.edb.tabellenapp

Be aware that CC will also insert the keyword in PublishProgress and onProgressUpdate…

Thanks, logged as bugs://53280 for review
Posted by Bugs for Mac

53280: CC adds invalid ‘params’ keyword for AsyncTask.doInBackground

But it still adds the word ‘params’ in .973.

but does it compile now? sure param isn’t set for the base method, and correct?

You are right (it is fixed), I had in mind the params keyword had to be removed. Although I do not get a warning the params keyword is missing. That’s why I was not triggered by the fix…