Skip to content

GWTTestCase & DevMode unable to handle expression in the form: "some string" + (someCondition ? "aValue" : aNonStringValue) #9694

Closed
@rdeangelis83

Description

@rdeangelis83

helloworld-gwt.zip

GWT version: 2.9.0
Browser (with version): All
Operating System: All


Description

Code in GWTTestCases that contains expression in the form "some string" + (someCondition ? "aValue" : aNonStringValue) can not be compiled in DevMode.

As result an assertion in com.google.gwt.dev.javac.JdtUtil#signature() will be fired.

Steps to reproduce

See attached helloworld-gwt.zip. Or simply add following expression into your code GWTTestCase code and run in in devMode: "some string" + (someCondition ? "aValue" : aNonStringValue)

Known workarounds

Disable assertions solves the problem.
E.g. using the net.ltgt.gwt.maven:gwt-maven-plugin

<enableAssertions>false</enableAssertions>
Links to further discussions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions