Community
Participate
Working Groups
When someone accesses a type that they are no allowed to because of an access restriction they get a message somehting like Access restriction: The method setDefaultMaxConnectionsPerHost(int) from the type HttpConnectionManagerParams is not accessible due to restriction on required library org.apache.commons.httpclient-3.1 It would be good if the message said what package the type was in. That way the would know more directly what they have to do to get proper access (e.g., get the provider to export it, whatever...
These messages are coming from the compiler of course.
All compiler error messages are shortened. All qualified information is however available in the marker. Maybe hover could reveal it ?
that seems like a reasonable start.
Or if this is the only message causing grief (which I suppose it is), then we could improve it to reveal the package. Access restriction: The method setDefaultMaxConnectionsPerHost(int) from the type HttpConnectionManagerParams is not accessible due to restriction on package x.y.z in required library org.apache.commons.httpclient-3.1 i.e. we could make access rules carry more context information (currently any type may carry a restriction, and in manifests there is more of a package level granularity). I think our support can allow 3rd parties (contributing the access rules) to provide more context.