Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354848

Summary: Compiler warnings in I20110816-0800
Product: [Eclipse Project] Equinox Reporter: Olivier Thomann <Olivier_Thomann>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: Juno M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Olivier Thomann CLA 2011-08-16 11:27:31 EDT
1. WARNING in /src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/ImportWizard.java
 (at line 95)
operation = new InstallOperation(new ProvisioningSession(((ImportPage) mainPage).agent), new ArrayList<IInstallableUnit>()) {
The static field AbstractPage.agent should be accessed in a static way

Simply replace:
((ImportPage) mainPage).agent with AbstractPage.agent.