Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Important Setting for PDE Project development in EclipseLink

Hi All,

'just wanted to let everyone who might be working with the EclipseLink PDE projects know about a setting that will likely save you some time.

When using PDE projects transitively I was getting an Access Restriction compile error.

e.g. org.eclipse.persistence.sdo depends on and exports org.eclipse.persistence.core, so a project that depends on org.eclipse.persistence.sdo should be able to use the API exported from core. Doing this was giving an exception of the form, "Access restriction: The method getTypeHelper() from the type HelperContext is not accessible due to restriction on required library...."

  The following setting works around the issue:

Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and Restricted AP -> Forbidden Reference (access rules) = Warning (or Ignore)

-Tom


Back to the top