harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Fedotov" <alexei.fedo...@gmail.com>
Subject Re: [harmony-demo-1] IllegalAccessError in DefaultDesktopManagerTest
Date Mon, 19 May 2008 13:20:49 GMT
Yes, Alexey. I believe you are 100% correct. The IllegalAccessError
frequently happens if a test is run under Eclipse without a proper
configuration. Tharindu, please check that the path to the test and
junit are within the boot class path in your debugging environment.

On Mon, May 19, 2008 at 1:34 PM, Alexey Varlamov
<alexey.v.varlamov@gmail.com> wrote:
> I could not reproduce failures, all 20 testcases of
> DefaultDesktopManagerTest passed. Anyway, such error means test class
> appeared in different runtime package than DefaultDesktopManager
> class, i.e. was defined with different classloader - might be an
> environment issue if test is run manually?
>
> Regards,
> Alexey
>
> 2008/5/17, Mackie Mathew <mccloud35@gmail.com>:
>> Even though the tests and the source is in the same package, there's an
>> IllegalAccessError in some of the tests in DefaultDesktopManagerTest. I
>> cannot debug the tests cause when the EventDispatchThread takes over the
>> debugging process hangs. Is there a solution to this?
>>
>> java.lang.IllegalAccessError:
>> javax/swing/DefaultDesktopManager.wasIcon(Ljavax/swing/JInternalFrame;)Z
>> while resolving constant pool entry at index 85 in class
>> javax/swing/DefaultDesktopManagerTest
>>    at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>>    at java.lang.reflect.Method.invoke(Method.java:317)
>>    at junit.framework.TestCase.runTest(TestCase.java:164)
>>    at junit.framework.TestCase.runBare(TestCase.java:130)
>>    at
>> javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
>>    at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
>>    at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
>>    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
>>    at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:138)
>>    at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
>>    at
>> java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
>>    at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
>>
>>
>>
>>
>> --
>> Regards,
>>
>> Tharindu
>>
>



-- 
With best regards,
Alexei

Mime
View raw message