Is it an eclipse or maven-compiler-plugin bug, the generics Class cast issue?

后端 未结 3 683
执念已碎
执念已碎 2020-12-12 00:18

I have a code like this:

protected  T doSomething(String someParam, Class clazz) {
...
}

which I use in a TestCase class:

3条回答
  •  没有蜡笔的小新
    2020-12-12 00:53

    Which compiler are you using? In this case http://code.google.com/p/jclouds/issues/detail?id=461 the openjdk seems to reveal the incompatible types while the sun jdk ignores it and compiles.

提交回复
热议问题