tools/Jemmy/JemmyFX/src/org/jemmy/fx/control/MenuWrap.java

Print this page

        

@@ -71,11 +71,11 @@
     }
 
     @As(MenuItem.class)
     public StringMenuOwner<MenuItem> asMenuOwner() {
         if (menuOwner == null) {
-            menuOwner = new StringMenuOwnerImpl(this, this.as(Parent.class, Menu.class));
+            menuOwner = new StringMenuOwnerImpl(this, (Parent <Menu>)this.as(Parent.class, Menu.class));
         }
         return menuOwner;
     }
 
     @Property(SHOWING_PROPERTY_NAME)