Skip to content
New issue

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

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

Already on GitHub? # to your account

Invalid time literal causees IllegalArgumentException #908

Closed
housengw opened this issue Jan 28, 2022 · 1 comment
Closed

Invalid time literal causees IllegalArgumentException #908

housengw opened this issue Jan 28, 2022 · 1 comment
Labels
bug Something isn't working validation

Comments

@housengw
Copy link
Contributor

minimal example:

target C;
main reactor {
    timer t(0 m)
}

output

wonghouseng@beefy-desktop-linux:~/Desktop/lingua-franca/test/C$ lfc src/exp.lf 
0    [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.IllegalArgumentException
	at org.lflang.JavaAstUtils.toTimeValue(JavaAstUtils.java:160)
	at org.lflang.JavaAstUtils.getLiteralTimeValue(JavaAstUtils.java:213)
	at org.lflang.generator.ReactorInstance.getTimeValue(ReactorInstance.java:635)
	at org.lflang.generator.TimerInstance.<init>(TimerInstance.java:65)
	at org.lflang.generator.ReactorInstance.<init>(ReactorInstance.java:816)
@housengw housengw added bug Something isn't working validation labels Jan 28, 2022
@housengw
Copy link
Contributor Author

housengw commented Feb 3, 2022

fixed by #916

@housengw housengw closed this as completed Feb 3, 2022
@lhstrh lhstrh changed the title invalid time literal causees IllegalArgumentException Invalid time literal causees IllegalArgumentException Mar 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working validation
Projects
None yet
Development

No branches or pull requests

1 participant