facebook

xdoclet errors

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272016 Reply

    Ian McDermid
    Participant

    I am getting xdoclet errors in my EJB’s since going to JDK5. If I have a sequence such as:

    List list = new ArrayList();

    //Do some stuff

    list.add(Object);

    I get a warning that says Type safety references to a raw type (ArrayList) should be paramatized.

    If I add the paramaters (List<object>t = new ArrayList<object>(); xdoclet complains about the < symbol.

    If I add @SuppressWarnings(“unchecked”) xdoclet complians about the @ symbol.

    Should I revert back to JDK1.4, or is there a workaround.

    Ian

    #272031 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Ian, this are all standard Java 5 warnings from the JDT compiler when moving to Java 5. If you hvaen’t worked with java 5 yet, it wants you to use Generics to specify types for collections and the like. You can turn off the warnings under your project properties and compiler settings, it’s under Warnings category.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: xdoclet errors

You must be logged in to post in the forum log in