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

Compiler does not respect Build Path Access Rules #166

Closed
felixdo opened this issue Feb 7, 2016 · 1 comment
Closed

Compiler does not respect Build Path Access Rules #166

felixdo opened this issue Feb 7, 2016 · 1 comment

Comments

@felixdo
Copy link
Contributor

felixdo commented Feb 7, 2016

I noticed that for groovy code, the build path access rules are not checked. This is important when writing eclipse plugins in groovy. I can thus write groovy code for an eclipse plugin which compiles fine but gets ClassNotFound exceptions at runtime.

@eric-milles
Copy link
Member

eric-milles commented Jan 28, 2017

This is checked within the JDT's java model. Any part of the compilation unit that is represented in the Java model will have this checking.

import a.b.Restricted
@Restricted
class C extends Restricted implemented Restricted {
  Restricted property
  private Restricted field
  Restricted method(Restricted param) {
    return Restricted
  }
}

This example will show an error for all occurrences of Restricted except the one in the method body. Is this good enough?

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