I think wqyivy wrote:
>
> public class location{
> ... ...
> }
...
> Object loc = tempVal.externalAddressValue(r.getGlobalContext());
...
>
> You can see after I get the return value of "location", its type changes to Object,
>instead of location. So I can no longer use the method contained in loc. How can I
>correct this?
> Maybe this question belongs to java programming. But I would really appreciate it if
>you can help me solve it.
> Best wishes
> Ivy
Yes, this is indeed a Java programming question; you need to sue a
"cast" to convert the return value to a "location" object:
location loc = (location) tempVal.externalAddressValue(r.getGlobalContext());
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------