Skip to content

System.out.println is creating error with @Immutable type and @Readonly type #50

@Shreyas-BS

Description

@Shreyas-BS

Issue Description

System.out.println is raising error with @immutable type and @readonly type stating it requires @mutable object and not an object of type @immutable or @readonly

How to reproduce

Create an object of type @immutable and try to print it using System.out.println

Screen Shot / Recording

Screenshot 2024-05-30 at 1 18 42 AM Screenshot 2024-05-30 at 1 20 04 AM

Minimum test case code

import qual.Immutable;

@Immutable
public final class Demo {
    Demo test = new Demo();

    public void printText() {
        System.out.println(test);
    }
    
}

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