harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2649) [classlib][swing] j.s.undo.UndoManager.edits has different capacity
Date Tue, 12 Dec 2006 14:49:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2649?page=comments#action_12457743 ] 
            
Alexey A. Ivanov commented on HARMONY-2649:
-------------------------------------------

The default limit for UndoManager is 100, and it should ensure the underlying Vector has its
capacity set to 100.

> [classlib][swing] j.s.undo.UndoManager.edits has different capacity
> -------------------------------------------------------------------
>
>                 Key: HARMONY-2649
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2649
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>
> import javax.swing.undo.UndoManager;
> public class Test {
>     private static class UM extends UndoManager {
>         public int getEditsCapacity() {
>             return edits.capacity();
>         }
>     }
>     
>     public static void main(String[] args) {
>         System.out.println(new UM().getEditsCapacity());
>     }
> }
> Harmony outputs: 10.
> RI outputs: 100.

-- 
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

        

Mime
View raw message