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

Boolean variables in mappings lead to non-compilable code #132

Open
maxkratz opened this issue Jan 19, 2024 · 0 comments
Open

Boolean variables in mappings lead to non-compilable code #132

maxkratz opened this issue Jan 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maxkratz
Copy link
Member

Related test case: https://github.com/Echtzeitsysteme/gips-tests/blob/feature/add-var-boolean-bug-test-case/gipsl.all.build.varsbooleanbug/src/gipsl/all/build/varsbooleanbug/Model.gipsl

mapping n2n with mapVnode {
	var b : EBoolean
};

^this creates non-compilable code in N2nMapping.java:

Description Resource Path Location Type
The method round(float) in the type Math is not applicable for the arguments (boolean) N2nMapping.java /gipsl.all.build.varsbooleanbug/src-gen/gipsl/all/build/varsbooleanbug/api/gips/mapping line 112 Java Problem
The method setValue(Integer) in the type ILPBinaryVariable is not applicable for the arguments (boolean) N2nMapping.java /gipsl.all.build.varsbooleanbug/src-gen/gipsl/all/build/varsbooleanbug/api/gips/mapping line 60 Java Problem
Type mismatch: cannot convert from Integer to boolean N2nMapping.java /gipsl.all.build.varsbooleanbug/src-gen/gipsl/all/build/varsbooleanbug/api/gips/mapping line 56 Java Problem

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

No branches or pull requests

1 participant