Skip to content

MOAObject measureByteSize() could return negative value if the size is > 2^31-1 #271

@nuwangunasekara

Description

@nuwangunasekara

MOAObject measureByteSize() could return negative value if the size is > 2^31-1:

`

public interface MOAObject extends Serializable {

/**
 * Gets the memory size of this object.
 *
 * @return the memory size of this object
 */
public int measureByteSize();

/**
 * This method produces a copy of this object.
 *
 * @return a copy of this object
 */
public MOAObject copy();

/**
 * Returns a string representation of this object.
 * Used in <code>AbstractMOAObject.toString</code>
 * to give a string representation of the object.
 *
 * @param sb	the stringbuilder to add the description
 * @param indent	the number of characters to indent
 */
public void getDescription(StringBuilder sb, int indent);

}
`

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