Chris Pickett wrote:
I was wondering if some other Classpath developers could confirm
this bug. I'm trying to rule it out as being JC-specific. The problem
is that the Logger has a level of null instead of FINE:

With JDK 1.4.2:

  [EMAIL PROTECTED] level=FINE
  Feb 5, 2005 2:53:25 PM LogInit main
  INFO: PASS

With JC:

[EMAIL PROTECTED] level=null

When I run your program with java-1.4.2, java-1.5.0, and sablevm-1.1.9, I get the warning message printed followed by a stack trace.

Argh! I somehow attached the wrong test case. Sorry about that. Please try this one instead...

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com
import java.util.*;
import java.util.logging.*;
import java.io.*;
public class LogInit
{
    public static void main(String[] args) throws Exception
    {
        String pfile = "handlers=java.util.logging.ConsoleHandler\n"
          + "java.util.logging.ConsoleHandler.level=FINEST\n"
          + "LogInit.level=FINE\n";
        LogManager.getLogManager().readConfiguration(
          new ByteArrayInputStream(pfile.getBytes("UTF-8")));
        Logger s_log = Logger.getLogger(LogInit.class.getName());
        System.out.println("s_log="+s_log+" level="+s_log.getLevel());
        s_log.info("PASS");
    }
}
_______________________________________________
Classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to