Rimmer, Alison wrote:
When I try to compile the generated files I get lots of errors like the following:

"LinkDescriptor.java" - can not resolve symbol: class Link in class DirectoryScanner.DirectoryScanner

This is just a shot in the dark: is one of the generated classes named 'DirectoryScanner', too? If so, you should be able to fix this by giving the package a different name. ('directoryscanner' would work, since Java names are case sensitive. Plus, package names are traditionally all lowercase.)


If you are wedded to the DirectoryScanner package name, you could use a binding file to have source generator generate the DirectoryScanner class with a different name.

This was generated for the following line of code:

return DirectoryScanner.Link.class;

DirectoryScanner is my package name.

I'm using JBuilder9.0 (dev).

The problem was solved by removing DirectoryScanner from the code so the line now reads:

return Link.class;

But I'd like to be able to use the -package flag without having to edit the files produced - what am I doing wrong?

If the suggestion above doesn't help, try simplifying your schema down to the minimum that reproduces this error and then posting it to the list.


Rhett

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev


Reply via email to