Return-Path: Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: (qmail 67652 invoked from network); 21 May 2004 10:48:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 May 2004 10:48:37 -0000 Received: (qmail 96071 invoked by uid 500); 21 May 2004 10:48:35 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 96019 invoked by uid 500); 21 May 2004 10:48:34 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 96002 invoked by uid 98); 21 May 2004 10:48:34 -0000 Received: from noreply@qos.ch by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(80.238.41.184):. Processed in 0.557623 secs); 21 May 2004 10:48:34 -0000 X-Qmail-Scanner-Mail-From: noreply@qos.ch via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(80.238.41.184):. Processed in 0.557623 secs) Received: from unknown (HELO mail.qos.ch) (80.238.41.184) by hermes.apache.org with SMTP; 21 May 2004 10:48:33 -0000 Received: from kal.qos.ch (kal [192.168.1.3]) by mail.qos.ch (Postfix) with ESMTP id B95661EC1CB for ; Fri, 21 May 2004 12:54:58 +0200 (CEST) Message-Id: <6.0.3.0.0.20040521124700.0338b820@mail.qos.ch> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Fri, 21 May 2004 12:48:33 +0200 To: log4j-dev@logging.apache.org From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: JDK 1.2 Compilation problems Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi again, Compiling log4j under JDK 1.2 results remarkably few erros: build.core: [javac] Compiling 7 source files to=20 C:\home\cgu\ASF\logging-log4j\dist\classes [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketHubReceive= r.java:222:=20 Method getListeners(java.lang.Class) not found in class javax.swing.event.EventListenerList. [javac] (SocketNodeEventListener[]) listenerList.getListeners( [javac] ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketNode.java:= 201:=20 Method getListeners(java.lang.Class) not found in class javax.swing.event.EventListenerList. [javac] listenerList.getListeners(SocketNodeEventListener.class); [javac] ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketNode.java:= 218:=20 Method getListeners(java.lang.Class) not found in class javax.swing.event.EventListenerList. [javac] listenerList.getListeners(SocketNodeEventListener.class); [javac] ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketReceiver.j= ava:228:=20 Method getListeners(java.lang.Class) not fo und in class javax.swing.event.EventListenerList. [javac] (SocketNodeEventListener[])= listenerList.getListeners( [javac] = ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\UDPReceiver.java= :210:=20 Variable active in class org.apache.log4j.plug ins.PluginSkeleton not accessible from inner class=20 org.apache.log4j.net.UDPReceiver. UDPReceiverThread. [javac] active =3D true; [javac] ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\plugins\PluginRegist= ry.java:111:=20 Method getListeners(java.lang.Class) no t found in class javax.swing.event.EventListenerList. [javac] PluginListener[] listeners =3D=20 (PluginListener[])listenerList.getListeners(PluginListener.class); [javac]=20 ^ [javac]=20 C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\plugins\PluginRegist= ry.java:131:=20 Method getListeners(java.lang.Class) no t found in class javax.swing.event.EventListenerList. [javac] PluginListener[] listeners =3D=20 (PluginListener[])listenerList.getListeners(PluginListener.class); [javac]=20 ^ [javac] 7 errors These errors are due to the usage of javax.swing.event.EventListenerList. I think we could easily replace this class. Paul, what is your take on the matter? Other errors included the usage of the javax.rmi.PortableRemoteObject class which is not part of JDK 1.2. This problem affects only the o.a.l.db.JNDIConnectionSource class. In o.a.l.xml, the XMLDecoder failed to compile because it uses Collections.EMPTY_MAP to initialize the additionalProperties field. I changed it to private Map additionalProperties =3D new HashMap(); As for chainsaw, it generated a long list of errors. We should perhaps assume JDK 1.3 or later for Chainsaw? --=20 Ceki G=FClc=FC For log4j documentation consider "The complete log4j manual" ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp =20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org