Home Bug Reports

Many slice2* commands ignore lines with trailing "//" comments

mefostermefoster Member Mary Ellen FosterOrganization: Heriot-Watt University, EdinburghProject: ECHOES learning environment ✭✭✭
Consider the following Slice file:
module test {
    struct TestStruct {
        int value; // the value

This works as expected if I run slice2cpp, slice2php, or slice2rb.

However, if I run slice2cs, slice2html, slice2java, or slice2py on it, I get the following warning:
/home/mef3/tmp/Test.ice:4: struct `TestStruct' must have at least one member

If I move the comment to above "int value" line instead of inline as in the file, then all slice2* generators process it fine.

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.


Sign In or Register to comment.