Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbeTool 1.12.2 generates uncompilable code #648

Closed
ssmlp001 opened this issue Feb 25, 2019 · 1 comment
Closed

sbeTool 1.12.2 generates uncompilable code #648

ssmlp001 opened this issue Feb 25, 2019 · 1 comment
Labels

Comments

@ssmlp001
Copy link

schema:
<field id="8" name="stopType" type="String16Type" presence="required" sinceVersion="7" />

generates below code

   public void getStopType(final Appendable value)
    {
        if (parentMessage.actingVersion < 7)
        {
            return "";   <---- this doesn't compile
        }

        for (int i = 0; i < 16 ; ++i)
        {
            final int c = buffer.getByte(this.offset + 1112 + i) & 0xFF;
            if (c == 0)
            {
                break;
            }
            try
            {
                value.append(c > 127 ? '?' : (char)c);
            }
            catch (final java.io.IOException e)
            {
                throw new java.io.UncheckedIOException(e);
            }
        }
    }
mjpt777 added a commit that referenced this issue Feb 25, 2019
@mjpt777 mjpt777 added the bug label Feb 25, 2019
@mjpt777
Copy link
Contributor

mjpt777 commented Feb 25, 2019

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants