|
|
|
|||||
|
checkCasting to default facet broke in Ruby?
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.
__________________
Caleb Tennis Analytical Engineering, Inc. http://www.aei-tech.com Project: Our facility infrastructure heavily utilizes Ice Gentoo ebuild maintainer for Ice, IceRuby, etc. |
|
|||||
|
Indeed, quite easy to work around. I just found it when toying around while out a new facet in my code. But it smelled like a bug, so I figured it was worthwhile to report.
![]() Caleb
__________________
Caleb Tennis Analytical Engineering, Inc. http://www.aei-tech.com Project: Our facility infrastructure heavily utilizes Ice Gentoo ebuild maintainer for Ice, IceRuby, etc. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ice for Ruby under Vista | PeteH | Help Center | 5 | 03-06-2007 05:19 AM |
| a problem about facet and IceStorm | freshman | Help Center | 13 | 11-14-2004 11:16 PM |
| about facet | freshman | Help Center | 3 | 11-03-2004 10:13 AM |
| about facet | freshman | Help Center | 2 | 11-02-2004 04:23 PM |
| Facet documentation? | brian | Help Center | 2 | 10-21-2003 11:23 PM |