Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357662 - Build error in o.e.tm.terminal.test/VirtualCanvas when building on Linux-GTK
Summary: Build error in o.e.tm.terminal.test/VirtualCanvas when building on Linux-GTK
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: Terminal (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Michael Scharf CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 13:32 EDT by Martin Oberhuber CLA
Modified: 2011-09-29 13:29 EDT (History)
1 user (show)

See Also:


Attachments
patch that fixes the problem (1.93 KB, text/plain)
2011-09-15 18:28 EDT, Michael Scharf CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2011-09-14 13:32:47 EDT
On Linux-GTK, SWT defines Control#getBackgroundColor() as package-private, therefore it is invalid to redefine as protected in subclass VirtualCanvas.

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/Control.java#n2364

it looks like it's been like this since Eclipse 3.4 (2008) at least:

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/Control.java?id=aab8dd4993a78017d2de4c49a90a757b1ca40959

This error only shows up when building in PDE on Linux-GTK. Maybe earlier versions of Eclipse didn't highlight this error, or treated it as a warning only. Nighly builds / releng are not affected since tm.terminal.test is not released.
Comment 1 Michael Scharf CLA 2011-09-15 18:28:31 EDT
Created attachment 203460 [details]
patch that fixes the problem

I just renamed the method that conflicts with the Canvas method on GTK

(I checked this into CVS -- is CVS still used?)
Comment 2 Michael Scharf CLA 2011-09-15 18:32:59 EDT
Actually, we could also remove this class. As far as I can see it is not used anywhere and I think I created it as an experiment when I developed the terminal because there were some strange problem with scrolling and painting canvas.....
Comment 3 Martin Oberhuber CLA 2011-09-29 13:29:25 EDT
Thanks Michael - the fix is now in the TM 3.4 (Juno) Stream.