Bug #6989

Exception during compilation Token cannot be cast to Expression

Added by Hannu Niemistö about 1 year ago. Updated about 1 year ago.

Status:On holdStart date:
Priority:4Due date:
Assignee:Hannu Niemistö% Done:

0%

Category:-Spent time:-
Target version:-
Release notes:
Story points-
Velocity based estimate-

Description

The following code

test = "foo","bar" 

causes an exception
java.lang.ClassCastException: org.simantics.scl.compiler.internal.parsing.Token cannot be cast to org.simantics.scl.compiler.elaboration.expressions.Expression
 at org.simantics.scl.compiler.internal.parsing.parser.SCLParserImpl.reduceLetQualifier(SCLParserImpl.java:803)
 at org.simantics.scl.compiler.internal.parsing.parser.SCLParser.reduce(SCLParser.java:608)
 at org.simantics.scl.compiler.internal.parsing.parser.SCLParser.parse(SCLParser.java:316)
 at org.simantics.scl.compiler.internal.parsing.parser.SCLParser.parseCommands(SCLParser.java:370)

Associated revisions

Revision 65559036
Added by Hannu Niemistö about 1 year ago

Added a unit test for bug 6989 and some methods to print expressions

refs #6989

Change-Id: Ia79a14ebf9acd9c5d1fb62dbb921db684746f316

History

#1 Updated by Tuukka Lehtonen about 1 year ago

  • Tags set to 1.27.0
  • Release set to 52

#2 Updated by Antti Villberg about 1 year ago

  • Target version changed from 2017-03 to 2017-05

#3 Updated by Antti Villberg about 1 year ago

  • Status changed from In Progress to On hold

#4 Updated by Antti Villberg about 1 year ago

  • Due date deleted (2017-01-22)
  • Target version deleted (2017-05)
  • Start date deleted (2017-01-19)
  • Release deleted (52)

#5 Updated by Tuukka Lehtonen about 1 year ago

  • Status changed from On hold to Closed
  • % Done changed from 0 to 100
  • Release set to 52

#6 Updated by Tuukka Lehtonen about 1 year ago

  • Tags deleted (1.27.0)
  • Status changed from Closed to On hold
  • % Done changed from 100 to 0
  • Release deleted (52)

This was not fixed afterall. There's only a unit test for it for now.

I just closed this because it was tagged with 1.27.0 and since that is closed I thought this should have been as well.

Also available in: Atom PDF