-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swiftgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededmode:ffmmode:jni
Description
Reproduction
It seems that overloads currently produce incorrect Java code. This is reproducible by creating:
public class OverloadSample {
public func takeValue(a: String) {}
public func takeValue(b: String) {}
}
in Samples/SwiftJavaExtractFFMSampleApp/Sources/MySwiftLibrary/OverloadSample.swift and running ./gradlew :Samples:SwiftJavaExtractFFMSampleApp:compileJava.
The compilation fails with:
OverloadSample.java:129: error: method takeValue(String) is already defined in class OverloadSample
public void takeValue(java.lang.String b) {
Metadata
Metadata
Assignees
Labels
feature:jextractIssues related to jextract-swiftIssues related to jextract-swiftgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededmode:ffmmode:jni