NET namespaces bugs

Hi VP,

In the DB-VA 3.1sp1 (VP_Suite_Windows_3_1_sp1_20071012) I am evaluating, I have found these small bugs:

  • If the namespace has mixed case, the code generated has errors, because sometimes the upper case letters are conserved, but sometimes they aren’t (the namespace is “lower cased”) -> So you are FORCED to use always lower case for the namespace. Maybe not a big issue, but maybe also an easy fix to implement in your software

  • If the namespace chain is the same of a part of another namespace, the generated code fails (well, at least in C#) because the compiler does not find the right namespace -> Fixed easily putting “global::” in front of a declaration. Example:

DB-VA model:
name1.sub1.space1.Class1
sub1.space1.Class2

namespace name1.sub1.space1 {
sub1.space1.Class2 instance;
}

compiler says: cannot find “sub1.space1.Class2”
(because it is really looking for “name1.sub1.space1.Class2”!!!)

If you change generated code to:
namespace name1.sub1.space1 {
global::sub1.space1.Class2 instance;
}

compiler says: OK :wink:

These are some contributions to help made this software even better!! :smiley:

Hello distansia,

We are now investigating this issue. I will let you know when there is any reply from our team.

Best regards,
Jick

Hello distansia,

The global namespace problem has been fixed. You may download and install the patch at:
http://files3.visual-paradigm.com/200711/Patch/sp1_20071102e/VP_Suite_Windows_3_1_sp1_20071102e.exe

The problem caused by mixed cases should had been fixed for several builds. Could you provide me with some steps or simpler, the project file for producing the problem? Thank you in advance!

Best regards,
Jick

[quote=Jick]The global namespace problem has been fixed. You may download and install the patch at:
http://files3.visual-paradigm.com/200711/Patch/sp1_20071102e/VP_Suite_Windows_3_1_sp1_20071102e.exe[/quote]

Many thanks!! Your team is very FAST with this small bugs, congratulations!!

Well, you are right :oops: This bug has been fixed. Sorry, I was testing with an “old build” (20071012, I think) and I did not re-test this with the new version before posting the topic in the forum.

So, excuse me please :stuck_out_tongue:

Hello distansia,

This problem has been fixed, too. Please download and install the patch from the URL show in this thread:
http://forums.visual-paradigm.com/posts/list/2597.html

Best regards,
Jick