why can't i form justification form parameter churned bounds?
so, i know that following doesn't work, nonetheless why doesn't work?
interface adapter<e> {}
class adaptulator<i> {
<e, extends i & adapter<e>> vacant add(class<e> extl, class<a> intl) {
addadapterfactory(new adapterfactory<e, a>(extl, intl));
}
}
the add()
slight gives me accumulate error, "cannot mention any additional organization adapter<e> initial organization form parameter" (in eclipse), "type parameter can't followed bounds" (in idea), take your pick.
clearly you're only certified form parameter i
there, before &
, that's that. (and before ask, doesn't work switch 'em, since there's pledge i
isn't petrify class.) nonetheless since not? i've looked by angelika langer's faq can't an answer.
generally generics discount seems arbitrary, it's since you've combined conditions where form component can't indeed make correctness. nonetheless i don't box smack i'm perplexing here. i'd contend maybe something slight dispatch after form erasure, nonetheless there's wholly add()
method, it's there's any ambiguity...
can someone denote problem me?
Comments
Post a Comment