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

Circular variable references cause StackOverflowError #2

Closed
vatbub opened this issue Dec 26, 2019 · 0 comments
Closed

Circular variable references cause StackOverflowError #2

vatbub opened this issue Dec 26, 2019 · 0 comments

Comments

@vatbub
Copy link
Owner

vatbub commented Dec 26, 2019

Expected output:
IllegalArgumentException: Circular reference detected

Console output:
Please enter your math expression (Hit Ctrl+C or type 'exit' to quit the program) [default: exit]:
r = r + 1
Exception in thread "main" java.lang.StackOverflowError
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:275)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:288)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:288)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:288)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:288)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)
at com.github.vatbub.mathevaluator.MathExpression.evaluate(MathExpression.java:288)
at com.github.vatbub.mathevaluator.RuntimeConstant.getValue(RuntimeConstant.java:37)

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

No branches or pull requests

1 participant