-
Notifications
You must be signed in to change notification settings - Fork 369
Remove assert in verify class #297
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
Remove assert in verify class #297
Conversation
Anyhow, removing this assert statement makes CI pass and jitpack.io will work as requested in #290. |
Thanks for identifying the root cause of the problem. I'll get in touch with Luke, who wrote the assertion. |
Sorry for the trouble caused. I found that the method not actually run when executing the I found I propose to replace |
@mmuesly : Can you please try this? Perhaps changing
|
|
|
If this code is not supposed to run, as the peer method takes over all the times, I vote for removing the method body, leaving an empty method with Anyhow, it remains strange that his change has an effect at all. |
It's fine for me to remove the method body as well. If we do that, we might as well remove the method body for the other |
Luke Yi wrote:
It's fine for me to remove the method body as well. If we do that, we might
as well remove the method body for the other |getBitFlip| methods that are
below this one.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#297 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXV4R4DYXMALXX6DZI4WWTUCCIFZANCNFSM5DVNCNUA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
If both methods are dead (unused) code, then please remove them.
Perhaps something strange happens with JPF's class loading in case they
cause problems even when not executed.
--
Regards,
Cyrille Artho - http://artho.com/
Murder is always a mistake -- one should never do anything one cannot
talk about after dinner.
-- Oscar Wilde, "The Picture of Dorian Gray"
|
I checked that after replacing the bodies of all |
cfee1f0
to
3efb52c
Compare
I did what you said. |
Thanks a lot! Looks like the checks passed with the new changes. |
OK, I think I see now what happens. The "real"
(Just put |
That's a good idea. I tried and with the changes you mentioned, the |
I see. This code is probably really old, because it is from when Nastaran created this git repository in 2017. We don't have the history anymore of these changes, it is quite likely that the methods were written before the Model Java Interface and |
… and javapathfinder#297 and javapathfinder#299 to fix and refactor the Verify class
…299 to fix and refactor the Verify class (#403) Co-authored-by: varad64 <[email protected]>
The failing test case in #294 seems related to this assert statement. If I remove it, the test passes. But I have no clue how this effects in a side effect the ExchangerTest. If we remove it, everything work on my system.
Any ideas why this is the case?