polystat / odin

Object Dependency Inspector
10 stars 2 forks source link

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

Closed APotyomkin closed 2 years ago

APotyomkin commented 2 years ago

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 commented 2 years ago

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

fizruk commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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