What steps will reproduce the problem?
1. Run demo.gsp
2. Add a belongsTo association to the Book class (e.g. static belongsTo =
[author: Author])
3. Generate the dynamic classes
What is the expected output? What do you see instead?
Expected: Classes would be generated
Actual: An error similar to this is displayed:
Apparent variable 'Author' was found in a static scope but doesn't refer to a
local variable, static field or class. Possible causes:
You attempted to reference a variable in the binding or an instance variable
from a static context.
You misspelled a classname or statically imported field. Please check the
spelling.
You attempted to use a method 'Author' but left out brackets in a place not
allowed by the grammar.
> What we found so far is that this is somewhat cyclic in nature... meaning,
Book is looking for the Author class while the Author class is looking for the
Book class.
What version of the product are you using? On what operating system?
- Win7
- Grails 1.3.7
Please provide any additional information below.
-
Original issue reported on code.google.com by
calli...@gmail.comon 13 Dec 2011 at 10:29