Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ToolStripMenuButton AssertionError

    Hi,

    I need to report a possible bug in ToolStripMenuButton.

    Problem is when ToolStripMenuButton is added to ToolStrip and then getMembers() is called.
    It throws AssertionError in MenuButton.java in line 106.

    The reason is probably because ToolStripMenuButton does not extend MenuButton.

    Simple test case:
    Code:
    ToolStrip toolStrip = new ToolStrip();
    toolStrip.addButton(new ToolStripButton("test1"));        
    toolStrip.addMenuButton(new ToolStripMenuButton("test2"));
    Canvas[] c = toolStrip.getMembers();        
    this.addChild(toolStrip);
    Tested on: SmartGWT 12.0p 20180918

    Best regards
    Mariusz Goch
    Last edited by pH4Lk0n; 18 Oct 2018, 13:16.

    #2
    We're not reproducing any issue with that code snippet. Are you running SGWT from Eclipse? Are you running in "Super" DevMode" or "Classic" DevMode? What browser are you using?

    Can you provide complete, runnable sample code such as a modified BuiltInDS.java from the BuiltInDS SGWTEE sample? Or perhaps you can modify a sample from the SGWT LGPL Showcase?

    Can you include the complete error log reporting the AssertionError you mention?
    Last edited by Isomorphic; 24 Oct 2018, 09:36.

    Comment

    Working...
    X