Skip to content

Compilation error: is too long for the constant pool #154

@rlexen

Description

@rlexen

Hi,

What is the limit of number members in a struct? I am trying to compile and I get following errors:

  • SensorDataX60A.java:3667: error: UTF8 representation for string "������������ÝMáb½Z..." is too long for the constant pool

  • SensorDataX60A.java:20883: error: constant string too long
    "\u0000\u0000\u0000\u0000\u0006\u0000\u0006\u0000" +
    ^

Since Java compiler (javac) places a strict limit on the size of string literals to 65535 bytes. Is it because of this limit that it fails to compile?

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