If I create a typed Map in a script step, (e.g. Map<Integer, String> map = new HashMap<Integer,String>();) I get the error "Unexpected token: ','".

alt text

Nevertheless the code compiles and the process can be executed. Why does this error appear on the script step?

asked 23.07.2014 at 16:44

Barbara%20Brugger's gravatar image

Barbara Brugger ♦♦
(suspended)
accept rate: 100%


The error is not very specific: In Ivyscript Generics are generally not supported, except for List. The code will compile anyway and can also be executed because the Map in the example is threaten as like it wasn't typed.

If you need to use Generics you can switch to Java instead of Ivyscript.

link

answered 23.07.2014 at 16:44

Barbara%20Brugger's gravatar image

Barbara Brugger ♦♦
(suspended)
accept rate: 100%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33

Asked: 23.07.2014 at 16:44

Seen: 2,528 times

Last updated: 23.07.2014 at 16:44