(IFn vf, Object val)
| 27 | } |
| 28 | |
| 29 | void validate(IFn vf, Object val){ |
| 30 | try |
| 31 | { |
| 32 | if(vf != null && !RT.booleanCast(vf.invoke(val))) |
| 33 | throw new IllegalStateException("Invalid reference state"); |
| 34 | } |
| 35 | catch(RuntimeException re) |
| 36 | { |
| 37 | throw re; |
| 38 | } |
| 39 | catch(Exception e) |
| 40 | { |
| 41 | throw new IllegalStateException("Invalid reference state", e); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void validate(Object val){ |
| 46 | validate(validator, val); |
no test coverage detected