Jump to content
Changes to the Jaspersoft community edition download ×

Simple java question


mulcamd

Recommended Posts

In my report I have a date and a long.

startDate class   java.util.Date

startDateLong : class 

See below from the JRXML of these 2 variables.

In my report I have to devide the time by 1000, to get from milliseconds to seconds.
My expression is $P{startDate}.getTime() /1000L.

In iReport 4.1.1. I get the error:
Error filling print... Incompatible java.math.BigDecimal value assigned to parameter startDateLong

When I change the same expression to   $P{startDate}.getTime() all is fine. 

In iReport 4.0.2. the first expression with the divide by 1000L works fine.

Questions

  1. Why do I get a problem with   Incompatible java.math.BigDecimal value since both the getTime() and  1000L are long values
  2. What has changed from 4.0.2 to 4.1.1. in this aspect
  3. Most important: how can I solve this.
Code:

 



Post Edited by mulcamd at 08/19/2011 16:53
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...