mono.git
18 years ago2006-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Apr 2006 06:48:23 +0000 (06:48 -0000)]
2006-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* QueueTest.cs, SortedListTest.cs : many capacity-related tests are
  written under improper assumption. As a result they don't pass when
  we run make PROFILE=net_2_0 run-test-ondotnet, so got rid of them.

svn path=/trunk/mcs/; revision=59835

18 years agotest and fix for null pointer exception
Andrew Skiba [Tue, 25 Apr 2006 06:41:15 +0000 (06:41 -0000)]
test and fix for null pointer exception

svn path=/trunk/mcs/; revision=59834

18 years ago2006-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 24 Apr 2006 20:38:41 +0000 (20:38 -0000)]
2006-04-24  Zoltan Varga  <vargaz@gmail.com>

* aot.c (emit_method_order): Don't align method_order_end.

svn path=/trunk/mono/; revision=59828

18 years ago2006-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 24 Apr 2006 20:24:36 +0000 (20:24 -0000)]
2006-04-24  Zoltan Varga  <vargaz@gmail.com>

* inssel.brg (stmt): Fix interface calls in AOT code which got broken by
the interface ID changes.

svn path=/trunk/mono/; revision=59827

18 years ago2006-04-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Apr 2006 19:41:43 +0000 (19:41 -0000)]
2006-04-24  Chris Toshok  <toshok@ximian.com>

        * AuthorizationSection.cs (IsValidUser): fix a problem that
        surfaced when converting from the 1.1 to 2.0 config classes.  Only
        check for verb match if there are actually verbs to match against.

svn path=/trunk/mcs/; revision=59824

18 years ago2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Apr 2006 19:29:43 +0000 (19:29 -0000)]
2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CheckBox.cs: certain attributes have to be rendered in the input tag,
not the <span>. Fixes bug #71251.

svn path=/trunk/mcs/; revision=59822

18 years ago2006-04-24 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 24 Apr 2006 16:22:42 +0000 (16:22 -0000)]
2006-04-24  Mike Kestner  <mkestner@novell.com>

* ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
check for item.X outside the ClientRect instead of item.Y. Fixes
#78151.

svn path=/trunk/mcs/; revision=59818

18 years ago2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Apr 2006 15:43:53 +0000 (15:43 -0000)]
2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpServerUtility.cs: don't reset the query string in Execute() when
the path does not contain it and we have one from the previous request.
Fixes bug #78177.

