You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Durga Srinivasu Karuturi <du...@gmail.com> on 2017/04/30 17:36:42 UTC

Latest JDT Compiler Issues.

Hi,

We have tried migrating tomcat from 8.5.11 --> 8.5.14 for latest security
fixes and found our jasaperreports functionality is broken.

Reports compilation is failing with unresolved type errors even though all
related jars are in classpath

1. java.util.ResourceBundle cannot be resolved to a type
                value = ((java.util.ResourceBundle)
parameter_REPORT_RESOURCE_BUNDLE.getValue()); //$JR_EXPR_ID=34$
                          <---------------------->
2. net.sf.jasperreports.engine.JRDataSource cannot be resolved to a type
                value = ((net.sf.jasperreports.engine.
JRDataSource)parameter_DS_controllers_by_model609.getValue());
//$JR_EXPR_ID=37$
                          <-------------------------------------->
3. net.sf.jasperreports.engine.JasperReport cannot be resolved to a type
                value = ((net.sf.jasperreports.engine.
JasperReport)parameter_SR_controllers_by_model609.getValue());
//$JR_EXPR_ID=38$
                          <-------------------------------------->
4. java.util.ResourceBundle cannot be resolved to a type
                value = ((java.util.ResourceBundle)
parameter_REPORT_RESOURCE_BUNDLE.getValue()); //$JR_EXPR_ID=40$
                          <---------------------->
Debugged further and found this is because of 4.6.1 JDT compiler change
from 8.5.12. This is a regression issue from JDT 4.6.1

https://bugs.eclipse.org/bugs/show_bug.cgi?id=495598

I have tried 4.5.1 (from old tomcat 8.5.11) and 4.6.2 (from
http://central.maven.org/maven2/org/eclipse/scout/sdk/deps/ecj/4.6.2/ecj-4.6.2.jar)
it works fine.

Can we consider to change JDT to 4.6.2 in upcoming releases?

Mean while, is it okay to use old JDT 4.5.1 (ecj-4.5.1) with latest tomcat
8.5.14?

Thanks,
Durga Srinivasu

Re: Latest JDT Compiler Issues.

Posted by Durga Srinivasu Karuturi <du...@gmail.com>.
Thanks mark for quick reply.

Raised below issue for tracking purpose:

https://bz.apache.org/bugzilla/show_bug.cgi?id=61057

Meanwhile we continue to use ecj-4.5.1 with latest tomcat 8.5.14.

Thanks,
Durga Srinivasu

On Sun, Apr 30, 2017 at 11:52 PM, Mark Thomas <ma...@apache.org> wrote:

> On 30/04/17 18:36, Durga Srinivasu Karuturi wrote:
> > Hi,
> >
> > We have tried migrating tomcat from 8.5.11 --> 8.5.14 for latest security
> > fixes and found our jasaperreports functionality is broken.
>
> <snip/>
>
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=495598
> >
> > I have tried 4.5.1 (from old tomcat 8.5.11) and 4.6.2 (from
> > http://central.maven.org/maven2/org/eclipse/scout/sdk/
> deps/ecj/4.6.2/ecj-4.6.2.jar)
> > it works fine.
> >
> > Can we consider to change JDT to 4.6.2 in upcoming releases?
>
> Sure. Please open a Bugzilla issue to track this.
>
> > Mean while, is it okay to use old JDT 4.5.1 (ecj-4.5.1) with latest
> tomcat
> > 8.5.14?
>
> Yes, that should be fine.
>
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Latest JDT Compiler Issues.

Posted by Mark Thomas <ma...@apache.org>.
On 30/04/17 18:36, Durga Srinivasu Karuturi wrote:
> Hi,
> 
> We have tried migrating tomcat from 8.5.11 --> 8.5.14 for latest security
> fixes and found our jasaperreports functionality is broken.

<snip/>

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=495598
> 
> I have tried 4.5.1 (from old tomcat 8.5.11) and 4.6.2 (from
> http://central.maven.org/maven2/org/eclipse/scout/sdk/deps/ecj/4.6.2/ecj-4.6.2.jar)
> it works fine.
> 
> Can we consider to change JDT to 4.6.2 in upcoming releases?

Sure. Please open a Bugzilla issue to track this.

> Mean while, is it okay to use old JDT 4.5.1 (ecj-4.5.1) with latest tomcat
> 8.5.14?

Yes, that should be fine.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org