[Bluej-discuss] unchecked operations

Michael Kölling M.Kolling at kent.ac.uk
Tue Jun 20 13:51:15 BST 2006


On 20 Jun 2006, at 13:43, caramail wrote:

> i have made a program which works correctly but when i compile it i  
> have the following message:
> *.* uses unchecked or unsafe operations
> Note: recompile with -Xlint: unchecked for details
>
> i don't know how to do this operation!!

This happens when you use Java 1.4-style collections (non-generic)  
with Java 5. The Java 5 compiler produces this warning.

In BlueJ, you can switch off this warning in the preferences: Open  
the 'Miscellaneous' tab in the preferences, and uncheck the option  
"Show compiler warnings when unsafe collections are used".

Regards,

Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060620/a14080aa/attachment.html


More information about the bluej-discuss mailing list