svn path=/trunk/mcs/; revision=59816

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 14:21:18 +0000 (14:21 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ImportedProject.cs: Removed warning.
        * Engine.cs, Project.cs, TaskDatabase.cs: Added registration of
        default tasks.

svn path=/trunk/mcs/; revision=59814

18 years agouse UrlUtils.Combine to combine pathes
Andrew Skiba [Mon, 24 Apr 2006 14:20:05 +0000 (14:20 -0000)]
use UrlUtils.Combine to combine pathes

svn path=/trunk/mcs/; revision=59813

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 14:18:38 +0000 (14:18 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ProjectTest.cs, EngineTest.cs: Corrected BinPath.

svn path=/trunk/mcs/; revision=59812

18 years agoFix #78156
Raja R Harinath [Mon, 24 Apr 2006 11:38:19 +0000 (11:38 -0000)]
Fix #78156
* mcs/flowanalysis.cs (MyBitVector.Or): Add null check on argument.
* gmcs/flowanalysis.cs: Likewise.
* tests/test-501.cs: New test from #78156.

svn path=/trunk/mcs/; revision=59807

18 years agocleanup whitespace and make files identical
Raja R Harinath [Mon, 24 Apr 2006 10:49:01 +0000 (10:49 -0000)]
cleanup whitespace and make files identical

svn path=/trunk/mcs/; revision=59805

18 years ago* XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
Gert Driesen [Mon, 24 Apr 2006 10:27:55 +0000 (10:27 -0000)]
* XmlSchemaExporter.cs: Introduce XmlSchemaObjectContainer class to
allow XML Schema items to be added to its parent in the same order
as MS.NET (schema elements before complex types, ...).
* XmlSchemaExporterTests.cs: Enabled tests which failed due to bug
#78145.

svn path=/trunk/mcs/; revision=59804

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 09:43:29 +0000 (09:43 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ToolTask.cs, TaskItem.cs: Small fixes.
        * TaskLoggingHelper.cs: Added checking for null parameters.

svn path=/trunk/mcs/; revision=59802

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 09:40:49 +0000 (09:40 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * TaskLoggingHelperTest.cs: Added new tests.

svn path=/trunk/mcs/; revision=59801

18 years ago2006-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 24 Apr 2006 09:27:06 +0000 (09:27 -0000)]
2006-04-24  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_close): Tidy up trace messages.

* assembly.c (mono_assembly_close): Ditto.

* assembly.c (mono_assembly_close): Clear out image->assembly so the image
no longer references an already freed assembly. Fixes #78168.

svn path=/trunk/mono/; revision=59800

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 09:13:47 +0000 (09:13 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Project.cs: Removed unnecessary variable.
        * Engine.cs: Added fixme.

svn path=/trunk/mcs/; revision=59799

18 years ago2006-04-24 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 24 Apr 2006 09:13:10 +0000 (09:13 -0000)]
2006-04-24  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ProjectTest.cs: Added tests for loading of default tasks (from
        Microsoft.Build.Tasks).

svn path=/trunk/mcs/; revision=59798

18 years agosvn path=/trunk/mcs/; revision=59796
Ankit Jain [Mon, 24 Apr 2006 08:34:01 +0000 (08:34 -0000)]
svn path=/trunk/mcs/; revision=59796

18 years ago2006-04-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 23 Apr 2006 15:33:33 +0000 (15:33 -0000)]
2006-04-23  Marek Safar  <marek.safar@seznam.cz>

A fix for #49011.
constant.cs (FloatConstant.Reduce): Add range checking for checked context.
(DoubleConstant.Reduce): Ditto.

svn path=/trunk/mcs/; revision=59792

18 years agoSystem.Web_test.dll.sources: add BulletedListTest.cs
Tal Klahr [Sun, 23 Apr 2006 14:20:29 +0000 (14:20 -0000)]
System.Web_test.dll.sources: add BulletedListTest.cs

svn path=/trunk/mcs/; revision=59791

18 years agoSystem.Web_test.dll.sources: add BulletedListTest.cs
Tal Klahr [Sun, 23 Apr 2006 14:13:36 +0000 (14:13 -0000)]
System.Web_test.dll.sources: add BulletedListTest.cs

svn path=/trunk/mcs/; revision=59790

18 years agoBulletedList Class Tests
Tal Klahr [Sun, 23 Apr 2006 14:12:55 +0000 (14:12 -0000)]
BulletedList Class Tests

svn path=/trunk/mcs/; revision=59789

18 years agoIn mcs and gmcs:
Raja R Harinath [Sun, 23 Apr 2006 08:19:20 +0000 (08:19 -0000)]
In mcs and gmcs:
* expression.cs (LocalVariableReference.DoResolveBase): Simplify.
Remove 'lvalue_right_side' argument.  Move parts to ...
(LocalVariableReference.ResolveLocalInfo, LocalVariable.DoResolve)
(LocalVariable.DoResolveLValue): ... these.

svn path=/trunk/mcs/; revision=59788

18 years agoScan css files from theme directory and put them into __linkedStyleSheets field of...
Andrew Skiba [Sun, 23 Apr 2006 08:12:59 +0000 (08:12 -0000)]
Scan css files from theme directory and put them into __linkedStyleSheets field of generated theme page

svn path=/trunk/mcs/; revision=59787

18 years ago2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 21 Apr 2006 23:02:36 +0000 (23:02 -0000)]
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ImageListStreamer.cs: some images store a wrong grow factor, so don't
trust that value blindly and do some sanity check. Fixes bug #77814.

svn path=/trunk/mcs/; revision=59784

18 years ago2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 21 Apr 2006 22:05:32 +0000 (22:05 -0000)]
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlTextArea.cs: Value is HtmlEncoded/Decoded in 2.0. Fixes
bug #78074.

svn path=/trunk/mcs/; revision=59780

18 years ago2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 21 Apr 2006 21:56:39 +0000 (21:56 -0000)]
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ImageListStreamer.cs: save the mask as a 1bpp image.

svn path=/trunk/mcs/; revision=59779

18 years ago2006-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 21 Apr 2006 20:17:53 +0000 (20:17 -0000)]
2006-04-21  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Added new test cases for clipping. Some of them do
not work yet.

svn path=/trunk/mcs/; revision=59778

18 years ago2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 21 Apr 2006 18:51:20 +0000 (18:51 -0000)]
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlInputRadioButton.cs: Value returns the ID only when there's no
"value" set. Fixes bug #78101.

svn path=/trunk/mcs/; revision=59770

18 years ago2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 21 Apr 2006 18:49:53 +0000 (18:49 -0000)]
2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlInputRadioButtonTest.cs: added test for bug #78101.

svn path=/trunk/mcs/; revision=59769

