L
lbrtchx
Well, I don't really understand why this is happening, I am still
learning java generics. But, basically I have a command object with a
generic method that is encapsulated in a "has a" fashion by a
containing object
When you call the containing's object's method, it includes extra
parameters it knows about and relays the call to the command object. I
know there is no problem with the method itself since it works fine
when called from the containing's object. It stops compiling however
when you put the method in the command object
SelWhr08.java:182:
<KOTp>getGnRx(java.sql.PreparedStatement,KITp,int[],int[],java.lang.Class<KOTp>)
in Kmnd02 cannot be applied to
(java.sql.PreparedStatement,KITp,int[],int[],java.lang.Class<KOTp>)
KOTp[] TpAr = Kmnd.getGnRx(PSt, IObj, iITpIxAr, iOTpIxAr, KO);
What is going on here? What part of generics should I get more
acquainted with?
How can I fix it?
Thanks
lbrtchx
learning java generics. But, basically I have a command object with a
generic method that is encapsulated in a "has a" fashion by a
containing object
When you call the containing's object's method, it includes extra
parameters it knows about and relays the call to the command object. I
know there is no problem with the method itself since it works fine
when called from the containing's object. It stops compiling however
when you put the method in the command object
SelWhr08.java:182:
<KOTp>getGnRx(java.sql.PreparedStatement,KITp,int[],int[],java.lang.Class<KOTp>)
in Kmnd02 cannot be applied to
(java.sql.PreparedStatement,KITp,int[],int[],java.lang.Class<KOTp>)
KOTp[] TpAr = Kmnd.getGnRx(PSt, IObj, iITpIxAr, iOTpIxAr, KO);
What is going on here? What part of generics should I get more
acquainted with?
How can I fix it?
Thanks
lbrtchx