Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operand.toObject() should call Operand.convert() for list elements #457

Open
dbenn opened this issue Nov 12, 2024 · 1 comment
Open

Operand.toObject() should call Operand.convert() for list elements #457

dbenn opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working VeLa VStar expression Language

Comments

@dbenn
Copy link
Collaborator

dbenn commented Nov 12, 2024

VeLaInterpreter.invokeJavaMethod() calls Operand.toObject() with lists but the latter does not call Operand.convert() for the list's elements. If any element does not have the required type, the actual parameter list building will fail, and so too the Java method invocation.

@dbenn dbenn added bug Something isn't working VeLa VStar expression Language labels Nov 12, 2024
@dbenn
Copy link
Collaborator Author

dbenn commented Nov 12, 2024

For example, try this in VeLa:

x is [1.2 3.4 5]
y is [10.0 20.0 30.0 40.0]
scatter("" "" "" x y)

The scatter plot does not appear. Also, the associated error is swallowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VeLa VStar expression Language
Projects
Development

No branches or pull requests

1 participant