Results 1 to 2 of 2
- 04-11-2011, 08:30 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 23
- Rep Power
- 0
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?
ThanksJava Code:for (Serializable wSerializable : myList) { JAXBElement element = (JAXBElement) wSerializable; .... }
- 04-11-2011, 09:49 PM #2
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
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
-
java message box, how to not show multiple message box with same title or content
By oohay in forum AWT / SwingReplies: 6Last Post: 06-04-2010, 08:43 PM -
IE not reply type 3 NTLM message
By seritzo in forum Advanced JavaReplies: 0Last Post: 01-22-2010, 02:40 PM -
Error Message:Editor does not contain main type
By Deepa in forum New To JavaReplies: 9Last Post: 07-03-2009, 03:58 AM -
Error Message:Editor does not contain a main type
By Deepa in forum New To JavaReplies: 0Last Post: 11-27-2008, 12:25 PM -
[SOLVED] Cast string type to int type
By GilaMonster in forum New To JavaReplies: 9Last Post: 09-17-2008, 10:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks