Error: Non-static method overrides static method

Robin Rawson-Tetley enquiries@sheltermanager.homeip.net
Thu Jun 24 14:32:00 GMT 2004


> FrameworkFactory.java: In class `FrameworkFactory':
> In method `FrameworkFactory.getFramework()':
> error: non-static method 'getLoggingName()' overrides static method

I've noticed this too and forgot to report it (instead, I just patched
the offending source). It occurs in compiling the Mozilla integration of
SWT 3.0Mx
It seems that GCJ barfs if a subclass redeclares a method with the same
name as a static method in the base class. Under regular javac, this is 
allowed and is no problem (since you have to call the methods in two 
different ways).
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://gcc.gnu.org/pipermail/java/attachments/20040624/17782236/attachment.sig>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /