Skip to content

@Debug annotation breaks the software when the dependencies are mixed #2

Open
@alvinrxg

Description

@alvinrxg

hi,
i think people should stop using this @Debug annotation. They cannot rely on this annotation because of the laziness.

Here's a case, in which i want to speed up the test. So the dependency tree is like:

myApp (debug)
    ┣ A (debug)
    ┗ B (release) with some @Debug annotations
        ┗ DevUtilsProcessor (release)

here because i don't care how is the output of B, so i add its release variant as dependency to speed up the tests. (yes, it's usual that the release variant runs faster than debug variant)
and because of laziness... the @Debug annotation was added there and it's accessed in the release variant. so the software crashes at the runtime, when myApp tries to call some method there...

myApp_debug::doSomethingInB() {
    // debug variant here
    B.doSomethingDebug()
}

@Debug
B_release::doSomethingDebug() {
    //  this method is called, and crashes
}

could you please fix this broken concept? 😬

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions