This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error: Non-static method overrides static method


> These definitions all look at accessibility, though, so in some
> situations you can have methods with the same name and signature
> without getting an error.

That would explain it - the problem I see is with a protected static
method overriding a public instance method. I just patch the code around
it since it's just one offending class in SWT.

> ... where `method' is a static method.  This evaluates `expr' for side
> effects and then calls the static method.  Goofy, perhaps useless, but
> there it is.

Very interesting - I'm sure there must be a use for it (I'm going to
play with this now).

Cheers,

Rob


-- 
=====================================================
Robin Rawson-Tetley

Animal Shelter Manager (http://sheltermanager.sf.net)
SwingWT                (http://swingwt.sf.net)

I prefer encrypted email.
Download my public key at: http://rawsontetley.ath.cx/sfpk.asc

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]