<AWT Dev> Need a hint on how to debug a VM assertion failure caused by my awt code

Anthony Petrov anthony.petrov at oracle.com
Tue Aug 31 01:09:11 PDT 2010


Hi Pete,

On 8/31/2010 12:26 AM, Pete Brunet wrote:
>      jobject self = c->GetPeer(env);  // self is the java side of the
> peer code, i.e. the Component

This statement is incorrect. This function returns a reference to the 
peer object. According to the signature of the getAccessibleContext() 
method, you need to pass an AWT component to it. Try using GetTarget() 
function instead of the GetPeer() for this purpose.


>            public AccessibleContext getAccessibleContext(Component comp) {

--
best regards,
Anthony



More information about the awt-dev mailing list