Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

non-varargs call of varargs method with inexact argument type for last para

843810Mar 22 2005 — edited May 26 2009
i have no idea what the error:

non-varargs call of varargs method with inexact argument type for last parameter

means.

return (Component)sceneClass.getConstructor(
new Class[]{int.class, int.class}).newInstance(
new Integer[]{new Integer((int)sceneDimension.getWidth()),
new Integer((int)sceneDimension.getHeight())});

this is the problem area but i'm not sure how to get around it..

any help would be appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2009
Added on Mar 22 2005
12 comments
5,969 views