| Summary: | remove org.eclipse.core.runtime.compatibility.auth dependency from org.eclipse.core.runtime | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kim Moir <kim.moir> | ||||
| Component: | Runtime | Assignee: | John Arthorne <john.arthorne> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, dj.houghton, remy.suen | ||||
| Version: | 4.2 | ||||||
| Target Milestone: | 4.2 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 355430 | ||||||
| Attachments: |
|
||||||
|
Description
Kim Moir
Created attachment 209262 [details]
compile error log from 4.2 test build
I see what's going on. The dependency is optional, and at runtime we catch the the linkage error if the bundle is not present. But there is still a compile-time dependency. I think we still want to keep the optional dependency to allow someone to insert that bundle if they need it. I'll see if I can convert the references to reflective access to avoid even the compile-time reference. Fix: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=141a5960077ceb94e56327de6dc5e16ff59e7a3b I switched access to use reflection, but left the optional import in place. There is no longer any compile-time dependency on runtime.compatibility.auth. I also removed dependencies from org.eclipse.core.tests.runtime. This involved deleting some tests that were testing details of the Cipher implementation. There are still some remaining tests that test this functionality at the API level. These API tests will fail if runtime.compatibility.auth is not present but I want to leave them in place until we at least get some test builds running. I might not have understood maven+tycho but I thought that this can cause a problem during build (based on the LTS prototype). We asked tycho to make optional dependencies available at compile time, because most of our bundles are set up to compile with the optional deps. Maybe it's not a problem if you can exclude it specifically in the pom.xml I guess we'll find out :-) PW I'd be surprised if we didn't have other cases of optional dependencies that we don't have at compile-time, especially in Equinox. But yes, I guess we'll see if this causes a build problem. |