Announcement Announcement Module
No announcement yet.
Roo uses reserved word as variable name Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo uses reserved word as variable name

    I reverse engineered a schema from a H2 File databse. One of the entities is called Assert,and roo generates the following code, using the reserved word "assert" as a variable name. (in file ApplicationConversionServiceFactoryBean_Roo_Conver sionService.aj)

    public Converter<Assert, String> ApplicationConversionServiceFactoryBean.getAssertT oStringConverter() {
    return new org.springframework.core.convert.converter.Convert er<aesm.Assert, java.lang.String>() {
    public String convert(Assert assert) {
    return new StringBuilder().append(assert.getDescription()).ap pend(' ').append(assert.getIssuedon()).append(' ').append(assert.getRawassert()).append(' ').append(assert.getAbstractproperty()).toString() ;

    I can execute the code by hand-editing the aj file, but it is replaced next time i run roo. When can I do for this.

    Roo version: 1.2.2.RELEASE [rev 7d75659]