Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354848 - Compiler warnings in I20110816-0800
Summary: Compiler warnings in I20110816-0800
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: Juno M2   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 11:27 EDT by Olivier Thomann CLA
Modified: 2011-08-18 09:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.