Menu

#3 project requires java1.5 but uses raw list types

open-accepted
None
2
2008-12-12
2008-12-11
No

If you set your compiler level to java1.4 you get errors because a single class uses the java1.5 "for each" syntax. If you set your compiler level to 1.5 you get about 82 compiler warnings many of which relate to things such as "ArrayList is a raw type" and "HashTable is a raw type" generics errors. Please either back out the "for/in" and stick with java1.4 loop go with java1.5 and silence the warnings by using "ArrayList<?>()" or something more strongly typed.

Discussion

  • Justin McCarter

    Justin McCarter - 2008-12-11
    • priority: 5 --> 2
     
  • Justin McCarter

    Justin McCarter - 2008-12-12
    • assigned_to: nobody --> mdeluisi
     
  • Justin McCarter

    Justin McCarter - 2008-12-12
    • assigned_to: mdeluisi --> jmccarter2005
     
  • Justin McCarter

    Justin McCarter - 2008-12-12
    • status: open --> open-accepted
     
  • Justin McCarter

    Justin McCarter - 2008-12-12

    Include the following property in the compile ant task to see these warnings:

    <compilerarg value="-Xlint"/>

     

Log in to post a comment.