18 years ago* XmlCodeExporterTests.cs: Enabled tests for XmlCodeExporter.
Gert Driesen [Fri, 21 Apr 2006 17:54:54 +0000 (17:54 -0000)]
* XmlCodeExporterTests.cs: Enabled tests for XmlCodeExporter.
* XmlSchemaImporterTests.cs: Fixed EnumSimpleContent test to pass
on MS.NET 2.0.
* XmlCodeExporter.cs: On 2.0 profile, CodeGenerationOptions defaults to
GenerateProperties. Use full type name for XML serialization attributes
instead of shortcut (without Attribute suffix). Always add Namespace
argument for XmlRootAttribute on classes. Added IsNullable argument for
XmlRootRootAttribute on classes. For attribute members, only output
Form argument for XmlSchemaForm.Qualified. Use MapCodeGenerator base
ctor that takes CodeGenerationOptions.
* SoapCodeExporter.cs: Use MapCodeGenerator base ctor that takes
CodeGenerationOptions.
* MapCodeGenerator.cs: Added CodeGenerationOptions to ctor. On 2.0
profile, emit GeneratedCodeAttribute, SerializableAttribute,
DebuggerStepThroughAttribute and DesignerCategoryAttribute for classes.
To match MS.NET, emit attribute members before element members.
* XmlReflectionImporter.cs: Enums are never nullable.
* XmlSchemaImporter.cs: Set IsNullable on map using value of
XmlSchemaElement.IsNillable. Added LocateElement overload that takes
XmlSchemaElement.

svn path=/trunk/mcs/; revision=59768

18 years ago2006-04-21 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 21 Apr 2006 17:27:20 +0000 (17:27 -0000)]
2006-04-21  Mike Kestner  <mkestner@novell.com>

* CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
pass Checked and Indeterminate to the Theme Engine. Improve
encapsulation with ListBox.
* ListBox.cs: Keep a StringFormat instead of calculating it every item
draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
nested types.  Move all CheckState functionality to CheckedListBox.
Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
ScrollAlwaysVisible handling. Refactor "selected" collections to use a
single base list. Fix scrollbar sizing and placement to mirror MS.
* Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
used.
* ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
for CheckedListBox by using new DrawItemState info.  Center the
checkboxes on the items. Use new StringFormat property.

svn path=/trunk/mcs/; revision=59766

18 years ago2006-04-21 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 21 Apr 2006 16:19:15 +0000 (16:19 -0000)]
2006-04-21  Dick Porter  <dick@ximian.com>

        * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
        cleaning up a thread.  Fixes the new part of bug 77470.

2006-04-21  Dick Porter  <dick@ximian.com>

        * threads.c (GetCurrentThread): Reference the handle if we return
        an already-known thread.

2006-04-21  Dick Porter  <dick@ximian.com>

        * threads.c (mono_thread_detach): Fix reference counting when
        detaching threads.

svn path=/trunk/mono/; revision=59764

18 years agoRemove duplicated code
Raja R Harinath [Fri, 21 Apr 2006 14:59:26 +0000 (14:59 -0000)]
Remove duplicated code

svn path=/trunk/mcs/; revision=59760

18 years ago2006-04-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 21 Apr 2006 14:51:24 +0000 (14:51 -0000)]
2006-04-21  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am (SUBDIRS): Revert the last change as arm depends on the old
behaviour.

svn path=/trunk/mono/; revision=59758

18 years ago2006-04-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 21 Apr 2006 14:39:23 +0000 (14:39 -0000)]
2006-04-21  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Enum_ToObject): Improve exception messages. Fixes
#78155.

svn path=/trunk/mono/; revision=59756

18 years ago* Enum.cs: Provide meaningful message when type of passed in value does not
Gert Driesen [Fri, 21 Apr 2006 14:29:58 +0000 (14:29 -0000)]
* Enum.cs: Provide meaningful message when type of passed in value does not
match enum type.

svn path=/trunk/mcs/; revision=59755

18 years ago * UnixFileSystemInfo.cs: rename Create() to GetFileSystemEntry(), and make
Jonathan Pryor [Fri, 21 Apr 2006 13:47:36 +0000 (13:47 -0000)]
  * UnixFileSystemInfo.cs: rename Create() to GetFileSystemEntry(), and make
    it public (so that other's don't need to worry about the
    Syscall.lstat()-and-switch to create a UnixFileSystemInfo instance).
  * UnixDirectoryInfo.cs, UnixSymbolicLinkInfo.cs:
    s/Create/GetFileSystemEntry/g (to cope with above change).

svn path=/trunk/mcs/; revision=59752

18 years ago2006-04-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 21 Apr 2006 13:44:14 +0000 (13:44 -0000)]
2006-04-21  Zoltan Varga  <vargaz@gmail.com>

* corlib.dll.sources: Add System.IO/FileOptions.cs.

svn path=/trunk/mcs/; revision=59751

18 years ago2006-04-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 21 Apr 2006 13:43:51 +0000 (13:43 -0000)]
2006-04-21  Zoltan Varga  <vargaz@gmail.com>

* FileStream.cs: Add new net 2.0 ctor.

* FileOptions.cs: New file.

svn path=/trunk/mcs/; revision=59750

18 years ago2006-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 21 Apr 2006 12:48:45 +0000 (12:48 -0000)]
2006-04-21  Sebastien Pouliot  <sebastien@ximian.com>

* SslCipherSuite.cs: Enable abbreviated handshakes for SSL3 too.

svn path=/trunk/mcs/; revision=59745

