This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/17079] New: [PATCH] Log messages whose logging level is equal to the threshold discarded by java.util.logging.Handler


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]