Summary: | Class name with .. : error while creating directory for code genration | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | ep |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | VLO | ||
Version: | 1.1.1 | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
ep
2003-04-08 16:34:06 UTC
The problem is located in CodeWriter::findFileName(). if the class is associated to a package, the package's name is prepended to the class name and then, all dots are replaced with slashes. This transformation is correct for a package name, but not for a class name. So, IMHO the replacement of dots with slashes should be done before the package's name is prepended to the class name. I believe this is fixed. I tried to generate a code for a class "Weird..Class" and it appeared to work fine, both with, and without, a package. Subject: Re: [Uml-devel] Class name with .. : error while creating directory for code genration Brian Thomas <thomas@mail630.gsfc.nasa.gov> [031202 20:09]: > I believe this is fixed. I tried to generate a code for a class "Weird..Class" and > it appeared to work fine, both with, and without, a package. Does it also work for the old style generators? Steinchen Yes. I tested with php, and xmlschemagenerator..(never mind that a node with ".." in the name is illegal in XML, but thats another issue). These use the older code which has been encorporated into the simpleCodeGenerator class. |