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

Overriding a method that has a primitive array imports the primitive type #1816

Open
5 tasks done
Abiddarris opened this issue May 19, 2024 · 0 comments
Open
5 tasks done
Labels
bug Something isn't working

Comments

@Abiddarris
Copy link

Issue Checklist

  • I confirm that this issue is not a duplicate and hasn't been reported before.
  • I agree to follow the project's code of conduct.
  • I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • I agree to provide all requested details promptly for a comprehensive bug report.

Issue explanation

Steps to reproduce:

  1. Create a class that has a method with byte[] as a parameter
class Contract {

    public void method(byte[] a) {}
}
  1. Create a class that extends Contract
class MyImplementation extends Contract {

}
  1. Long press, select <>, select override superclass method, select method(byte[]) and ok

Result:

import byte;

class MyImplementation extends Contract {


@Override
public void method(byte[] a) {
    super.method(a);
}
}

Expected behavior

class MyImplementation extends Contract {

    @Override
    public void method(byte[] a) {
        super.method(a);
    }

}

Version name

Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 31
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-M127F

Download source

GitHub

Relevant log output

No response

@Abiddarris Abiddarris added the bug Something isn't working label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant