harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2078) [classlib][swing][test] j.s.BasicSwingTestCase clean up
Date Thu, 01 Feb 2007 14:55:05 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko updated HARMONY-2078:
-------------------------------------

    Patch Info:   (was: [Patch Available])

The Swing tests could not be compiled after the patch.

Here is the error log:
    [javac] 1. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 66)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 2. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 72)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 3. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 78)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 4. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 84)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 5. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 192)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 6. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 215)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 7. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 221)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 8. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 227)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 9. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 233)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 10. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 271)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 11. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 291)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 12. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 327)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 13. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 342)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 14. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 348)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 15. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 376)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 16. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 382)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 17. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 419)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 18. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 425)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 19. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 455)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 20. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 461)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 21. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 467)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 22. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 473)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultListModelTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 23. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\DefaultListModelTest.java
    [javac]  (at line 557)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] ----------
    [javac] 24. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 91)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 25. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 97)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 26. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 103)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 27. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 131)
    [javac] 	testExceptionalCase(new IllegalStateCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.IllegalStateCase.expectedExceptionClass()
    [javac] ----------
    [javac] 28. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 151)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 29. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 197)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 30. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 203)
    [javac] 	testExceptionalCase(new ArrayIndexOutOfBoundsCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.ArrayIndexOutOfBoundsCase.expectedExceptionClass()
    [javac] ----------
    [javac] 31. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 320)
    [javac] 	testExceptionalCase(new IllegalStateCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.IllegalStateCase.expectedExceptionClass()
    [javac] ----------
    [javac] 32. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 819)
    [javac] 	testExceptionalCase(new NoSuchElementCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.NoSuchElementCase.expectedExceptionClass()
    [javac] ----------
    [javac] 33. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 833)
    [javac] 	testExceptionalCase(new NoSuchElementCase() {
    [javac] 	                        ^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass(),
DefaultMutableTreeNodeTest.NoSuchElementCase.expectedExceptionClass()
    [javac] ----------
    [javac] 34. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 1033)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 35. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 1041)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 36. ERROR in C:\Users\cap\harmony\working_classlib\modules\swing\src\test\api\java\common\javax\swing\tree\DefaultMutableTreeNodeTest.java
    [javac]  (at line 1049)
    [javac] 	public Class<?> expectedExceptionClass() {
    [javac] 	                ^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The return type is incompatible with BasicSwingTestCase.ExceptionalCase.expectedExceptionClass()
    [javac] ----------
    [javac] 36 problems (36 errors)


> [classlib][swing][test] j.s.BasicSwingTestCase clean up
> -------------------------------------------------------
>
>                 Key: HARMONY-2078
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2078
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Alexey A. Ivanov
>            Priority: Minor
>         Attachments: H2078-BasicSwingTestCase.patch
>
>
> I cleaned up code of javax.swing.BasicSwingTestCase class.
> The following modification were performed:
> * restricted generic parameters,
> * the code which is supposed to be run on the Event Dispatch Thread was refactored to
ensure it is always executed on the EDT.

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


Mime
View raw message