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

Verify all overloads for result types & signatures #345

Merged

Conversation

dwijnand
Copy link
Collaborator

Instead of taking the first method which "matches type" (which actually
means "has the same parameters") to check whether the result types also
match, check them all.

The impact is visible in the integration test changes: ZipArchive's
underlyingSource is "just" a (generic) signature problem, not a result type
problem. Specifically it still returns a scala.Some, except it's a:

()Lscala/Some<Lscala/reflect/io/AbstractFile;>; rather than
()Lscala/Some<Lscala/reflect/io/ZipArchive;>;

... preceeded by a CollectProblemsTest improvement, a functional test setup fix & cleanup.

dwijnand added 6 commits July 21, 2019 09:41
* use slash syntax, string interpolation & non-infix syntax
* make most things private
* define a utility dirContaining filter
With this, running "IntegrationTest / test" or "functional-tests /
IntegrationTest / test" will no longer run the functional tests.
Also:

* use Source.fromFile
* make case classes final
* use Set if used for contains
* use "msg" instead of "mess"! (lol)
* use collection's addString
Instead of taking the first method which "matches type" (which actually
means "has the same parameters") to check whether the result types also
match, check them all.

The impact is visible in the integration test changes: ZipArchive's
underlyingSource is "just" a (generic) signature problem, not a result
type problem.  Specifically it still returns a scala.Some, except it's a:

> ()Lscala/Some<Lscala/reflect/io/AbstractFile;>; rather than ()Lscala/Some<Lscala/reflect/io/ZipArchive;>;
@dwijnand dwijnand added this to the 0.6.0 milestone Jul 23, 2019
@dwijnand dwijnand merged commit f0de7cd into lightbend-labs:master Jul 23, 2019
@dwijnand dwijnand deleted the fix-result-type-and-signature-checking branch July 23, 2019 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant