beanshell error: Error invoking bsh method: eval solution

created at 11-24-2021 views: 108


Read the contents of the CSV file in beanshell, the same code can be executed in IDEA, but an error is reported in beanshell:

ERROR oajuBeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: ``import; import; import java.util.Array...'' Encountered "=" at line 9, column 24.


error prompt

Delete the specified String in the List and run again, and the run is successful

run successful

Guess: Generics in Java are not supported in beanshell.

created at:11-24-2021
edited at: 11-24-2021: