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

[jira] Created: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

[classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
---------------------------------------------------------------------------------------

                 Key: HARMONY-2580
                 URL: http://issues.apache.org/jira/browse/HARMONY-2580
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Pavel Dolgov
            Priority: Minor


Test case:
--------------
import javax.swing.JFileChooser;

import junit.framework.TestCase;

public class TheTest extends TestCase {

    public static void main(String args[]) {
        junit.textui.TestRunner.run(TheTest.class);
    }

    public void testcase1() {
        JFileChooser fc = new JFileChooser();
        assertNull(fc.getName());
    }
}


-- 
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-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Pavel Dolgov updated HARMONY-2580:
----------------------------------

    Description: 
The same result for javax.swing.table.DefaultTableCellRenderer

Test case:
--------------
import javax.swing.JFileChooser;
import javax.swing.table.DefaultTableCellRenderer;

import junit.framework.TestCase;

public class TheTest extends TestCase {

    public static void main(String args[]) {
        junit.textui.TestRunner.run(TheTest.class);
    }

    public void testcase1() {
        JFileChooser fc = new JFileChooser();
        assertNull(fc.getName());
    }

    public void testcase2() {
        DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
        assertNull(cr.getName());
    }
}


  was:
Test case:
--------------
import javax.swing.JFileChooser;

import junit.framework.TestCase;

public class TheTest extends TestCase {

    public static void main(String args[]) {
        junit.textui.TestRunner.run(TheTest.class);
    }

    public void testcase1() {
        JFileChooser fc = new JFileChooser();
        assertNull(fc.getName());
    }
}



> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

-- 
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-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko updated HARMONY-2580:
-------------------------------------

    Attachment: Harmony-2580-DefaultTableCellRenderer.patch

A patch to DefaultTableCellRenderer

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-JFileChooser.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Assigned: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Alexei Zakharov reassigned HARMONY-2580:
----------------------------------------

    Assignee: Alexei Zakharov

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Updated: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Alexei Zakharov updated HARMONY-2580:
-------------------------------------

    Patch Info: [Patch Available]

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Updated: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko updated HARMONY-2580:
-------------------------------------

    Attachment: Harmony-2580-JFileChooser.patch

A patch to JFileChooser

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-JFileChooser.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Resolved: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Alexei Zakharov resolved HARMONY-2580.
--------------------------------------

    Resolution: Fixed

Thanks Sergey & Pavel. Patches were applied at the revision 516415. Please verify they were applied as expected. 

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Commented: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko commented on HARMONY-2580:
------------------------------------------

Verified

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Commented: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko commented on HARMONY-2580:
------------------------------------------

In my two patches I suggest simply to set name to null while initializing components. Harmony implementation doesn't allow component names to be nulls. Instead it always gives some name automatically if it's null. 

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-JFileChooser.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Updated: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko updated HARMONY-2580:
-------------------------------------

    Attachment: Harmony-2580-DefaultTableCellRendererTest.patch

A patch to DefaultTableCellRendererTest

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Updated: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Sergey Krivenko updated HARMONY-2580:
-------------------------------------

    Attachment: Harmony-2580-JFileChooserTest.patch

A patch to JFileChooserTest

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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


[jira] Closed: (HARMONY-2580) [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null

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

Alexei Zakharov closed HARMONY-2580.
------------------------------------


closed

> [classlib][swing] javax.swing.JFileChooser.getName() returns class name instead of null
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2580
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2580
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Pavel Dolgov
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-2580-DefaultTableCellRenderer.patch, Harmony-2580-DefaultTableCellRendererTest.patch, Harmony-2580-JFileChooser.patch, Harmony-2580-JFileChooserTest.patch
>
>
> The same result for javax.swing.table.DefaultTableCellRenderer
> Test case:
> --------------
> import javax.swing.JFileChooser;
> import javax.swing.table.DefaultTableCellRenderer;
> import junit.framework.TestCase;
> public class TheTest extends TestCase {
>     public static void main(String args[]) {
>         junit.textui.TestRunner.run(TheTest.class);
>     }
>     public void testcase1() {
>         JFileChooser fc = new JFileChooser();
>         assertNull(fc.getName());
>     }
>     public void testcase2() {
>         DefaultTableCellRenderer cr = new DefaultTableCellRenderer();
>         assertNull(cr.getName());
>     }
> }

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