Allow invocations of these method names on This type objects. Don't give bsh.This a chance to override their behavior. If the method is passed here the invocation will actually happen on the bsh.This object via the regular reflective method invocation mechanism. If not, then the met
( String name )
| 430 | as a scripted method call. |
| 431 | */ |
| 432 | static boolean isExposedThisMethod( String name ) |
| 433 | { |
| 434 | return |
| 435 | name.equals("getClass") |
| 436 | || name.equals("invokeMethod") |
| 437 | || name.equals("getInterface") |
| 438 | // These are necessary to let us test synchronization from scripts |
| 439 | || name.equals("wait") |
| 440 | || name.equals("notify") |
| 441 | || name.equals("notifyAll"); |
| 442 | } |
| 443 | |
| 444 | } |
| 445 |
no test coverage detected