-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Plugin formatter having no arg and File arg constructor #1104
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
Labels
Comments
6 tasks
@email2vimalraj Would you like to process the review comments? Otherwise I might give this issue a go... |
Yes, I'll look into this over this weekend.
On 23-Aug-2017 12:15 AM, "Marit van Dijk" <[email protected]> wrote:
@email2vimalraj <https://github.com/email2vimalraj> Would you like to
process the review comments? Otherwise I might give this issue a go...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKI3qbPh6tQgYjw-yt1c_Cl0PhS6d1Yks5sayHZgaJpZM4MaODh>
.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Summary
If a plugin formatter contains a no-arg constructor and a constructor with one of the valid argument: Appendable, URI, URL or File, always the no-arg constructor is being triggered, even when the valid argument is passed.
Expected Behavior
The no-arg constructor should be a least check where-in if any of the conditions of arg not met, it should fallback to trigger the no-arg constructor if defined.
Current Behavior
Always the no-arg constructor is being triggered.
Possible Solution
The
PluginFactory
should be updated to consider null as a least priority.Steps to Reproduce (for bugs)
My own formatter look like this:
The runner look like as follows:
Context & Motivation
The expectation was that the constructor with
File
argument is called. But, the no-arg constructor is called. The motivation is to when the argument is given, report will be generated at the given location. If not, the no-arg constructor will generate the output at the default location defined by the framework.Your Environment
The text was updated successfully, but these errors were encountered: