Head Geek
Head Geek

Reputation: 39838

Using "forbidden" class in Java?

My employer needs a Java class that extends org.eclipse.rse.core.subsystems.SubSystem, for an Eclipse plugin. Unfortunately the access rules on the library that implements it (org.eclipse.rse.ui_3.3.318.201404091445.jar, if it helps) marks everything "forbidden" that it doesn't expressly allow, and that class isn't expressly allowed.

I can change the access rule to allow access to that class, but will that cause problems when the plugin is installed on another machine?

Upvotes: 10

Views: 1114

Answers (1)

jozzy
jozzy

Reputation: 2943

Eclipse help clearly documents that

References to types from a forbidden package result in class loading errors at runtime.

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Feditors%2Fmanifest_editor%2Faccess_rules.htm

So it is not advisable at all to override this.

Upvotes: 5

Related Questions