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/24 15:04:18 UTC
[jira] Updated: (HARMONY-1931) [drlvm][unit] Classlib test
javax.swing.AbstractActionTest.testClone fails on drlvm r. 465143
[ 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