18 years ago2006-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 21 Apr 2006 12:47:45 +0000 (12:47 -0000)]
2006-04-21  Sebastien Pouliot  <sebastien@ximian.com>

* poll.cs: New test tool contributed by Simon Brys for bug #78085.
It's a good test for the abbreviated handshake.
* Makefile: Build/clean for poll.exe

svn path=/trunk/mcs/; revision=59744

18 years agoIn mcs and gmcs:
Raja R Harinath [Fri, 21 Apr 2006 08:50:18 +0000 (08:50 -0000)]
In mcs and gmcs:
Fix cs1655.cs
* codegen.cs (EmitContext.InRefOutArgumentResolving): Remove.
* expression.cs (EmptyExpression.LValueMemberOutAccess): New.
(LocalVariableReference.DoResolveBase): Use it to implement new
CS1655 check.
(IndexerAccess.DoResolveLValue): Handle LValueMemberOutAccess.
(Argument.Resolve): Simplify.  Move CS1510 check ...
* ecore.cs (Expression.ResolveLValue): ... here.
(UnboxCast.DoResolveLValue): Handle LValueMemberOutAccess.
(PropertyExpr.DoResolveLValue): Likewise.
(FieldExpr.Report_AssignToReadonly): Likewise.
(FieldExpr.DoResolve): Add 'out_access' argument.  Use
LValueMemberAccess or LValueMemberOutAccess on instance depending
on it.
(FieldExpr.DoResolveLValue): Pass 'out_access' argument to
DoResolve as appropriate.

svn path=/trunk/mcs/; revision=59731

18 years ago2006-04-21 Senganal T <tsenganal@novell.com>
Senganal T [Fri, 21 Apr 2006 08:11:46 +0000 (08:11 -0000)]
2006-04-21  Senganal T <tsenganal@novell.com>

* Test/System.Data/DataTableTest2.cs : Test Duplicate values are handled appropriatly
during table loading ( BeginLoadData , EndLoadData). Test LoadDataRow
behaves appropriately if called outside BeginLoadData,EndLoadData.
* System.Data/DataRowCollection.cs :
- Find : If search on the table using PrimaryKey fails and if
index is not being maintained (during table load), search the
entire table.
- Find (int) : Removed. Deadcode.
- Clear :
- Not necessary to delete each row from the Index.
Just reset the Indexes after cleaning up the row
collection.
- Simplify dependency check for child tables
* System.Data/DataTable.cs :
- LoadDataRow :
- Do not use DataRowCollection.Find to search for
existing records as this wud check even newly loaded rows.
Use Index.Find.
- Do not add new records to Index. Update Index only
if an existing record is modified. New records will be
taken care by EndLoadData.

svn path=/trunk/mcs/; revision=59730

18 years ago2006-04-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 21 Apr 2006 06:47:26 +0000 (06:47 -0000)]
2006-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* WinSerialPort.cs: Inital import of the backend stream
for Windows support.

svn path=/trunk/mcs/; revision=59729

18 years ago2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 21 Apr 2006 02:29:45 +0000 (02:29 -0000)]
2006-04-21  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
  rejected after writing some content. I totally disagree on that
  it should be allowed, but here is the fix.

* XmlTextWriterTests.cs : test for bug #78148.

svn path=/trunk/mcs/; revision=59722

18 years ago2006-04-20 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Thu, 20 Apr 2006 23:19:16 +0000 (23:19 -0000)]
2006-04-20  Geoff Norton  <gnorton@customerdna.com>

        * serial.c: Change TIOCINQ to FIONREAD to
        fix the build on the *BSDs.

svn path=/trunk/mono/; revision=59720

18 years ago2006-04-21 Alp Toker <alp@atoker.com>
Alp Toker [Thu, 20 Apr 2006 23:11:37 +0000 (23:11 -0000)]
2006-04-21  Alp Toker  <alp@atoker.com>

  * scripts/mono-service.in: Usage info fixes:
  Lock file was referred to as .log instead of .lock. Fixes #75724.
  $0 was in single-quoted, so not interpreted.

svn path=/trunk/mono/; revision=59719

18 years ago2006-04-20 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Thu, 20 Apr 2006 22:59:19 +0000 (22:59 -0000)]
2006-04-20  Geoff Norton  <gnorton@customerdna.com>

        * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
        to managed wrapper.

svn path=/trunk/mono/; revision=59718

18 years ago2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 20 Apr 2006 22:45:54 +0000 (22:45 -0000)]
2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebProxy.cs: a .ctor was not forwarding the 'credentials' argument.
This fixes bug #78150. Also fix the bypass check for local requests.

svn path=/trunk/mcs/; revision=59715

18 years ago2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 20 Apr 2006 22:29:46 +0000 (22:29 -0000)]
2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebProxy.cs: removed bogus ^M.

svn path=/trunk/mcs/; revision=59714

