intive-FDV / DynamicJasper

Dynamic Reports using Jasper Reports
http://intive-fdv.github.io/DynamicJasper/
GNU Lesser General Public License v3.0
241 stars 128 forks source link

NoSuchMethodError with jasperreport 6.19.0 #124

Closed jherkel closed 1 year ago

jherkel commented 2 years ago

with a new jasperreport 6.19.0 I can see this exception:

java.lang.NoSuchMethodError: 'void net.sf.jasperreports.engine.JRPen.setLineWidth(float)'
    at ar.com.fdvs.dj.util.LayoutUtils.convertBorderToPen(LayoutUtils.java:186) ~[DynamicJasper-5.3.3.jar:?]

I have checked changes between 6.18.0 & 6.19.0 and there was removed a deprecated method

/**
 * @deprecated Replaced by {@link #setLineWidth(Float)}.
 */
public void setLineWidth(float lineWidth);
objt-ev commented 1 year ago

having same issue, this prevents us from migrating to the latest jasper reports (6.18.1+)

oyarzun commented 1 year ago

@juanalvarezg any thoughts on merging @jherkel 's PR #129 to fix this issue?