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: undefined reference


On Thu, Jun 24, 2004 at 10:53:32AM +0100, Andrew Haley wrote:
> Marco Herrn writes:
>  > So when I call 
>  > 
>  >    gcj -c /usr/share/java/log4j-1.2.jar -o log4j-1.2.o
>  > 
>  > I get the following error:
>  > 
>  > ----/----
>  > org/apache/log4j/AppenderSkeleton.java: In class `org.apache.log4j.AppenderSkeleton':
>  > org/apache/log4j/AppenderSkeleton.java: In method `org.apache.log4j.AppenderSkeleton.finalize()':
>  > org/apache/log4j/AppenderSkeleton.java:115: error: class `org.apache.log4j.AppenderSkeleton' has no method named 'close' matching signature '()V'
>  > org/apache/log4j/AppenderSkeleton.java:126: confused by earlier errors, bailing out
>  > ----/----
>  > 
>  > So what is the problem here?
> 
> Well, _does_ org.apache.log4j.AppenderSkeleton have a method close() ?
> If not, that's a bug in log4j, because AppenderSkeleton.finalize() is
> calling it.  


Yes it does. But not directly. org.apache.log4j.AppenderSkeleton is an abstract class
that implements the org.apache.log4j.Appender interface. finalize() is
defined in AppenderSkeleton, close() is defined in Appender. So maybe
this is a bug in gcj that it doesn't recognize the close() method of
org.apache.log4j.Appender?

Marco
-- 
Experience is something you don't get until just after you need it.
--
Marco Herrn              _  ___      o             '       (_)<   _ _
                         _>(__'>            o          0         (_X %
                                   >(_`>  O         o  _; _;'7^'_ \;\ %
(GnuPG/PGP-crypted mail preferred)         _;\ _.\ _.';;) ;,;_/;
Key ID: 0x94620736                  _  _'./_\('))_; );/\)}/`fsc


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