[tcljava-user] java::cast with array signature.
Brought to you by:
mdejong
From: <PFi...@hb...> - 2005-11-01 08:31:08
|
JAVA Code. ************** "MBeanLevelSpec[] mlss = (MBeanLevelSpec[])ac.invoke(perfMbean, "getInstrumentationLevel", params, signatures);" The results of "ac.invoke" are casted to MBeanLevelSpec[]" JACL Code. ************** "set il [ $AdminClientI invoke $perfMbean "getInstrumentationLevel" $parramsArray $signaturesArray ]" "set mBeanLevelSpec [ java::cast {MBeanLevelSpec[]} $il ]" The cast generates: unknown class "MBeanLevelSpec" while executing "java::cast {MBeanLevelSpec[]} $il " Changed code to: "set mBeanLevelSpec [ java::cast MBeanLevelSpec $il ]" This generates: could not cast from com.ibm.websphere.pmi.stat.MBeanLevelSpec[] to com.ibm.websp here.pmi.stat.MBeanLevelSpec It seems the usage of "[]" in the cast statement invalidates the signature name. What is the proper usage of java::cast if the signature is an array? Regards. PATRICK FINNEGAN. =================================================== HBF Health Funds Inc. a registered organisation under the National Health Act HBF Insurance Pty Ltd ACN 009 268 277 This email is a confidential communication intended only for the named Addressee(s). If you are not that person any disclosure, copying, distribution or use of this email or the information in it is prohibited. Please notify us immediately by telephone, (+61) 08 9265 6111 or return email and delete this email. The views in this email may be personal to the author and not those of HBF. |