我正在向Topcoder提交解決方案。我不斷收到錯誤, Compilation failed because there is no need to make use of 'Runtime' anywhere in your code, for security purposes.
如何檢查什麼類在Java中調用'運行時'?
我不使用Runtime
類,沒有反射和沒有obj.getClass。
這可能是什麼原因造成的?
我正在向Topcoder提交解決方案。我不斷收到錯誤, Compilation failed because there is no need to make use of 'Runtime' anywhere in your code, for security purposes.
如何檢查什麼類在Java中調用'運行時'?
我不使用Runtime
類,沒有反射和沒有obj.getClass。
這可能是什麼原因造成的?
從this link on the TopCoder Forum,導致我相信這是分辨率:
參考@SafeVarargs不具有文本「運行」,屬於java.lang中,但算作無效有誤導信息。
我希望可以這麼簡單。似乎有一個類隱式導入運行時,並且由於我有大約15K的代碼行,所以很難得到.... – 2015-02-09 21:50:38
發現了類似問題上的[TopCoder公司論壇](http://apps.topcoder.com/forums/;jsessionid=37B6A8137A267BFB638A19AD423CAE90?module=Thread&threadID=846308&start=0&mc=2#1980933),這可能會有幫助。 – 2015-02-09 21:24:31