2012-09-12 54 views

回答

7

這正是錯誤所說 - 你的程序正在使用一部分Java已被棄用在較新的版本。如果你用-Xlint:deprecation重新編譯,它會告訴你哪一個,並且你可以用代碼中更新的API替換它。

This Oracle thread should give you more information

+1

如何使用javac?這是我第一次聽說這個。 –

0

這意味着您的課GraphicallyRepresentation使用另一個類或調用某些註釋爲@deprecated的方法。這可能是因爲它有一個更好的實現,或者它不再相關。您應該儘量避免使用已棄用的apis。

Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. Compilers warn when a deprecated program element is used or overridden in non-deprecated code