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

Could not find method with parameter "sun.nio.fs.UnixPath, [I" #590

Open
1037123498 opened this issue Dec 13, 2023 · 0 comments
Open

Could not find method with parameter "sun.nio.fs.UnixPath, [I" #590

1037123498 opened this issue Dec 13, 2023 · 0 comments

Comments

@1037123498
Copy link

why did i get this error?

ts:

const target = '/path';
const Argtest = java.import('com.Argtest');
const targetPath = java.callStaticMethodSync('java.nio.file.Paths', 'get', target)
new Argtest().test2Sync(targetPath, java.newArray('int', [0]));

Error: Could not find method "test2(sun.nio.fs.UnixPath, [I)" on class "class com.Argtest". Possible matches:
public void com.Argtest.test2(java.nio.file.Path,int[])

java code:

public class Argtest {
public void test(Path path) {
//
}
public void test2(Path path, int... a) {
//
}
}

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