Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:07:01+00:00 2026-06-02T16:07:01+00:00

I have a grails application with a JavaCC parser integrated. In this parser I

  • 0

I have a grails application with a JavaCC parser integrated. In this parser I create grails domain object. I have objects such as Product, Release and Document as Grails domain classes.

In the generated Java class (from JavaCC) I create Products, Releases and Documents. Very often (not always though) I get build errors from Grails stating that:


Compile error during compilation with javac.
D:\workspaces\productArchive\com.rcs.products\src\java\com\configinfo\Parser.java:173: error: cannot find symbol
document.setFilename(filename);
^
symbol: method setFilename(String)
location: variable document of type Document

My Document class looks like this:

class Document {
 String filename     
 String docVersion
 String path
 String title
 String documentNumber
 String keys


    static belongsTo = [release: Release]

    static constraints = {
        filename(blank: false)
        version(blank: false)
        path(blank: true)
        release(nullable: true)
        keys(blank: true, nullable: true)
    }

}

I have set JDK_VERSION to 1.6 in the JavaCC grammar file. I’m using Grails 2.0.1.

Can anyone explain these compiler errors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:07:02+00:00Added an answer on June 2, 2026 at 4:07 pm

    It seemed to some kind of name collison. I don’t know why though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Vote domain class from my grails application containing properties like article_id
I have some controllers in my grails application:- LoginController LogoutController SearchableController cirnele.SearchAllController com.ten.cirnelle.domain.CustomerController com.ten.cirnelle.domain.ProjectController
I have the next two domain classes in a grails application: class Room {
I have cached some domain instances and queries in my grails application. I would
I have this task: realize Grails application with ExtJS. And one part of this
I have a grails application. When I finish the web design of this project,
I have integrated spring security plugin with my grails application, which has hibernate as
I have a Grails Application AppA. And I am planning to create a new
Lets say I have a domain class named Tag in my Grails application. class
I have a grails application where I have contacts which belongs to another domain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.