Hi,
I've defined a class with name "uk.ac.cant.demo.Test" and referenced it in the definition for another class as the type of a property.
If I reference it using the fully qualified name, then I get an error in CodeGenerator (Could not find usertype "uk.ac.cant.demo.Test"), and in the generated class, it refers to the fully qualified name everywhere, but no import statement. If I reference it using just "Test" then I get the same error in CodeGenerator, and in the generated code, there is an "import Test;" statement, which obviously isn't valid Java.
Seeing as both classes are in the same package, how do I go about generating valid Java code?
Thanks in advance for your help
Richard
|