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

后端 未结 3 681
执念已碎
执念已碎 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:59

    A workaround is using eclipse compiler in maven as described at Using Eclipse Java Compiler (ecj) in maven builds

提交回复
热议问题