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
JVM 11+ support #7
Comments
Please check version 2.3.0. It have to fix this issue. |
The example works with 2.3.0, yeah, thanks. With bigger project I get a strange exception when I just add a dependency and run a junit test.
I think a common use case is when decoroutinator is enabled/disabled in test/prod environment via debug switch, and just having a dependency shouldn't impact project behavior. Unfortunately, I cannot reproduce this in sample project, maybe I'll dig into this later. |
The last exception throws when you didn't call the method 'DecoroutinatorRuntime.load()'. For unit tests you should add that call in |
I get it, but what should a use do if he wants to switch Decoroutinator on and off via flag (config setting, env variable, etc)? For example, to enable it in tests and in dev environments, but disable it in prod? |
Right now you can set the system property This property is read once, so you cannot switch SD on and off dynamically during the execution of your app. |
Its nice to have this in README. But even with systemProperty set to false, decoroutinator still impacts the project. Behavior with and without dependency differs. For example, mockito complains and can't mock some objects (didn't dig that yet). |
I'm agree with you that just existence of the dependency shouldn't change the app behaviour. It will be fixed in #8. |
Awesome, thanks! |
Thank you for the feedback! |
Does this library work with JVM 11, 17, etc?
For example, with corretto-17.0.3 and stacktrace-decoroutinator-jvm:2.2.1 I get
when I launch the example from README. With 1.8 it works fine.
The text was updated successfully, but these errors were encountered: