From: Marcos D. de A. <ma...@cs...> - 2008-10-06 23:17:43
|
Hi Gomathi, It looks like you have not made any mistake. You are probably compiling GridSim with Java 1.5 or 1.6. GridSim has some code that is Java 1.4 compliant. For example, GridletList extends LinkedList and not LinkedList<Gridlet>. So, you will probably get these warnings if you compile the examples using Java 1.5 because they are considered unsafe. However, Java 1.5 will compile the code, despite the warnings. Regards, Marcos On 07/10/2008, at 12:33 AM, gomathi babu wrote: > hai, > when i try to compile examples in gridsim package, i got the > following warning messages. what mistake have i done? please reply me. > > C:\gridsim4.1\examples\Example02>javac -classpath c:\gridsim4.1\jars > \gridsim.jar > ;. Example2.java > Note: Example2.java uses unchecked or unsafe operations. > Note: Recompile with -Xlint:unchecked for details. > > C:\gridsim4.1\examples\Example02>javac -Xlint -classpath c: > \gridsim4.1\jars\grid > sim.jar;. Example2.java > Example2.java:78: warning: [unchecked] unchecked call to add(E) as > a member of t > he raw type gridsim.GridletList > list.add(gridlet1); > ^ > Example2.java:79: warning: [unchecked] unchecked call to add(E) as > a member of t > he raw type gridsim.GridletList > list.add(gridlet2); > ^ > Example2.java:80: warning: [unchecked] unchecked call to add(E) as > a member of t > he raw type gridsim.GridletList > list.add(gridlet3); > ^ > Example2.java:114: warning: [unchecked] unchecked call to add(E) as > a member of > the raw type gridsim.GridletList > list.add(gridlet); > ^ > 4 warnings > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users Marcos Dias de Assuncao Grid Computing and Distributed Systems (GRIDS) Laboratory Department of Computer Science and Software Engineering The University of Melbourne, Australia Email: ma...@cs... ------------- "If the American people ever allow the banks to control the issuance of their currency (...) the banks and corporations that will grow up around them will deprive the people of all property, until their children wake up homeless on the continent their fathers conquered." Thomas Jefferson |