Re: Teach yourself Java in 21 days
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 22 Oct 2005 15:29:21 +0100
Nick wrote:
> c:\j21work\org\cadenhead\ecommerce>javac -classpath "" *.java
> Note: Storefront.java uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details..
That's because Sun introduced some extensions into the most recent version of
Java, and the compiler is trying to force you to use them. Leaving aside the
question of whether the extensions are a good thing or not, they are a
complication that you don't need at this stage, and especially not while you a
trying to follow a book which pre-dates them.
The easiest way of sorting the problem is just to ignore the messages ;-) but
if you prefer you can tell the compiler that you are writing in "old" Java:
javac - source 1.4 -classpath ....etc...
-- chris
.
- References:
- Teach yourself Java in 21 days
- From: Nick
- Teach yourself Java in 21 days
- Prev by Date: Re: JNI and global variables in shared libs
- Next by Date: Re: Better way to do this? PrintHex function
- Previous by thread: Re: Teach yourself Java in 21 days
- Next by thread: Re: Teach yourself Java in 21 days
- Index(es):
Relevant Pages
|