You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Elena Semukhina (JIRA)" <ji...@apache.org> on 2006/10/20 15:18:35 UTC
[jira] Created: (HARMONY-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
[drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
---------------------------------------------------------------------------------------------
Key: HARMONY-1931
URL: http://issues.apache.org/jira/browse/HARMONY-1931
Project: Harmony
Issue Type: Bug
Components: DRLVM
Reporter: Elena Semukhina
Priority: Critical
The test fails with the following assertion:
A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
Error
java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
To reproduce the bug run
ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1931?page=all ]
Elena Semukhina updated HARMONY-1931:
-------------------------------------
Attachment: H-1931_ReflectExporter.patch
The test fails on checking accessibility of the public method of a local class. Such methods should be accessible from the class that encloses the local class.
Eclipse compiler provides a private modifier to local classes while Sun's compiler does not provide any modifiers.
I attached the patch which fixes the algorithm of checking accessibility in ReflectExporter.java.
> [drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-1931
> URL: http://issues.apache.org/jira/browse/HARMONY-1931
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Priority: Critical
> Attachments: H-1931_ReflectExporter.patch, Test1931.java, Test1931_2.java
>
>
> The test fails with the following assertion:
> A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
> Error
> java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> To reproduce the bug run
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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] Commented: (HARMONY-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1931?page=comments#action_12449285 ]
Elena Semukhina commented on HARMONY-1931:
------------------------------------------
Verified. All affected tests pass.
> [drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-1931
> URL: http://issues.apache.org/jira/browse/HARMONY-1931
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: Gregory Shimansky
> Priority: Critical
> Attachments: H-1931_ReflectExporter.patch, H-1931kernel_test.patch, Test1931.java, Test1931_2.java
>
>
> The test fails with the following assertion:
> A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
> Error
> java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> To reproduce the bug run
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1931?page=all ]
Gregory Shimansky reassigned HARMONY-1931:
------------------------------------------
Assignee: Gregory Shimansky
> [drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-1931
> URL: http://issues.apache.org/jira/browse/HARMONY-1931
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: Gregory Shimansky
> Priority: Critical
> Attachments: H-1931_ReflectExporter.patch, H-1931kernel_test.patch, Test1931.java, Test1931_2.java
>
>
> The test fails with the following assertion:
> A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
> Error
> java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> To reproduce the bug run
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1931?page=all ]
Elena Semukhina updated HARMONY-1931:
-------------------------------------
Attachment: H-1931kernel_test.patch
As the patch fixes one more issue additionally to the reported one, I attached a H-1931kernel_test.patch with a test class which should be added to drlvm kernel tests.
The test class contains two tests. If compiled with ECJ, both tests should fail and if compiled with javac, the second one should fail. After the fix is applied, both tests should pass on both compilers.
> [drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-1931
> URL: http://issues.apache.org/jira/browse/HARMONY-1931
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Priority: Critical
> Attachments: H-1931_ReflectExporter.patch, H-1931kernel_test.patch, Test1931.java, Test1931_2.java
>
>
> The test fails with the following assertion:
> A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
> Error
> java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> To reproduce the bug run
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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] Resolved: (HARMONY-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-1931?page=all ]
Gregory Shimansky resolved HARMONY-1931.
----------------------------------------
Resolution: Fixed
Patch applied at 473357. Please check that it was applied as expected.
> [drlvm][unit] Classlib test javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
> ---------------------------------------------------------------------------------------------
>
> Key: HARMONY-1931
> URL: http://issues.apache.org/jira/browse/HARMONY-1931
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Elena Semukhina
> Assigned To: Gregory Shimansky
> Priority: Critical
> Attachments: H-1931_ReflectExporter.patch, H-1931kernel_test.patch, Test1931.java, Test1931_2.java
>
>
> The test fails with the following assertion:
> A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest"
> Error
> java.lang.IllegalAccessException: A member of the "class javax.swing.AbstractActionTest$1" with "public" modifiers can not be accessed from the "class javax.swing.AbstractActionTest" at java.lang.reflect.ReflectExporter.checkMemberAccess(Unknown Source) at javax.swing.AbstractActionTest.testClone(AbstractActionTest.java:232) at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:118) at javax.swing.SwingTestCase$1.run(SwingTestCase.java:49) at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:86) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:74) at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:131) at java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
> To reproduce the bug run
> ant -Dtest.jre.home=%DRLVM_HOME% -Dbuild.module=swing -Dtest.case=javax.swing.AbstractActionTest 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