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

Bug 314381

Summary: Invalid extension of MessageConsole
Product: [Tools] Linux Tools Reporter: Jeff Johnston <jjohnstn>
Component: SystemtapAssignee: anithra <anithra>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pmuldoon
Version: 0.5Flags: anithra: review?
Target Milestone: 0.6.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 313157    
Attachments:
Description Flags
Extending IOConsole instead of MessageConsole jjohnstn: review+

Description Jeff Johnston CLA 2010-05-25 18:40:40 EDT
org.eclipse.ui.console.MessageConsole is extended by:

org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ScriptConsole
org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ScriptConsole2

but is marked noextend
Comment 1 anithra CLA 2010-06-07 10:31:54 EDT
Created attachment 171268 [details]
Extending IOConsole instead of MessageConsole
Comment 2 Andrew Overholt CLA 2010-06-07 12:07:40 EDT
Jeff, please review this patch and consider whether or not it warrants inclusion for 0.6 (I'm leaning towards no but will listen to counter proposals).
Comment 3 Jeff Johnston CLA 2010-06-07 13:02:59 EDT
Comment on attachment 171268 [details]
Extending IOConsole instead of MessageConsole

Patch makes sense.  The MessageConsole class extends IOConsole which is extendible so this is just using it directly.  The IOConsole provides an IOConsoleOutputStream rather than a MessageConsoleOutputStream so the change to use the newIOConsoleOutputStream method also makes sense.
Comment 4 Jeff Johnston CLA 2010-06-07 13:05:15 EDT
(In reply to comment #2)
> Jeff, please review this patch and consider whether or not it warrants
> inclusion for 0.6 (I'm leaning towards no but will listen to counter
> proposals).

The patch is sound from my investigation.  It does not warrant inclusion in 0.6 because it doesn't cause an error if it is not in immediately and it is too close to the release.  It should go into trunk after 0.6 is officially tagged.
Comment 5 Andrew Overholt CLA 2010-06-07 14:05:38 EDT
Thanks for the analysis, Jeff.  Setting target milestone to 0.6.1.
Comment 6 anithra CLA 2010-11-03 09:34:57 EDT
done