| Summary: | 3 Compile warnings in official build | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Dani Megert <daniel_megert> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | aniefer, irbull, tjwatson |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://download.eclipse.org/eclipse/downloads/drops/N20100808-2000/compilelogs/plugins/org.eclipse.equinox.p2.installer_1.0.200.N20100808-2000/@dot.html | ||
| Whiteboard: | |||
|
Description
Dani Megert
Tom, I assume these are a result of the generics work that you did in OSGi. This happened a number of time last year too (when the p2 team was adding generics support to the p2 API). Are there workspace settings we should be using to avoid these in the official build? Or should we be changing the compiler options when we build now? Yes this is because of the work to generify the OSGi API. But I don't understand why only these three got flagged as a warning in p2. for example: org.eclipse.equinox.internal.p2.core.Activator.registerAgent() This method has similar warnings that did not show up in the build. We need to explain that before figuring out what settings to use. Fixed the compile warnings in head. We should have a discussion on the p2 call around taking better advantage of the new osgi generics, which means tying ourselves to the 3.7 osgi (which I don't really see beeing an issue). In particular, we could use BundleContext#getServiceRegerence(Class<s> clazz) which would allow something like IProxyService proxies = getService(Icontext, IProxyService.class); As to warnings only showing up for org.eclipse.equinox.p2.installer, it is included in a second product build to make the installer, that build specifies reporting raw & unchecked warnings where the normal master build does not. There was a problem with tagging HEAD so this fix won't appear in integration builds until the first build after 3.7 M2. |