AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Overriding a superclass method doesn't include the `Exception`

Open Abiddarris opened this issue 1 year ago • 0 comments

Issue Checklist

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

Additional terms

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

Issue explanation

Steps to reproduce:

  1. Create a class that has one method with throws IOException
class Contract {

    public void method() throws IOException {}
}
  1. Extend the Contract class
class MyImplementation extends Contract {

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

Result:

class MyImplementation extends Contract {

    @Override
    public void method() {
        super.method();
    }
}

Expected behavior

class MyImplementation extends Contract {

    @Override
    public void method() throws IOException {
        super.method();
    }
}

Version name

Version : v2.7.1-beta (27102) CI Build : true Branch : main Commit : 55bb46b31 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 avatar May 19 '24 10:05 Abiddarris