Results 1 to 2 of 2
  1. #1
    BobswYourUcle is offline Member
    Join Date
    Mar 2011
    Posts
    23
    Rep Power
    0

    Default JAXBElement is a raw type message

    Hello,

    I am getting a warning "JAXBElement is a raw type. References to generic type JAXBElement<T> should be parameterized".

    I realizle that this a only a warning and that I can still run the code I would like to fix it. I have googled it but was unable to find information specificaly for the JAXBElement.

    Can anyone explian this msg to me?

    Java Code:
      for (Serializable wSerializable : myList) 
                {            	
                	JAXBElement  element = (JAXBElement) wSerializable;
    ....
    }
    Thanks

  2. #2
    clipod is offline Member
    Join Date
    Oct 2010
    Posts
    7
    Rep Power
    0

    Default

    What is the type of JAXBElement. For example in your case,
    myList is of type JAXBElement. So you have used myList<JAXBelement> before this statement. Or you have used myList<T> and then named the JAXBElement class or what every with <T>.
    So similarly JAXBElement is of type what? thats what you have to put to eliminate the warning.

Similar Threads

  1. IE not reply type 3 NTLM message
    By seritzo in forum Advanced Java
    Replies: 1
    Last Post: 10-08-2014, 12:56 PM
  2. Replies: 6
    Last Post: 06-04-2010, 09:43 PM
  3. Error Message:Editor does not contain main type
    By Deepa in forum New To Java
    Replies: 9
    Last Post: 07-03-2009, 04:58 AM
  4. Replies: 0
    Last Post: 11-27-2008, 01:25 PM
  5. [SOLVED] Cast string type to int type
    By GilaMonster in forum New To Java
    Replies: 9
    Last Post: 09-17-2008, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •