Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ant "unchecked or unsafe" warning

843810Nov 11 2008 — edited Nov 14 2008
Using ant to build gives
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
after a move to JDK 1.5.
No surprise really.
Resolving all these will be looked at as and when the code needs to be touched.
Until then I was looking for a way to suppress this annoying ant warning from an otherwise warning-free build
and I found
-Xlint:-unchecked
but
<javac>
  <compilerarg line="-Xlint:-unchecked"/>
</javac>
does not seem to make any difference.

Does anyone know how to do this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2008
Added on Nov 11 2008
4 comments
387 views