18 years ago2006-04-20 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 20 Apr 2006 20:02:59 +0000 (20:02 -0000)]
2006-04-20  Peter Dennis Bartok  <pbartok@novell.com>

* BitmapData.cs: Updated to match the BitmapData structure
  from libgdiplus r59689.

svn path=/trunk/mcs/; revision=59709

18 years ago* XmlCodeExporterTests.cs: Added tests for XmlCodeExporter (currently
Gert Driesen [Thu, 20 Apr 2006 18:16:49 +0000 (18:16 -0000)]
* XmlCodeExporterTests.cs: Added tests for XmlCodeExporter (currently
marked NotWorking).
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlCodeExporterTests.cs.

svn path=/trunk/mcs/; revision=59707

18 years ago2006-04-20 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 20 Apr 2006 17:14:45 +0000 (17:14 -0000)]
2006-04-20  Chris Toshok  <toshok@ximian.com>

        * BaseCompiler.cs: for 2.0, emit the correct namespace and class
        names in the case where you use "NS.ClassName" in the Inherits
        attribute.  Fixes bug #78135.

svn path=/trunk/mcs/; revision=59706

18 years ago2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 20 Apr 2006 16:32:38 +0000 (16:32 -0000)]
2006-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
already acquired the lock even when we might have not created the 'key'
to the compilation ticket.

svn path=/trunk/mcs/; revision=59705

18 years ago2006-04-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 20 Apr 2006 13:25:09 +0000 (13:25 -0000)]
2006-04-20  Sebastien Pouliot  <sebastien@ximian.com>

* LinearGradientBrushTest.cs: Remove "NonWorking" from many test
cases. Added more test cases for non-invertible matrix and to ensure
all matrix-based transformation are correct.

svn path=/trunk/mcs/; revision=59699

18 years agoFix #75800
Raja R Harinath [Thu, 20 Apr 2006 13:03:42 +0000 (13:03 -0000)]
Fix #75800
* mcs/expression.cs (Invocation.VerifyArgumentsCompat): Don't try
implicit conversions on 'out' and 'ref' arguments.
* gmcs/expression.cs: Likewise.
* errors/cs1502-7.cs: New test from #75800.

svn path=/trunk/mcs/; revision=59696

18 years ago* mcs/expression.cs (Invocation.VerifyArgumentsCompat): Reorganize to
Raja R Harinath [Thu, 20 Apr 2006 12:49:26 +0000 (12:49 -0000)]
* mcs/expression.cs (Invocation.VerifyArgumentsCompat): Reorganize to
improve clarity.  Remove dead code.
* gmcs/expression.cs: Likewise.

svn path=/trunk/mcs/; revision=59695

18 years agoIn mcs and gmcs:
Raja R Harinath [Thu, 20 Apr 2006 11:14:15 +0000 (11:14 -0000)]
In mcs and gmcs:
Fix #66031
* statement.cs (Block.UsageWarning): Allow VariableInfo to be null.
(Catch.Resolve): Resolve VarBlock if it exists.

In errors:
* cs0168-2.cs: New test from #66031.

svn path=/trunk/mcs/; revision=59691

18 years ago* CodeGeneratorFromNamespaceTest.cs: Added tests for
Gert Driesen [Thu, 20 Apr 2006 11:06:27 +0000 (11:06 -0000)]
* CodeGeneratorFromNamespaceTest.cs: Added tests for
GenerateCodeFromNamespace.
* System_test.dll.sources: Added CodeGeneratorFromNamespaceTest.cs from
Microsoft.VisualBasic.
* CodeGenerator.cs: Output empty line between types if
BlankLinesBetweenMembers option is set.
* VBCodeGenerator.cs: Empty line and comments should be output after
namespace imports.
* CodeGeneratorFromNamespaceTest.cs: Added tests for namespace imports
and types.

svn path=/trunk/mcs/; revision=59690

18 years agoensure rebinding when FormView.PageIndex is called
Konstantin Triger [Thu, 20 Apr 2006 09:15:05 +0000 (09:15 -0000)]
ensure rebinding when FormView.PageIndex is called

svn path=/trunk/mcs/; revision=59688

18 years agoMenuItem.cs: bind to NavigateUrl; CompositeDataBoundControl.cs: ensures data is bound...
Konstantin Triger [Thu, 20 Apr 2006 09:01:57 +0000 (09:01 -0000)]
MenuItem.cs: bind to NavigateUrl; CompositeDataBoundControl.cs: ensures data is bound; Menu.cs: fixed binding

svn path=/trunk/mcs/; revision=59687

18 years ago* UnixRegistryApi.cs: In KeyHandler.SetValue, immediately convert
Gert Driesen [Thu, 20 Apr 2006 08:11:31 +0000 (08:11 -0000)]
* UnixRegistryApi.cs: In KeyHandler.SetValue, immediately convert
instances of non-native registry types (meaning int, string, string[]
or byte[]) to string. This avoids returning an instance of a non-native
registry type in calls to UnixRegistryApi.GetValue. Allow instances of
non-native registry types in UnixRegistryApi.SetValue. Fixes bug #78132.
* RegistryKeyTest.cs: Added tests for bug #78132.

