|
| From: | anonymous |
| Subject: | [Pnet-developers] [bug #14858] BooleanAnd and BooleanOr swapped in CodeDom Generators |
| Date: | Tue, 25 Oct 2005 16:34:33 +0000 |
| User-agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50601) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14858>
Summary: BooleanAnd and BooleanOr swapped in CodeDom
Generators
Project: DotGNU Portable.NET
Submitted by: None
Submitted on: Tue 10/25/05 at 16:34
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
The CodeGeneration for CSharp and VB.NET has the BooleanOr and BooleanAnd
value swapped. Specifically the function
OutputOperator(CodeBinaryOperatorType op) in both CodeGenerator.cs and
VBCodeCompiler.cs.
The original code (as of .72) in CodeGenerator.cs is:
case CodeBinaryOperatorType.BooleanOr:
oper = "&&"; break;
case CodeBinaryOperatorType.BooleanAnd:
oper = "||"; break;
and in VBCodeCompiler.cd is:
case CodeBinaryOperatorType.BooleanOr:
oper = "AndAlso"; break;
case CodeBinaryOperatorType.BooleanAnd:
oper = "OrElse"; break;
CLEARLY these are incorrect.
You can compare the CodeGenerator.cs to the version in the ROTOR project
provided by Microsoft at:
http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/fx/bcl/codegenerator_8cs-source.html
which has the correct values.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14858>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |