Product Information > JADE Development Environment User’s Guide > Chapter 14 - Adding and Maintaining Interfaces > Compiling an Interface Method

Compiling an Interface Method

You can change interface method signatures at any time. If the interface is currently implemented, the mapping method for the implementing class is not compatible and therefore has a compilation error. See also "Using the Method Status List Browser", in Chapter 4.

When you change the signature of an interface method that has one or more mappings, the message box shown in the following diagram is then displayed.

Click the Yes button to recompile the mapped method or methods immediately. Click the No button if you do not want the implementing method or methods recompiled immediately.

You must then change the signature of affected methods and then recompile them (by pressing F8 in the editor pane of each method implementor in the Class Browser or Status List Browser or by selecting the Compile command from the Methods menu).

If the interface method signature change results in a compile error in the implementing class, the message box shown in the following diagram is then displayed.

Click the Yes button to display the methods in implementing classes whose signatures need updating before recompilation. Click the No button if you do not want to view and update the methods in error now.

To automatically update the class method signature in the method in error (from the Class Browser) so that it matches that of its interface method, position the caret after the ( opening parenthesis symbol and then press CTRL+1, CTRL+2, or CTRL+3.

The correct signature for the mapped method is then inserted.

For more details about compiling methods, see "Compiling All Methods Defined in a Class, Primitive Type, or Interface", in Chapter 3, and "Compiling Methods", in Chapter 4.