darbon
1
Hi,
The documentation reports the use of java 1.7. Into a java snippet i want to use a switch case on a String but an error says:
Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum constants are permitted
Is it normal?
Thanks
Hi Darbon,
did you also switch the Execution Enviroment inside the plugin.xml of your plugin to Java 1.7?
Christian
darbon
3
preferences/java/installed jre/Execution Environment/JavaSe1.7 has the flagged option Knime210[perfect match]
Isn't it enough?
The plugin.xml is only for the developer version.
thor
4
Currently it's not possible to use Java 7 syntax in the Java snippet nodes. This will change with the next bugfix release.