View Issue Details

IDProjectCategoryView StatusLast Update
0038283pas2jstranspilerpublic2020-12-31 02:09
Reporterhenrique Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformPas2JsOSWindows 
Summary0038283: Error in the generation of interfaces
DescriptionI couldn't make in a separate project the error that is occurring here.

But the compiler is generating a delayed startup of my interfaces.

With this, I cannot seek the information of RTTI of my interfaces, because they were not started as expected.

I'll send you an excerpt from the generated JS source to see if you can help me solve the problem.

I changed the name of the unit and types in the example I'm sending.
Additional Information  rtl.createInterface(this,"IGenericInterface$G5","{6972CBB0-53CD-442A-92CC-5681E6719DD2}",["Func1","Proc1","Proc2"],pas.System.IInvokable,function () {
    this.$initSpec = function () {
      var $r = this.$rtti;
      $r.addMethod("Func1",1,null,pas.System.$rtti["TArray<Unit.MyObject>"]);
      $r.addMethod("Proc1",0,[["Dados",pas.Entidades.$rtti["MyObject"]]]);
      $r.addMethod("Proc2",0,[["Dados",pas.Entidades.$rtti["MyObject"]]]);
    };
  },"IMyInterface<Unit.MyObject>");
TagsNo tags attached.
Fixed in Revision47919.
Attached Files

Activities

Mattias Gaertner

2020-12-30 20:24

manager   ~0127954

Is the $initSpec called in the program js?

henrique

2020-12-30 21:06

reporter   ~0127956

No. This is the problem. But in an older version of the trunk, the declaration of initSpec don't occur.

Issue History

Date Modified Username Field Change
2020-12-30 19:04 henrique New Issue
2020-12-30 20:23 Mattias Gaertner Assigned To => Mattias Gaertner
2020-12-30 20:23 Mattias Gaertner Status new => assigned
2020-12-30 20:24 Mattias Gaertner Note Added: 0127954
2020-12-30 21:06 henrique Note Added: 0127956
2020-12-31 02:09 Mattias Gaertner Status assigned => resolved
2020-12-31 02:09 Mattias Gaertner Resolution open => fixed
2020-12-31 02:09 Mattias Gaertner Fixed in Revision => 47919.