如何查看班级的电话'运行时'在Java?

时间:2015-02-09 21:22:44

标签: java

我正在向Topcoder提交解决方案。我一直收到错误, Compilation failed because there is no need to make use of 'Runtime' anywhere in your code, for security purposes.

我不使用Runtime类,没有反射,也没有使用obj.getClass。

可能导致这种情况的原因是什么?

1 个答案:

答案 0 :(得分:1)

this link on the TopCoder Forum,我被引导相信这是决议:

  

对@SafeVarargs的引用没有文本' Runtime'并且属于java.lang,但由于误导性消息而被视为无效。