BeanShell error: error invoking BSH method: Eval [How to Solve]

Cause: read the contents of CSV file in BeanShell. The same code can be executed in idea, but an error is reported in BeanShell:

ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: “import java.io.BufferedReader; import java.io.FileReader; import java.util.Array . . . ” Encountered “=” at line 9, column 24.

Delete the string specified in the list and run it again. The operation is successful

Guess: generics in Java are not supported in BeanShell.

Similar Posts: