Hi,
have someone saw such type of error? Tried to find the usual causes of it but there were not many cases described. I get it by overriding protected methods from flash SWC file (featherUI).
This will cause error 1065 at runtime (compiles just fine). If I comment out 1 of method than other is givving same error. But if super.initialize();is commented out than error dissapears. It looks to me as some collision issue but I can not pinpoint cause of it
@singmajesty it comes from featherui swc. looks quite normal class. validate method is a bit deeper in the inheritance chain. I start to think that haxe 4 preview what I use, have issues with an override of protected methods in as3 from the swc, its second issue for me.
ScrollContainer and other classes in the hierarchy also override initialize, but it seems strange that at runtime, it’s triggering that there is no initialize method at all to override.
Perhaps when you call a super method, it needs a direct reference to which class the method is coming from. Since ScrollScreen itself lacks an initialize method, perhaps that is why this is occurring.
I found this bug:
Perhaps a solution instead would be to try and patch the type in the SWC to be public instead of protected?
but I found something weird, I changed my code to override public function initialize ... and the compiler didn’t complained that there is no public method at compile time
Yes, looks like making method public helps, but it means 170 manually renamed files in feather framework as local fork
And as the issue you attached is closed it will stay like this, with broken protected override in flash target.
Ok, will push me to faster leave feather/starling in flash and, move to openfl / haxeui.