Originally posted by ganzuoni
it could be nice to have a way to get the type id of a slice element
instead of hard-coding the string constant in the source
(something like CORBA XXHelper.id()).
Oops, yes (obviously) you are right !
Well, something similar would be nice also for interface.
Some static constant in XX.java, for example.
Originally posted by michi
You can call ice_id() on a proxy to get the interface type. Note though that this call goes remote and delivers the actual run-time type, not the static type of the proxy.
What I don't understand is why you care about the type ID though. Normally, there is little use for the type ID in application code. (The type ID exists mainly to support the Ice run time.) So, why do you need it?