-
Notifications
You must be signed in to change notification settings - Fork 277
Fix String initialiser type when java.lang.String is a stub #3657
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
Fix String initialiser type when java.lang.String is a stub #3657
Conversation
@owen-jones-diffblue please add a test for this -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 1365f8b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96094506
Previously it was accidentally given type java.lang.Object, but we didn't notice because we were less stringent about verifying type equality (or, in transitioning from ID_symbol to ID_struct_tag for Java types, we've become less generous about permitting a structural match but name mismatch). Either way it was clearly wrong to assign a wrong type like this.
1365f8b
to
101e46e
Compare
I've added a test using janalyzer, and also a fix required to get janalyzer to run properly. |
@@ -7,6 +7,7 @@ add_subdirectory(jbmc) | |||
add_subdirectory(strings-smoke-tests) | |||
add_subdirectory(jbmc-strings) | |||
add_subdirectory(jdiff) | |||
add_subdirectory(janalyzer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add it to the Makefile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Well spotted.
101e46e
to
54301b1
Compare
54301b1
to
0d96b0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫
This PR failed Diffblue compatibility checks (cbmc commit: 101e46e).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96178128
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: 0d96b0d).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96192263
Previously it was accidentally given type java.lang.Object, but we
didn't notice because we were less stringent about verifying type
equality (or, in transitioning from ID_symbol to ID_struct_tag for
Java types, we've become less generous about permitting a structural
match but name mismatch). Either way it was clearly wrong to assign
a wrong type like this.