mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
do not infer from wildcard with raw bound (IDEA-110947)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
interface Result {}
|
||||
|
||||
interface Command<R extends Result> {}
|
||||
|
||||
interface Procedure<C extends Command<Result>> {
|
||||
}
|
||||
|
||||
abstract class ProcedureService {
|
||||
abstract <C extends Command<Result>> Class<? extends Procedure<Command<Result>>> getProcedure(Class<C> cmd);
|
||||
|
||||
public <C extends Command<Result>> void execute(Class<? extends Command> aClass) {
|
||||
Class<Procedure<Command<Result>>> procedureClass = getProcedure(aClass);
|
||||
<error descr="Incompatible types. Found: 'java.lang.Class<capture<? extends Command>>', required: 'java.lang.Class<Command>'">Class<Command> c = aClass;</error>
|
||||
<error descr="Incompatible types. Found: 'java.lang.Class<capture<? extends Command>>', required: 'java.lang.Class<C>'">Class<C> c1 = aClass;</error>
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user