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

Overload resolution ambiguity for LicenseBundleNormalizer #320

Open
MasterCarl opened this issue Sep 6, 2024 · 0 comments
Open

Overload resolution ambiguity for LicenseBundleNormalizer #320

MasterCarl opened this issue Sep 6, 2024 · 0 comments

Comments

@MasterCarl
Copy link

Between versions 2.7 and 2.9, a new constructor for LicenseBundleNormalizer was added to src/main/groovy/com/github/jk1/license/filter/LicenseBundleNormalizer.groovy. This causes an overload resolution ambiguity if null is passed as bundlePath:

In build.gradle.kts:

Script compilation error:

  Line 141:     filters = arrayOf<DependencyFilter>(LicenseBundleNormalizer(null, true))
                                                    ^ Overload resolution ambiguity: 
                                                        public constructor LicenseBundleNormalizer(p0: InputStream!, p1: Boolean) defined in com.github.jk1.license.filter.LicenseBundleNormalizer
                                                        public constructor LicenseBundleNormalizer(p0: String!, p1: Boolean) defined in com.github.jk1.license.filter.LicenseBundleNormalizer

Do you have any advice on how to proceed here?

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

1 participant