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

How can I differentiate a warning in the Polystat and a warning in a test case? #20

Closed
APotyomkin opened this issue Dec 28, 2021 · 4 comments

Comments

@APotyomkin
Copy link

The warning about an error in Polystat looks this way:

RESULT BY AnOdin:
	Odin is not able to analyze the code, due to:
	Decoration used by object test is not supported.
	Only the following types of decoration is supported:
	  - base > @
	  - base attr1 ... attrN > @

The warning about an error in a test case looks this way:

RESULT BY AnOdin:
	Method `test.n` is mutually recursive with method `base.m` through the following possible code path:
	test.n -> base.m -> test.n

How can I differentiate these two warnings?
Is it possible to add some sign that a warning is related to Polystat, but not with a test case?

@yegor256 yegor256 transferred this issue from polystat/polystat Dec 29, 2021
@yegor256
Copy link
Member

@APotyomkin it's a bug inside ODIN module. It has to throw an exception in this case, not return a normal analysis result

@fizruk
Copy link
Member

fizruk commented Jan 17, 2022

@APotyomkin This should be fixed soon, once Maven processes the latest release of odin (we have just released v0.2.0) and polystat is properly updated.

@nikololiahim @Leosimetti Please report back, once everything is ready.

@nikololiahim
Copy link
Member

@fizruk @APotyomkin odin v0.2.1 is available on Maven Central! It should fix this issue by turning the errors during the analysis into runtime exceptions.

@APotyomkin
Copy link
Author

@nikololiahim @fizruk yeap, now it is possible to differentiate, thanks.

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

4 participants