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

Random access node assignable throws ClassCastException #2099

Open
jurgenvinju opened this issue Dec 11, 2024 · 0 comments
Open

Random access node assignable throws ClassCastException #2099

jurgenvinju opened this issue Dec 11, 2024 · 0 comments
Assignees

Comments

@jurgenvinju
Copy link
Member

rascal>leesplank = "aap"("noot");
node: "aap"("noot")
rascal>leesplank[0] = "mies";
java.lang.ClassCastException: class io.usethesource.vallang.impl.persistent.Node cannot be cast to class io.usethesource.vallang.IConstructor (io.usethesource.vallang.impl.persistent.Node and io.usethesource.vallang.IConstructor are in unnamed module of loader 'app')
(internal error)
        at $shell$(|main://$shell$|)

java.lang.ClassCastException: class io.usethesource.vallang.impl.persistent.Node cannot be cast to class io.usethesource.vallang.IConstructor (io.usethesource.vallang.impl.persistent.Node and io.usethesource.vallang.IConstructor are in unnamed module of loader 'app')
        at org.rascalmpl.semantics.dynamic.Assignable$Subscript.assignment(Assignable.java:504)
        at org.rascalmpl.semantics.dynamic.Statement$Assignment.interpret(Statement.java:210)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:899)
        at org.rascalmpl.semantics.dynamic.Command$Statement.interpret(Command.java:125)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:1135)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:984)
        at org.rascalmpl.interpreter.Evaluator.eval(Evaluator.java:935)
        at org.rascalmpl.repl.RascalInterpreterREPL.evalStatement(RascalInterpreterREPL.java:135)
        at org.rascalmpl.repl.BaseRascalREPL.handleInput(BaseRascalREPL.java:107)
        at org.rascalmpl.shell.REPLRunner$1.handleInput(REPLRunner.java:57)
        at org.rascalmpl.repl.BaseREPL.handleInput(BaseREPL.java:179)
        at org.rascalmpl.repl.BaseREPL.run(BaseREPL.java:346)
        at org.rascalmpl.shell.REPLRunner.run(REPLRunner.java:91)
        at org.rascalmpl.shell.RascalShell.main(RascalShell.java:82)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant