Skip to content

Unexpected error in covering effects under owner regions #2

@reprogrammer

Description

@reprogrammer

I don't understand why dpjc reports the following error message.

Effect summary does not cover [invokes <>m2(C<P3>) with [writes P3 : * : [?] : *]]
C.java:2: bad effect summary
    public <region P2>void m1()
                           ^
1 error

class C<region P1> {
    public <region P2>void m1()
    writes P2 : * {
            m2(new C<P2>());
    }

    private static <region P3>void m2(final C<P3> c)
    writes c : [?] : * {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions