The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Inocation exception

Posted by Amir Barylko on November 20, 2000 at 4:09 PM

Hi, I don't understand why the following code raises InvocationException:

List l = new LinkedList() ;
Iterator i = l.iterator() ;
Method mi = i.getClass().getMethod( "hasNext", null ) ;
mi.invoke( i, null ) ;

Thank's.




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us