< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m

Print this page

        

*** 537,552 **** if (peer == NULL) { NSLog(@"Apple AWT : Error AWTView:awtComponent got null peer from CPlatformView"); JNFDumpJavaStack(env); return NULL; } ! return JNFGetObjectField(env, peer, jf_Target); } - (id)getAxData:(JNIEnv*)env { ! return [[[JavaComponentAccessibility alloc] initWithParent:self withEnv:env withAccessible:[self awtComponent:env] withIndex:-1 withView:self withJavaRole:nil] autorelease]; } - (NSArray *)accessibilityAttributeNames { return [[super accessibilityAttributeNames] arrayByAddingObject:NSAccessibilityChildrenAttribute]; --- 537,557 ---- if (peer == NULL) { NSLog(@"Apple AWT : Error AWTView:awtComponent got null peer from CPlatformView"); JNFDumpJavaStack(env); return NULL; } ! jobject comp = JNFGetObjectField(env, peer, jf_Target); ! (*env)->DeleteLocalRef(env, peer); ! return comp; } - (id)getAxData:(JNIEnv*)env { ! jobject jcomponent = [self awtComponent:env]; ! id ax = [[[JavaComponentAccessibility alloc] initWithParent:self withEnv:env withAccessible:jcomponent withIndex:-1 withView:self withJavaRole:nil] autorelease]; ! (*env)->DeleteLocalRef(env, jcomponent); ! return ax; } - (NSArray *)accessibilityAttributeNames { return [[super accessibilityAttributeNames] arrayByAddingObject:NSAccessibilityChildrenAttribute];
< prev index next >