I tryed it, and it works...
But these compiler warnings although open, by compiling...
I'm not sure what you mean - do you still see the warnings after this change or not?
Yes I still see this warning...
I'm srorry, but my English is not very good...
Are you sure it comes from that line of code, not another?
I'm very sure.
When I delete this code, the compiler warning dont open...
I can't replicate the problem in Greenfoot 2.1.0. What version of Greenfoot are you using? And what is the type of Spoing?
I've poked around a bit more, and I think that the warnings don't come up with the Oracle JDK, but they do come up with OpenJDK. Can you tell us which JDK you're using, just to confirm this? (Go to Help->About Greenfoot, and copy what it says next to "Virtual Machine")
Virtual machine: Java HotSpot(TM) Client VM 20.0-b11 (Sun Microsystems Inc.)
I'm using Client VM 19.0-b09 (Sun ...) and am getting warnings also, which I was not getting prior to upgrading to Greenfoot 2.1.0.
(Title) Compiler Warnings
(Text) Warnings from last compilation
(Text) Note: Some input files use unchecked or unsafe operations.
Also, after uploading a scenario, I get:
(Text) Windows cannot find 'greenfoot.gameserver.address'.
(Text) Make sure you typed the name correctly, and then try again.
(Text) To search for a file, click the Start button, and then click Search.
Neither of these seem to hinder compilation or uploading, but ARE bothersome messages.
Also, there are no problems with the uploaded scenarios.
I have uploaded a version of KIAROCKS 'Infect' that I have been helping him on.
It is called 'epidemic'. It gives me that message after compilation. Hope that helps.
Got it, thanks. I think I might know what the problem is now.