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

Bug 330940

Summary: The method signature changed in org.eclipse.birt.report.engine.api.HTMLRenderContext
Product: z_Archived Reporter: Samuel Wu <samwu>
Component: TPTPAssignee: Bozier jerome <jerome.bozier>
Status: CLOSED FIXED QA Contact: Kathy Chan <kathy>
Severity: major    
Priority: P3 CC: kathy, paulslau
Version: unspecifiedFlags: paulslau: review+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch none

Description Samuel Wu CLA 2010-11-23 12:03:03 EST
Here is the error log we have:

    [javac] 17. ERROR in /tmp/workspace/plugins/org.eclipse.tptp.platform.report.birt/src/org/eclipse/tptp/platform/report/birt/core/provisional/BIRTReportGenerator.java (at line 270)
    [javac]     renderContext.SetRenderOption(options);
    [javac]                   ^^^^^^^^^^^^^^^
    [javac] The method SetRenderOption(HTMLRenderOption) is undefined for the type TPTPHTMLRenderContext

I am guessing that the method name is supppose to be setRenderOption(options)
Comment 1 Bozier jerome CLA 2010-11-23 13:08:37 EST
Created attachment 183687 [details]
patch

this patch follow BIRT api change :
. update Manifest file in org.eclipse.tptp.platform.report.birt
. update Manifest file in org.eclipse.hyades.ui 
(needed because they refactored core and there is an indirect dependency on birt.core now)
. fix call in BirtReportGenerator since they have changed method name in HTMLRenderContext.java
Comment 2 Bozier jerome CLA 2010-11-23 13:10:21 EST
updating worked hours (most = find minimal birt plugins to have a workspace that compile)

Paul, could you review this small patch please ? it avoid build to be performed

many thanks in advance, 

Jerome
Comment 3 Paul Slauenwhite CLA 2010-11-23 14:33:38 EST
Reviewed and approved with comments:

-Change 5.0.0) back to 3.0.0) in the updated manifest.mf files.

-Open a blocking defect again the BIRT project since they broke API and change dependencies in a service release.
Comment 4 Samuel Wu CLA 2010-11-24 18:35:01 EST
Hi, Jerome

Is this patch checked into cvs yet?

Sam
Comment 5 Bozier jerome CLA 2010-11-25 03:20:31 EST
i have let V5.0 in some manifest lines (org.eclipse.birt.core and org.eclipse.birt.report.model) else it would not compile, i returned to V3.0 for org.eclipse.birt.report.engine as it was only raising a warning

patch checked under CVS now

closing
Comment 6 Paul Slauenwhite CLA 2010-11-25 06:52:24 EST
(In reply to comment #5)
> i have let V5.0 in some manifest lines (org.eclipse.birt.core and
> org.eclipse.birt.report.model) else it would not compile, i returned to V3.0
> for org.eclipse.birt.report.engine as it was only raising a warning
> 
> patch checked under CVS now
> 
> closing

Thanks.  

Could you open a blocking defect again the BIRT project since they broke API and change dependencies in a service release.
Comment 7 Bozier jerome CLA 2010-11-25 09:57:35 EST
filed a BIRT bugzilla :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331128
Comment 8 Samuel Wu CLA 2010-11-30 12:50:12 EST
Closing
Comment 9 Paul Slauenwhite CLA 2010-12-01 06:24:52 EST
(In reply to comment #7)
> filed a BIRT bugzilla :
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=331128

Note, the BIRT Team decided to roll-back their API-breaking change (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=331128#c2) so we may need to reopen this defect to handle the change on the TPTP side.
Comment 10 Samuel Wu CLA 2010-12-01 10:23:47 EST
(In reply to comment #9)
> (In reply to comment #7)
> > filed a BIRT bugzilla :
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=331128
> 
> Note, the BIRT Team decided to roll-back their API-breaking change (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=331128#c2) so we may need to
> reopen this defect to handle the change on the TPTP side.

Reopen the defect.
Comment 11 Samuel Wu CLA 2010-12-07 10:47:55 EST
The method name has set back to renderContext.setRenderOption(options);
Closing.