harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mackie Mathew" <mcclou...@gmail.com>
Subject Re: [harmony-demo-1] IllegalAccessError in DefaultDesktopManagerTest
Date Mon, 19 May 2008 13:40:55 GMT
This is strange. I'm running the tests in Eclipse and the testSetWasIcon,
testSetGetPreviousBounds, testGetBoundsForIconOf, testRemoveIconFor and
testIconifyDeiconifyFrame fail due to this error.

On Mon, May 19, 2008 at 3:04 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
> >
>



-- 
Regards,

Tharindu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message