You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Artem Aliev (JIRA)" <ji...@apache.org> on 2006/12/04 13:10:21 UTC

[jira] Created: (HARMONY-2414) [luni] Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

[luni] Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
---------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2414
                 URL: http://issues.apache.org/jira/browse/HARMONY-2414
             Project: Harmony
          Issue Type: Bug
            Reporter: Artem Aliev


J2SE API specifications of java.util.logging.Logger.log() do not define the
format of reported message.
But output messages on Harmony and RI have different format:

The problems may be with the string parsing: 
1. RI message consists of 2 lines, Harmony message - only 1
2. The order of the fields in the output message is different; 
3. The implementatios use different separator of class and method names: 
   RI - ' ' but Harmony - '.'

Code for reproducing:
To reproduce this run HT1 test:
-------------HT1.java------------
import java.util.logging.*;

import junit.framework.TestCase;
public class HT1 extends TestCase {
    public void test001() { 
        Logger logger = Logger.getLogger("someName"); 
        logger.log(Level.INFO, "this is a small test."); 
    } 
} 
------------------


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-2414:
------------------------------------

    Assignee: Tim Ellison

> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Assigned To: Tim Ellison
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-2414.
----------------------------------

    Resolution: Fixed

Patch applied to LOGGING module at repo revision r501092.

Artem, please check that this resolves the issue.


> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Assigned To: Tim Ellison
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2414:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Nellya Udovichenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469382 ] 

Nellya Udovichenko commented on HARMONY-2414:
---------------------------------------------

Verified. Works fine. Thank you!

> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Assigned To: Tim Ellison
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Nellya Udovichenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466500 ] 

Nellya Udovichenko commented on HARMONY-2414:
---------------------------------------------

According the discussion '[classlib][logging] format of log messages':
http://blog.gmane.org/gmane.comp.java.harmony.devel/day=20061224

the attached patch allows to use log messages format as Sun. 
Can it be implemented? 

2006/12/24, Geir Magnusson Jr. <ge...@pobox.com>:
> Yes - there is no problem with duplicating toString() or exception
> messages.  That has been confirmed by Sun.  I expect we'll get the
> same answer for log messages.  Lets go forward with duplicating the
> format, and I'll get written confirmation from Sun that it's ok.
> (Man, I can't wait until their impl is out in open source ;)
>
> geir


> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Nellya Udovichenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nellya Udovichenko updated HARMONY-2414:
----------------------------------------

    Attachment: HARMONY-2414.patch

> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison closed HARMONY-2414.
--------------------------------


Verified by Nellya.


> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>         Assigned To: Tim Ellison
>         Attachments: HARMONY-2414.patch
>
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2414) [luni] Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2414?page=comments#action_12455681 ] 
            
Paulex Yang commented on HARMONY-2414:
--------------------------------------

As long as the record content are exactly same, I think it is not necessary for us to keep same format on this with RI?  Of course just like exception message, it is not harmful to use same format with RI, but at least I think it is not a high priority issue, except some application is broken on this?

> [luni] Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Artem Aliev
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2414) [classlib][logging]Compatibility: message format of java.util.logging.Logger.log() on Harmony diffes from RI message

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2414?page=all ]

Paulex Yang updated HARMONY-2414:
---------------------------------

    Summary: [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message  (was: [luni] Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message)

> [classlib][logging]Compatibility: message format of java.util.logging.Logger.log()  on Harmony diffes from RI message
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2414
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2414
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Artem Aliev
>
> J2SE API specifications of java.util.logging.Logger.log() do not define the
> format of reported message.
> But output messages on Harmony and RI have different format:
> The problems may be with the string parsing: 
> 1. RI message consists of 2 lines, Harmony message - only 1
> 2. The order of the fields in the output message is different; 
> 3. The implementatios use different separator of class and method names: 
>    RI - ' ' but Harmony - '.'
> Code for reproducing:
> To reproduce this run HT1 test:
> -------------HT1.java------------
> import java.util.logging.*;
> import junit.framework.TestCase;
> public class HT1 extends TestCase {
>     public void test001() { 
>         Logger logger = Logger.getLogger("someName"); 
>         logger.log(Level.INFO, "this is a small test."); 
>     } 
> } 
> ------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira