| Summary: | C# classes outside namespace-block are ignored. | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | andy |
| Component: | importer | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nicolas.fella, okellogg |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Apparently this is fixed as a side effect of fixing bug 502785. Tested using test/import/csharp/*.cs from umbrello master. |
BUG: Importing C# code from a straight from a directory and also using the import-wizard finds no classes. AS-IS: The importer ignores all classes which are not under the "namespace" block, i.e. 99% of the classes, as the C# since a few years doesn't require the "namespace Xy { .... }" syntax. EXPECTED: The importer should find classes also in the case the namespace is written in the form: "namespace Xy;" i.e. without the "{ }" block segment. Like this, the tool is fully useless, as with any real code-base it's unable to import the model - the architect is required to write all the class names and their props+behaviors manually again within your tool. Please notice, that the "namespace Xy;" syntax was introduced in C#10 - we are currently at C#13 and your tool asks me if I wish to use also the C#11 syntax, so this should definitely work. Thank you very much :-), Andrej