Skip to content

MatExporter NeptusProperty(editable = false) errors #137

@krisgry

Description

@krisgry

Hi,
I get some errors related to MAX_PLAINTEXT_RAWDATA_LENGHT and other NeptusProperty defined as editable=false. Should they be set to editable=true instead (since they are in fact editable)? This is in MatExporter (src/java/pt/lsts/neptus/mra/exporters/MatExporter.java).

Take this with a grain of salt, as I'm no java or neptus expert 😄

Error:
java.lang.IllegalAccessException: Can not set static final int field pt.lsts.neptus.mra.exporters.MatExporter.MAX_PLAINTEXT_RAWDATA_LENGHT to java.lang.Integer

Root Cause:
MatExporter.java has three static final constants annotated with @NeptusProperty(editable = false):

@NeptusProperty(editable = false)
private static final int MAX_PLAINTEXT_RAWDATA_LENGHT = 256;
@NeptusProperty(editable = false)
private static final int MAX_ENUMERATED_LENGHT = 50;
@NeptusProperty(editable = false)
private static final int MAX_BITFIELD_LENGHT = 256;

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