-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider overloads when applying method mappings (#8)
* Consider overloads when applying method mappings * Add a test case for the partial match case. --------- Co-authored-by: Sebastian Hartte <shartte@users.noreply.github.com>
- Loading branch information
1 parent
789d2a5
commit 4780259
Showing
9 changed files
with
132 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.*; | ||
|
||
public class TestClass { | ||
// This method tests that we consider parchment entries that are | ||
// for methods with strictly fewer parameter. And we prioritize | ||
// the entries with the most overlap. | ||
public void m(String a, List<String> a2, int a3) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": "1.1.0", | ||
"classes": [ | ||
{ | ||
"name": "TestClass", | ||
"methods": [ | ||
{ | ||
"name": "m", | ||
"descriptor": "(Ljava/lang/String;)V", | ||
"parameters": [ | ||
{ | ||
"index": 1, | ||
"name": "wrong" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "m", | ||
"descriptor": "(Ljava/lang/String;Ljava/util/List;)V", | ||
"parameters": [ | ||
{ | ||
"index": 1, | ||
"name": "a" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.*; | ||
|
||
public class TestClass { | ||
// This method tests that we consider parchment entries that are | ||
// for methods with strictly fewer parameter. And we prioritize | ||
// the entries with the most overlap. | ||
public void m(String a1, List<String> a2, int a3) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters