Skip to content

Commit

Permalink
IDEMPIERE-5361 : Jasper reports with Charts are not working (#1452)
Browse files Browse the repository at this point in the history
* IDEMPIERE-5361 : Jasper reports with Charts are not working

* IDEMPIERE-5361 : patch from hengsin
  • Loading branch information
nmicoud committed Aug 26, 2022
1 parent 0034ebd commit d0d42ff
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
10 changes: 9 additions & 1 deletion org.adempiere.base/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ Import-Package: com.google.zxing,
org.eclipse.core.runtime;version="3.4.0",
org.eclipse.osgi.framework.console;version="1.1.0",
org.eclipse.osgi.service.datalocation,
org.jfree.chart;version="[1.0.19,1.0.19]",
org.jfree.chart.axis;version="[1.0.19,1.0.19]",
org.jfree.chart.plot;version="[1.0.19,1.0.19]",
org.jfree.chart.renderer.category;version="[1.0.19,1.0.19]",
org.jfree.data.category;version="[1.0.19,1.0.19]",
org.jfree.data.general;version="[1.0.19,1.0.19]",
org.jfree.data.time;version="[1.0.19,1.0.19]",
org.jfree.data.xy;version="[1.0.19,1.0.19]",
org.krysalis.barcode4j;version="2.1.0",
org.krysalis.barcode4j.impl;version="2.1.0",
org.krysalis.barcode4j.impl.upcean;version="2.1.0",
Expand Down Expand Up @@ -166,7 +174,7 @@ Require-Bundle: org.eclipse.equinox.app;bundle-version="0.0.0",
wrapped.org.apache.poi.poi-ooxml;bundle-version="4.1.2",
wrapped.org.apache.xmlbeans.xmlbeans;bundle-version="3.1.0",
wrapped.org.jfree.jcommon;bundle-version="1.0.24",
wrapped.org.jfree.jfreechart;bundle-version="1.5.3",
wrapped.org.jfree.jfreechart;bundle-version="[1.0.19,1.0.19]",
wrapped.com.google.http-client.google-http-client-gson;bundle-version="1.39.2",
wrapped.com.google.zxing.javase;bundle-version="3.4.1",
wrapped.dev.samstevens.totp.totp;bundle-version="1.7.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public void loadData() {
}
}

@SuppressWarnings({ "unchecked", "rawtypes" })
private void addData(MChartDatasource ds) {

String value = ds.getValueColumn();
Expand Down Expand Up @@ -370,7 +369,6 @@ public IntervalXYDataset getXYDataset() {
return (IntervalXYDataset) dataset;
}

@SuppressWarnings("rawtypes")
public PieDataset getPieDataset() {
dataset = new DefaultPieDataset();
loadData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public class GraphBuilder {
protected String m_Y_AxisLabel = "Y Axis";
protected DefaultCategoryDataset dataset = new DefaultCategoryDataset();
protected DefaultCategoryDataset linearDataset = new DefaultCategoryDataset();
@SuppressWarnings("rawtypes")
protected DefaultPieDataset pieDataset = new DefaultPieDataset();

private static final CLogger log = CLogger.getCLogger(GraphBuilder.class);
Expand Down Expand Up @@ -251,7 +250,6 @@ public ArrayList<GraphColumn> loadData() {
return list;
}

@SuppressWarnings({ "rawtypes", "unchecked" })
public void loadDataSet(List<GraphColumn> list) {
pieDataset = new DefaultPieDataset();
dataset = new DefaultCategoryDataset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ else if (type.equals("onEventUpdate")) {
}
}

@SuppressWarnings({ "rawtypes", "unchecked" })
private void syncModel() {
Hashtable<String,BigDecimal> ht = new Hashtable<String,BigDecimal>();

Expand Down
2 changes: 1 addition & 1 deletion org.idempiere.p2.targetplatform/maven.locations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ Export-Package: *;version="${version}";-noimport:=true
<location includeSource="true" missingManifest="generate" type="Maven">
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.5.3</version>
<version>1.0.19</version>
<type>jar</type>
<instructions><![CDATA[Bundle-Name: Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version: ${version_cleanup;${mvnVersion}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="idempiere-220525" sequenceNumber="1653486593">
<target name="idempiere-220825" sequenceNumber="1661415971">
<locations>
<location includeMode="slicer" includeAllPlatforms="true" includeSource="true" includeConfigurePhase="true" type="InstallableUnit">
<unit id="zcommon" version="9.6.2"/>
Expand Down Expand Up @@ -1279,7 +1279,7 @@ Export-Package: *;version="${version}";-noimport:=true
<location includeSource="true" missingManifest="generate" type="Maven">
<groupId>org.jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.5.3</version>
<version>1.0.19</version>
<type>jar</type>
<instructions><![CDATA[Bundle-Name: Bundle derived from maven artifact ${mvnGroupId}:${mvnArtifactId}:${mvnVersion}
version: ${version_cleanup;${mvnVersion}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

target "idempiere-220525"
target "idempiere-220825"

with source configurePhase allEnvironments

Expand Down

0 comments on commit d0d42ff

Please sign in to comment.