mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
12 lines
315 B
Java
12 lines
315 B
Java
import java.io.Serializable;
|
|
|
|
class Test {
|
|
public <T extends Serializable> void foo(byte[] data) {
|
|
T foo = (T) data;
|
|
}
|
|
|
|
public <T extends Serializable & Runnable> void bar(byte[] data) {
|
|
T bar = <error descr="Inconvertible types; cannot cast 'byte[]' to 'T'">(T) data</error>;
|
|
}
|
|
}
|