svn path=/trunk/mcs/; revision=59685

18 years agofix few null reference exceptions
Andrew Skiba [Thu, 20 Apr 2006 07:53:20 +0000 (07:53 -0000)]
fix few null reference exceptions

svn path=/trunk/mcs/; revision=59682

18 years ago2006-04-19 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 20 Apr 2006 02:21:50 +0000 (02:21 -0000)]
2006-04-19  Miguel de Icaza  <miguel@novell.com>

* statement.cs (Foreach.EmitFinally): Do not emit the enumerator
twice, this was some residual code, the enumerator was emitted
properly in the two branche of if later.

Fixes #78031

Thanks to Martin for finding the source of the problem

svn path=/trunk/mcs/; revision=59679

18 years ago2006-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Apr 2006 21:39:26 +0000 (21:39 -0000)]
2006-04-19  Zoltan Varga  <vargaz@gmail.com>

* mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.

svn path=/trunk/mono/; revision=59671

18 years ago2006-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Apr 2006 21:38:16 +0000 (21:38 -0000)]
2006-04-19  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_type_to_ldind): New helper function moved here from mini.c
(mono_type_to_stind): Ditto.

* marshal.c: Use the new helper functions to simplify code.

svn path=/trunk/mono/; revision=59670

18 years ago2006-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Apr 2006 20:33:50 +0000 (20:33 -0000)]
2006-04-19  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_close): Add some code for help debug assembly unloading
problems.

* metadata.c (mono_metadata_parse_type_full): Allocate MonoType's from the
image mempool.

svn path=/trunk/mono/; revision=59668

18 years ago2006-04-19 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 19 Apr 2006 19:46:35 +0000 (19:46 -0000)]
2006-04-19  Peter Dennis Bartok  <pbartok@novell.com>

* BitmapData.cs: Updated to match the BitmapData structure
  from libgdiplus r59661.

svn path=/trunk/mcs/; revision=59662

18 years ago2006-04-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 19 Apr 2006 17:05:43 +0000 (17:05 -0000)]
2006-04-19  Sebastien Pouliot  <sebastien@ximian.com>

* SessionConfig.cs: Avoid a cast.
* SessionDictionary.cs: Remove unused internal methods.
* SessionId.cs: Const-ify internal/private values.
* SessionStateModule.cs: Const-ify internal/private values.

svn path=/trunk/mcs/; revision=59653

18 years agoGraphicsPathTest.cs: Add test cases for Wrap and Widen (most of them are current...
Sebastien Pouliot [Wed, 19 Apr 2006 15:48:23 +0000 (15:48 -0000)]
GraphicsPathTest.cs: Add test cases for Wrap and Widen (most of them are current 'NotWorking').

svn path=/trunk/mcs/; revision=59648

18 years ago2006-04-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 19 Apr 2006 15:02:27 +0000 (15:02 -0000)]
2006-04-19  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPath.cs: Fix null pen handling in Widen.
* LinearGradientBrush.cs: Avoid temporary Rectangle local and directly
get use the instance RectangleF.

svn path=/trunk/mcs/; revision=59645

18 years ago2006-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Apr 2006 14:54:42 +0000 (14:54 -0000)]
2006-04-19  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
SIGSEGV. Fixes #78072.

* mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
unregister our SIGABRT handler.

svn path=/trunk/mono/; revision=59644

18 years ago2006-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Apr 2006 14:28:32 +0000 (14:28 -0000)]
2006-04-19  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_open_full): Invoke the load hook when the
assembly was already loaded in another appdomain. Fixes #78083.

svn path=/trunk/mono/; revision=59643

18 years ago2006-04-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 19 Apr 2006 12:30:33 +0000 (12:30 -0000)]
2006-04-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.Build.Utilities.targets: Removed.

svn path=/trunk/mcs/; revision=59641

18 years ago2006-04-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 19 Apr 2006 12:29:10 +0000 (12:29 -0000)]
2006-04-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.Build.Tasks.targets: Removed.

svn path=/trunk/mcs/; revision=59640

18 years ago2006-04-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 19 Apr 2006 12:28:06 +0000 (12:28 -0000)]
2006-04-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.Build.Framework.targets: Removed.

svn path=/trunk/mcs/; revision=59639

18 years ago2006-04-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 19 Apr 2006 12:26:54 +0000 (12:26 -0000)]
2006-04-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.Build.Engine.targets: Removed.

svn path=/trunk/mcs/; revision=59638

18 years ago2006-04-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Wed, 19 Apr 2006 12:25:47 +0000 (12:25 -0000)]
2006-04-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * XBuild.targets: Removed.
        * xbuild/Microsoft.Build.xsd: Changed path separator.

svn path=/trunk/mcs/; revision=59637

18 years ago* Char.cs (Equals): Don't access 'm_value' field of other
Raja R Harinath [Wed, 19 Apr 2006 12:20:18 +0000 (12:20 -0000)]
* Char.cs (Equals): Don't access 'm_value' field of other
instances.  Cast directly to 'char'.

make it similar to other builtins (System.Int32 etc.)  A quick grep
shows that all 'm_value's are 'this_access'es.

svn path=/trunk/mcs/; revision=59636

18 years ago * test-inline-call-stack.cs: Added missing check.
Massimiliano Mantione [Wed, 19 Apr 2006 12:06:56 +0000 (12:06 -0000)]
* test-inline-call-stack.cs: Added missing check.

svn path=/trunk/mono/; revision=59635

18 years ago2006-04-19 Massimiliano Mantione <massi@ximian.com>
Massimiliano Mantione [Wed, 19 Apr 2006 12:00:15 +0000 (12:00 -0000)]
2006-04-19  Massimiliano Mantione  <massi@ximian.com>
* Makefile.am: Added tests to see if inline breaks the call stack.
* test-inline-call-stack.cs: Likewise.
* test-inline-call-stack-library.cs: Likewise.

svn path=/trunk/mono/; revision=59633

18 years ago * mini.c: Disabled inline where it can alter the call stack in a
Massimiliano Mantione [Wed, 19 Apr 2006 11:31:50 +0000 (11:31 -0000)]
    * mini.c: Disabled inline where it can alter the call stack in a
way visible from managed code.
* driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
default.

svn path=/trunk/mono/; revision=59632

18 years ago2006-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Apr 2006 11:18:36 +0000 (11:18 -0000)]
2006-04-19  Atsushi Enomoto <atsushi@ximian.com>

* NvdlFilteredXmlReader.cs :
  Made placeholder element as "empty" i.e. IsEmptyElement = true.
  As long as it is at placeholder state, it keeps being placeholder
  empty element until DetachPlaceholder() is explicitly called. It
  makes this reader simpler.
* NvdlValidator.cs : (NvdlResultInterp) for AttachPlaceHolder it does
  not have to do anything other than AttachPlaceholder().
  (NvdlValidateInterp) Now that placeholder becomes an empty element
  it does not have to validate content anymore at DetachPlaceholder().

svn path=/trunk/mcs/; revision=59631

18 years agoIn mcs and gmcs:
Raja R Harinath [Wed, 19 Apr 2006 10:15:22 +0000 (10:15 -0000)]
In mcs and gmcs:
* expression.cs (Cast.ResolveLValue): Remove.  The result of a
cast is never an lvalue.
(Cast.DoResolve, Cast.ResolveRest): Combine.
(Argument.Emit): Simplify slightly.  Move 'Expr is
IMemoryLocation' check ...
(Argument.Resolve): ... here.
(Argument.Error_LValueRequired): Remove.  Inline into only user.

svn path=/trunk/mcs/; revision=59630

18 years ago* UnixRegistryApi.cs: Only consider the "software" subkey a well-known
Gert Driesen [Wed, 19 Apr 2006 09:02:32 +0000 (09:02 -0000)]
* UnixRegistryApi.cs: Only consider the "software" subkey a well-known
key if the parent is either HKEY_USERS or HKEY_LOCAL_MACHINE.
* RegistryKeyTest.cs: Added tests for OpenSubKey and CreateSubKey.

svn path=/trunk/mcs/; revision=59628

18 years agoIn mcs and gmcs:
Raja R Harinath [Wed, 19 Apr 2006 08:41:59 +0000 (08:41 -0000)]
In mcs and gmcs:
Simplifications.  Fix cs0191-2.cs
* ecore.cs (FieldExpr.DoResolve): Move handling of CS0192, CS0198,
CS1649 and CS1651 to ...
(FieldExpr.Report_AssignToReadonly): ... this.  Simplify by moving
the actual selection of the error code and message to a lookup
table.  Add a dummy return value to simplify callsites.
(FieldExpr.ResolveLValue): Don't allow a constructor to write to
readonly fields of other instances of the same type.  Move CS0197
warning from ...
* expression.cs (Argument.Resolve): ... here.  Simplify code.
Ensure that ec.InRefOutArgumentResolving is only set during LValue
resolution of an out or ref argument.  The code simplification
above uses this invariant.

svn path=/trunk/mcs/; revision=59626

18 years ago2006-04-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 19 Apr 2006 08:14:45 +0000 (08:14 -0000)]
2006-04-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* serial.c: Added poll_serial () function, to poll
outside the read_serial () functions; and get_bytes_in_buffer (), to
get bytes in serialport buffers . Update some functions/enums
used by System.IO.Port.SerialPort too (Changes aproved by Miguel:
we will add tests in the managed side).

svn path=/trunk/mono/; revision=59625

18 years ago2006-04-19 Senganal T <tsenganal@novell.com>
Senganal T [Wed, 19 Apr 2006 08:04:44 +0000 (08:04 -0000)]
2006-04-19  Senganal T  <tsenganal@novell.com>

* Test/System.Xml/XmlDataDocumentTest2.cs : Test if DataSet schema with whitespace
characters are saved and loaded correctly, Test if null values are
correctly saved and loaded, Test if creating a row in Dataset is
reflected in the document.
* Test/System.Data/DataSetTest2.cs : Test if ConstraintName with whitespace is saved
correctly.
* System.Xml/XmlDataDocument.cs :
- Use encoded names for DataSet schema.
- StringToElement : Return 'null' if the value is empty string
or null.
- OnDataTableRowAdded : Add the row elements to the tablenode if
they are not already added.
* System.Data/XmlHelper.cs : A helper class for encoding/decoding schema names.
Caches the Schema names to minimize encoding/decoding operations and
duplicate strings created.
* System.Data/XmlSchemaWriter :
- Use XmlHelper for encoding/decoding schema names.
- Encode ConstraintNames when writing as xml.
* System.Data/DataSet.cs
* System.Data/XmlDataReader.cs
* System.Data/XmlDataInferenceLoader.cs
* System.Data/XmlSchemaDataImporter.cs
- Use XmlHelper for encoding/decoding schema names.
* System.Data/DataTableCollections : Minor code refactor.
* System.Data/DataRow.cs : Create XmlElement only if required.

svn path=/trunk/mcs/; revision=59624

18 years ago2006-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Apr 2006 07:20:11 +0000 (07:20 -0000)]
2006-04-19  Atsushi Enomoto <atsushi@ximian.com>

* NvdlReader.cs, NvdlFilteredXmlReader.cs :
  placeHolder -> placeholder. Also reject unrecognized NVDL elements
  in NvdlReader.

svn path=/trunk/mcs/; revision=59621

18 years ago2006-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Apr 2006 06:55:10 +0000 (06:55 -0000)]
2006-04-19  Atsushi Enomoto <atsushi@ximian.com>

* NvdlException.cs : provide BaseURI in such case that argument
  IXmlLineInfo is XmlReader.
* NvdlValidator.cs : NvdlDispatcher was incorrectly replacing
  current section when an empty element appears (it kept such empty
  element section).

svn path=/trunk/mcs/; revision=59620

18 years ago2006-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Apr 2006 03:52:41 +0000 (03:52 -0000)]
2006-04-19  Atsushi Enomoto <atsushi@ximian.com>

* NvdlRelaxngSupport.cs : It seems that the validating grammar for
  planAtt should always contain a definition for virtualElement i.e.
  it is not something that NVDL validator should provide
  automatically. (It makes sense since RELAX NG does not support
  attribute-only grammar definition.)
* NvdlFilteredXmlReader.cs : for validating attributes, filter xmlns
  attributes out.

svn path=/trunk/mcs/; revision=59619

18 years ago2006-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Apr 2006 03:50:07 +0000 (03:50 -0000)]
2006-04-19  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngValidatingReader.cs : (.ctor) reject null pattern.
  To filter xmlns attributes out, just use NamespaceURI.

svn path=/trunk/mcs/; revision=59618

18 years ago * Form.cs: MdiChildren don't do default locations the same way
Jackson Harper [Tue, 18 Apr 2006 20:52:51 +0000 (20:52 -0000)]
    * Form.cs: MdiChildren don't do default locations the same way
        * as
        regular forms.  This prevents a crash when trying to position
the
        mdi windows.

svn path=/trunk/mcs/; revision=59611

18 years ago2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 18 Apr 2006 20:47:51 +0000 (20:47 -0000)]
2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpResponse.cs:
(TransmitFile): make sure we can read the file before buffering it.

svn path=/trunk/mcs/; revision=59609

18 years ago2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 18 Apr 2006 17:20:25 +0000 (17:20 -0000)]
2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpApplicationFactory.cs: don't fail on events that are not
EventHandlers. Patch by Matthew Metnetsky.

svn path=/trunk/mcs/; revision=59605

18 years ago2006-04-18 Cesar Lopez Nataren <cesar.nataren@medsphere.com>
César Natarén [Tue, 18 Apr 2006 16:07:50 +0000 (16:07 -0000)]
2006-04-18  Cesar Lopez Nataren  <cesar.nataren@medsphere.com>

* TokenStream.cs: Ciao to_string.

svn path=/trunk/mcs/; revision=59598

18 years ago2006-04-18 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 18 Apr 2006 14:35:54 +0000 (14:35 -0000)]
2006-04-18  Miguel de Icaza  <miguel@novell.com>

* TokenStream.cs: kill to_string method, it was one inneficient
way of turning char [] into strings.  Use the proper String
constructor for that.

svn path=/trunk/mcs/; revision=59594