public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17079] New: [PATCH] Log messages whose logging level is equal to the threshold discarded by java.util.logging.Handler
@ 2004-08-18 11:58 greenrd at greenrd dot org
  2004-08-18 14:52 ` [Bug libgcj/17079] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: greenrd at greenrd dot org @ 2004-08-18 11:58 UTC (permalink / raw)
  To: java-prs

There is a typo in java/util/logging/Handler.java. To be consistent with the
javadoc comment, which requires log messages whose log level is AT the log
threshold to be accepted, apply this patch:

--- libjava/java/util/logging/Handler.java~     2004-08-18 12:57:00.000000000 +0100
+++ libjava/java/util/logging/Handler.java      2004-08-18 12:56:21.000000000 +0100
@@ -378,7 +378,7 @@
    */
   public boolean isLoggable(LogRecord record)
   {
-    if (record.getLevel().intValue() <= level.intValue())
+    if (record.getLevel().intValue() < level.intValue())
       return false;
      
     if (filter != null)

-- 
           Summary: [PATCH] Log messages whose logging level is equal to the
                    threshold discarded by java.util.logging.Handler
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: greenrd at greenrd dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17079


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-18 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-18 11:58 [Bug libgcj/17079] New: [PATCH] Log messages whose logging level is equal to the threshold discarded by java.util.logging.Handler greenrd at greenrd dot org
2004-08-18 14:52 ` [Bug libgcj/17079] " pinskia at gcc dot gnu dot org
2004-08-18 15:51 ` cvs-commit at gcc dot gnu dot org
2004-08-18 15:55 ` mckinlay at redhat dot com
2004-08-18 15:55 ` mckinlay at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).