Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

literal mode ?  RSS feed

 
Marko Debac
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody have idea what this message by the compailer means:

Collection types are not supported in literal mode - Type: "java.util.List"

Thnx
Marko
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marko Debac:
Does anybody have idea what this message by the compailer means:

Collection types are not supported in literal mode - Type: "java.util.List"

Thnx
Marko


MArko,

Cann't you show us your code...
 
Marko Debac
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, here is the code

Class:


and web service operation with this
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marko, in which line of code does that error happen? The compiler tells you. Look in your source code at that line. Please copy & paste the error message from the console window.

I don't see anything strange in the code you posted, and I've never seen that compiler error before.

Which Java version are you using?
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Marko Debac:
Hi, here is the code

Class:


and web service operation with this


Marko,

I don't know wheteher is it usefull for you.

But you must look at this link......

And one more thing, please eloborate your question some more with the exact context and the reference and Jasper pointed out...
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll guarantee that message isn't coming from a Java compiler in the traditional sense; there's no such thing as "literal mode" when it comes to compiling Java source. But you mention Web Services, and so perhaps this message is coming from some Web Services-related tool, compiling a WSDL file or something.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!