Archived
This forum has been archived. Please start a new discussion on GitHub.
checkCasting to default facet broke in Ruby?
ctennis
in Bug Reports
The documentation state that by using checkedCast with an empty string, we can get back to the default facet of a servant. However, that doesn't seem to be the case with the Ruby bindings:
I've got an object with two facets, the default and one called "unbuffered". With a proxy to the default, I can checkcast and get a proxy to the "unbuffered" facet. However, attempts to go back don't work:
>> r168
=> register/168 -f unbuffered -t @ Unico-tc9
>> r168 = Unico::AnalogOutputRegisterPrx::checkedCast(r168, "")
=> register/168 -f unbuffered -t @ Unico-tc9
>> r168.ice_getFacet
=> "unbuffered"
Maybe I'm just misunderstanding the "trick" to get back to the default facet, but if not it looks like this might be a bug.
I've got an object with two facets, the default and one called "unbuffered". With a proxy to the default, I can checkcast and get a proxy to the "unbuffered" facet. However, attempts to go back don't work:
>> r168
=> register/168 -f unbuffered -t @ Unico-tc9
>> r168 = Unico::AnalogOutputRegisterPrx::checkedCast(r168, "")
=> register/168 -f unbuffered -t @ Unico-tc9
>> r168.ice_getFacet
=> "unbuffered"
Maybe I'm just misunderstanding the "trick" to get back to the default facet, but if not it looks like this might be a bug.
0
