The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

0


Using latest 6.1.1  and JDK 1.8 I get compile error for one particular report when compiling using maven plugin com.alexnederlof:jasperreports-plugin:1.7

[ERROR] Failed to execute goal com.alexnederlof:jasperreports-plugin:1.7:jasper (default) on project myproject: Some Jasper reports could not be compiled. See log above for details. net.sf.jasperreports.engine.JRException: Could not compile test.jrxml: Errors were encountered when compiling report expressions class file:
[ERROR] 1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
[ERROR] value = ((java.lang.String)field_status.getValue()).equals("ACTIVE"); //$JR_EXPR_ID=11$
[ERROR] <--------------------------------------------------------------->
[ERROR] 1 errors
[ERROR] -> [Help 1]

jasperj's picture
Joined: Sep 10 2015 - 12:48pm
Last seen: 3 months 1 week ago

2 Answers:

1

I think you still need to be using 1.7 to compile because some elements are still in 1.7.

hozawa's picture
39234
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 day 4 hours ago
0

i met same error and at last i found solve. Change your library with 6.x.x. If you use 5.x.x and lower, you take this error

malik.masis's picture
Joined: Oct 15 2016 - 9:19pm
Last seen: 2 years 2 months ago
Feedback