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

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

Open
Shreyas-BS opened this issue May 30, 2024 · 1 comment

Comments

@Shreyas-BS
Copy link

Shreyas-BS commented May 30, 2024

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);
    }
    
}
@Ao-senXiong
Copy link

@Shreyas-BS Thanks for your report, can you also minimize the example and paste the code here?

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

No branches or pull requests

2 participants