Hi there,

for some testing, I would need to normally override a private method in my 
subclass.

=== library looks like this (decompiler says)
class Foo {
  private List _bar(List arg) { ... ... ... }
}
=== what I would need to do in my code, conceptually
class MyLogger extends Foo { // I can make sure instance of this class is 
actually used instead of standard Foo
  private List _bar(List arg) {
    println "About to call _bar with $list"
    try {
      def r=super._bar(list)
      println "... returns $r"
      r
    } catch (x) {
      println "... threw $x"
    }
  }
}
===

Is there some dirty trick to make this (or something functionally equivalent) 
actually work (in Groovy 2.4, if the versions differ)?

Thanks a lot!
OC

Reply via email to