Hi,
Recent commit eliminates the need for the (Level) cast when using the Level.setLevel method. So you don't have to change anything. :-) Regards, Ceki At 19:14 13.02.2002 +0100, Ceki Gülcü wrote: >Hello, > >The message generated by the compiler says it all: > >Incompatible type for method. Explicit cast needed to convert > org.apache.log4j.Priority to org.apache.log4j.Level. > [javac] _creator.getRootLogger().setLevel(Level.INFO); > >The solution is to change > > _creator.getRootLogger().setLevel(Level.INFO); > >to > > _creator.getRootLogger().setLevel((Level) Level.INFO); > >This cast is always safe because log4j 1.2 will never produce anything >but Level objects, never Priority objects. Surprisingly enough this >cast was not necessary in log4j 1.2 alpha. It is required in 1.2 beta >and later to ensure runtime compatibility with log4j 1.1.3. > > >Hope this helps, Ceki > >At 12:41 13.02.2002 -0500, Sam Ruby wrote: >>FYI >> >>- Sam Ruby >>---------------------- Forwarded by Sam Ruby/Raleigh/IBM on 02/13/2002 >>12:39 PM --------------------------- >> >>Sam Ruby/Raleigh/IBM@IBMUS on 02/12/2002 09:04:46 AM >> >>Please respond to [EMAIL PROTECTED] >> >>To: [EMAIL PROTECTED] >>cc: >>Subject: [GUMP] Build Failure - Poi >> >> >> >>---------------------------------------------------- >>This email is autogenerated from the output from: >><http://jakarta.apache.org/builds/gump/2002-02-12/jakarta-poi.html> >>---------------------------------------------------- >> >>Buildfile: build.xml >> >>init: >> [echo] -------------------------------------------------------------- >> [echo] POI [2001-2002] >> [echo] -------------------------------------------------------------- >> [echo] Building with Apache Ant version 1.5alpha compiled on February >> 12 2002 >> [echo] using build file /home/rubys/jakarta/jakarta-poi/build.xml >> [echo] -------------------------------------------------------------- >> [mkdir] Created dir: /home/rubys/jakarta/jakarta-poi/tools/anttasks >> [javac] Compiling 5 source files to >> /home/rubys/jakarta/jakarta-poi/tools/anttasks >> >>prepare: >> [mkdir] Created dir: /home/rubys/jakarta/jakarta-poi/build/poi >> >>generate-java-code-check: >> >>generate-java-code: >> >>prepare-src: >> [mkdir] Created dir: /home/rubys/jakarta/jakarta-poi/build/poi/src >> [mkdir] Created dir: /home/rubys/jakarta/jakarta-poi/build/poi/classes >> [copy] Copying 203 files to >> /home/rubys/jakarta/jakarta-poi/build/poi/src >> [mkdir] Created dir: >> /home/rubys/jakarta/jakarta-poi/build/poi/scratchpad/src >> [mkdir] Created dir: >> /home/rubys/jakarta/jakarta-poi/build/poi/scratchpad/classes >> [copy] Copying 3 files to >> /home/rubys/jakarta/jakarta-poi/build/poi/scratchpad/src >> >>compile: >> [copy] Copying 1 file to >> /home/rubys/jakarta/jakarta-poi/build/poi/classes >> [echo] Compiling with Java 1.3, debug on, optimize off, deprecation >> off >> [javac] Compiling 197 source files to >> /home/rubys/jakarta/jakarta-poi/build/poi/classes >> [javac] >>/home/rubys/jakarta/jakarta-poi/build/poi/src/org/apache/poi/util/POILogFactory.java:120: >> >> Incompatible type for method. Explicit cast needed to convert >> org.apache.log4j.Priority to org.apache.log4j.Level. >> [javac] _creator.getRootLogger().setLevel(Level.INFO); >> [javac] ^ >> [javac] 1 error >> >>BUILD FAILED >>/home/rubys/jakarta/jakarta-poi/build.xml:391: Compile failed, messages >>should have been provided. >> >>Total time: 34 seconds >> >> >> >>-- >>To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > >-- >Ceki Gülcü > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- Ceki Gülcü -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>