Getting errors about readImpl__ and writeImpl__ in objc

in Help Center
im using IceTouch 1.3 and im getting some compile time errors on slice2objc generated code.
the errors look like this:
the code where this error occurs looks like this (this was generated by slice2objc):
-
and the slice that defines BotException looks like this:
i can't quote understand what is causing these errors.
the errors look like this:
bot.m:1695:12: No visible @interface for 'BotException' declares the selector 'writeImpl__:' bot.m:1702:12: No visible @interface for 'BotException' declares the selector 'readImpl__:'
the code where this error occurs looks like this (this was generated by slice2objc):
-
(void) readImpl__:(id<ICEInputStream>)is_ { [is_ startSlice]; [is_ endSlice]; [super readImpl__:is_]; [COLOR="#FF0000"]<-----[/COLOR] }
and the slice that defines BotException looks like this:
exception BotException { string message; StringSeq stackTrace; };
i can't quote understand what is causing these errors.
0
Comments
could you paste the complete Slice definitions. I have tested the BotException definition you posted, but this produce a different code that compiles fine. So there should be something else that causes the problem
Regards,
José
file bot_exceptions.ice
file exception.ice
the code generated by slice2objc (from IceTouch1.3) does not compile and fials with the following errors:
i believe this is because readImpl and writeImpl are missing from BotException interface definition in generated BotException.h (the implementations are actually in the .m files ok)
and FWIW, if i put all this into a single file, the errors go away:
You can just edit the header to add this missing declarations, you wont need to recompile the SDKs
You will need to fix the headers for all SDKs, here is the list of affected headers:
Just update the ICEUserException to match the one bellow
Thanks for reporting this issue, we will include the fix in next Ice Touch release.