From: Ben G. <be...@ja...> - 2005-09-22 18:44:10
|
SQUILLACE MASSIMO wrote: > It requires an int. In one of several attempts I called the method > with an object of class java.lang.Integer and the error message > simply became: > > Fatal error: Uncaught [class java.lang.Exception: > java.lang.Exception: Invoke failed: [class > com.ibm.mq.MQQueueManager]->accessQueue(class java.lang.String, class > java.lang.Integer). Cause: java.lang.IllegalArgumentException: > java.lang.ClassCastException@1a786c3] Shouldn't java autobox/autounbox Integer to int and vice versa? It will if you are using java 1.5 at least. -- Ben Gollmer Jatosoft LLC |