Archived
This forum has been archived. Please start a new discussion on GitHub.
slice2freezej --index bug
A minor bug in slice2freezej:
slice2freezej --index does not generate correct qualified java names (found in version 1.2.0 on XP).
when using the command:
slice2freezej --index myIndexType,A::B::C,mystring Sample.ice
the following java code is generated for the marshalKey function in myIndexType:
if(__servant instanceof A::B::C)
{
String __key = ((A::B::C)__servant).mystring;
return marshalKey(__key);
}
The name of the indexed servant is based on the Slice language syntax (or C++ ?) and does not compile under Java (unless you replase "::" with "." to create the correct java class name: "A.B.C").
- Trond
slice2freezej --index does not generate correct qualified java names (found in version 1.2.0 on XP).
when using the command:
slice2freezej --index myIndexType,A::B::C,mystring Sample.ice
the following java code is generated for the marshalKey function in myIndexType:
if(__servant instanceof A::B::C)
{
String __key = ((A::B::C)__servant).mystring;
return marshalKey(__key);
}
The name of the indexed servant is based on the Slice language syntax (or C++ ?) and does not compile under Java (unless you replase "::" with "." to create the correct java class name: "A.B.C").
- Trond
0
Comments
-
Hello Trond,
Thanks for the bug report! I just posted a patch on the Patch forum:
http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=431
Cheers,
Bernard0