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

Print this page

        

@@ -106,11 +106,11 @@
      * @return
      */
     @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;
     }
 
     private Collapsible collapsible = null;