Consider the following Slice file:
This works as expected if I run slice2cpp, slice2php, or slice2rb.Code:module test { struct TestStruct { int value; // the value }; };
However, if I run slice2cs, slice2html, slice2java, or slice2py on it, I get the following warning:
If I move the comment to above "int value" line instead of inline as in the file, then all slice2* generators process it fine./home/mef3/tmp/Test.ice:4: struct `TestStruct' must have at least one member
The same failure seems to also occur in classes, although it's more dangerous: there's no warning, but slice2* will just silently generate a class without the "value" member.
This doesn't happen with "/*" comments as far as I can tell.
This is with Ice 3.4.2 on Fedora 16.


Reply With Quote