logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <nore...@qos.ch>
Subject JDK 1.2 Compilation problems
Date Fri, 21 May 2004 10:48:33 GMT

Hi again,

Compiling log4j under JDK 1.2 results remarkably few erros:

build.core:
     [javac] Compiling 7 source files to 
C:\home\cgu\ASF\logging-log4j\dist\classes
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketHubReceiver.java:222: 
Method getListeners(java.lang.Class) not
  found in class javax.swing.event.EventListenerList.
     [javac]       (SocketNodeEventListener[]) listenerList.getListeners(
     [javac]                                                            ^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketNode.java:201: 
Method getListeners(java.lang.Class) not found
in class javax.swing.event.EventListenerList.
     [javac]       listenerList.getListeners(SocketNodeEventListener.class);
     [javac]                                ^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketNode.java:218: 
Method getListeners(java.lang.Class) not found
in class javax.swing.event.EventListenerList.
     [javac]       listenerList.getListeners(SocketNodeEventListener.class);
     [javac]                                ^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\SocketReceiver.java:228: 
Method getListeners(java.lang.Class) not fo
und in class javax.swing.event.EventListenerList.
     [javac]             (SocketNodeEventListener[]) listenerList.getListeners(
     [javac]                                                                  ^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\net\UDPReceiver.java:210: 
Variable active in class org.apache.log4j.plug
ins.PluginSkeleton not accessible from inner class 
org.apache.log4j.net.UDPReceiver. UDPReceiverThread.
     [javac]       active = true;
     [javac]       ^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\plugins\PluginRegistry.java:111: 
Method getListeners(java.lang.Class) no
t found in class javax.swing.event.EventListenerList.
     [javac]     PluginListener[] listeners = 
(PluginListener[])listenerList.getListeners(PluginListener.class);
     [javac] 
^
     [javac] 
C:\home\cgu\ASF\logging-log4j\src\java\org\apache\log4j\plugins\PluginRegistry.java:131: 
Method getListeners(java.lang.Class) no
t found in class javax.swing.event.EventListenerList.
     [javac]     PluginListener[] listeners = 
(PluginListener[])listenerList.getListeners(PluginListener.class);
     [javac] 
^
     [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 = new HashMap();

As for chainsaw, it generated a long list of errors. We should perhaps
assume JDK 1.3 or later for Chainsaw?


-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message