Access Rules

Access rules can be added to build classpath entries to specify which types in the given entry can be accessed and which not. If the compiler detects a type access to a type that should not be accessed, it will create a problem marker. Each rule consist of a pattern (same format as ANT patterns) and one of the rule types listed above.
Each classpath entry can have any number of rules defined. The compiler will process the list in the order defined and take the first matching rule.

The severity of the problem marker generated for accesses to 'Non-accessible' and 'Discouraged' type can be configured on the Java compiler's Error/Warnings preference page.

Related concepts

Combine Access Rules
Java builder
Classpath variable
Inclusion and exclusion patterns

Related reference

Java build path properties
Error/Warnings preference page