2001 JI Open Discussion Posted August 30, 2006 Share Posted August 30, 2006 By: PWQ - pwqhunt Invalid java generated with IReport 0.3.0 2004-06-07 20:25If column name in data source contains a hyphen then the generated java file will also contain a hyphen as below: field_alt-inv-id = (JRFillField)fldsm.get("alt-inv-id"); This prevents the java from compiling as a hyphen is not valid in a variable name. Aliasing the column name in the query works (but is very tedious for general use) however it should be easy to change the code to check for invalid java characters before creating the variable names and replace with an underscore. Any chance of this ??? Love the product but cannot use due to this issue cheers By: Giulio Toffoli - gt78 RE: Invalid java generated with IReport 0.3.0 2004-06-18 00:37 Yes, I's useful a check on the parameters, variables and fields name to be sure that they are valida java names. Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now