This content has been marked as final.
Show 4 replies
-
1. Re: Problem with @Logger
sbublava Feb 6, 2007 4:51 AM (in response to kristof.devos)Can you show us your code? Using @Logger in an abstract super-class works fine for me.
-
2. Re: Problem with @Logger
kristof.devos Feb 6, 2007 4:59 AM (in response to kristof.devos)really basic
in abstract class
@Logger private Log log
same in implementation class, also same name but should not be problem as it is private
in debug I see 2 log instances --> null -
3. Re: Problem with @Logger
sbublava Feb 6, 2007 5:10 AM (in response to kristof.devos)Ahh, I'm using something like this:
abstract class Foo { @Logger private Log log; protected Log getLog() { return this.log; } } class Bar extends Foo { public foobar() { getLog().debug("..."); } }
-
4. Re: Problem with @Logger
gavin.king Feb 6, 2007 9:11 AM (in response to kristof.devos)Actually, yeah, this is a silly limitation. I need to allow multiple logger fields after all. Sillyme. I'll implement that.