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

Comments