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

Unexpected error in covering effects under owner regions #2

Open
reprogrammer opened this issue Nov 12, 2010 · 1 comment
Open

Unexpected error in covering effects under owner regions #2

reprogrammer opened this issue Nov 12, 2010 · 1 comment

Comments

@reprogrammer
Copy link
Collaborator

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 : [?] : * {
    }
}
@reprogrammer
Copy link
Collaborator Author

Rob said the following on the mailing list.

Looks like a gap in region inference for method parameters. The region inference is brittle and not well specified. Basically, it works unless it doesn't. You can always work around this sort of thing by giving an explicit region argument: C<region P2>m2(new C<P2>());

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

1 participant