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

    Default JAXBElement is a raw type message


    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;

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


    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, 11:56 AM
  2. Replies: 6
    Last Post: 06-04-2010, 08: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, 03: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, 10: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