AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.08k stars 245 forks source link

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

Open Abiddarris opened 1 month ago

Abiddarris commented 1 month ago

Issue Checklist

Additional terms

Issue explanation

Steps to reproduce:

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

    class Contract {
    
    public void method() throws IOException {}
    }
  2. Extend the Contract class

    
    class MyImplementation extends Contract {

}


3. Long press, select `<>`, select `override superclass method`, select `method()` and `ok`

Result:
```java
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