mono.git
16 years ago2008-04-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 19 Apr 2008 15:41:47 +0000 (15:41 -0000)]
2008-04-19  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil.Mdb/MdbReader.cs: Update wrt interface change (i.e.
Read now provide a Dictionary to reuse the existing Hashtable
between offsets and instructions).

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

16 years ago2008-04-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 19 Apr 2008 15:41:35 +0000 (15:41 -0000)]
2008-04-19  Sebastien Pouliot  <sebastien@ximian.com>

* Mono.Cecil.Cil/CodeReader.cs:
* Mono.Cecil.Cil/ISymbolReader.cs:
Move reading of debugging symbols where it's possible to
reuse the existing Hashtable (offset, Instruction) in
the debugging libraries. Change interface to allow
passing the Hashtable.

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

16 years ago2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 19 Apr 2008 15:38:39 +0000 (15:38 -0000)]
2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>

* Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes
the build.

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

16 years ago2008-04-19 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sat, 19 Apr 2008 15:24:22 +0000 (15:24 -0000)]
2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>

* ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0
group. Fixes the 1.1 build.

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

16 years agoIn Test/System.Data.SqlClient:
Robert Jordan [Sat, 19 Apr 2008 15:14:40 +0000 (15:14 -0000)]
In Test/System.Data.SqlClient:
2008-04-19  Robert Jordan  <robertj@gmx.net>

* SqlCommandTest.cs: Add test case for bug #381100.

In System.Data.SqlClient:
2008-04-19  Robert Jordan  <robertj@gmx.net>

* SqlParameterCollection.cs (AddRange(SqlParameter[])):
Fix endless recursion.

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

16 years ago2008-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Apr 2008 14:18:56 +0000 (14:18 -0000)]
2008-04-19  Zoltan Varga  <vargaz@gmail.com>

* amd64/amd64-codegen.h (amd64_is_imm32): Use gint64 instead of glong because of
win64.

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

16 years ago2008-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Apr 2008 14:18:15 +0000 (14:18 -0000)]
2008-04-19  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (amd64_patch): Make the check for (%rip) addressing more strict.

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

16 years agowe pass those guys
Jb Evain [Sat, 19 Apr 2008 13:28:55 +0000 (13:28 -0000)]
we pass those guys

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

16 years ago2008-04-19 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 19 Apr 2008 13:28:34 +0000 (13:28 -0000)]
2008-04-19  Jb Evain  <jbevain@novell.com>

* EmitContext.cs: infrastructure work to attach a compiled
lambda expression to an execution scope, and to detect and store
external globals in the scope.
* ConstantExpression.cs: load globals from the scope.

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

16 years ago2008-04-19 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 19 Apr 2008 13:23:20 +0000 (13:23 -0000)]
2008-04-19  Jb Evain  <jbevain@novell.com>

* ExecutionScope.cs: change the constructor to take a list
of globals.

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

16 years agocomplete
Jb Evain [Sat, 19 Apr 2008 12:34:02 +0000 (12:34 -0000)]
complete

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

16 years agoadd test for globals
Jb Evain [Sat, 19 Apr 2008 12:27:30 +0000 (12:27 -0000)]
add test for globals

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

16 years ago2008-04-19 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 19 Apr 2008 12:14:22 +0000 (12:14 -0000)]
2008-04-19  Jb Evain  <jbevain@novell.com>

* ExpressionVisitor.cs (Visit): don't die because of Power.

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

16 years agocomplete
Jb Evain [Sat, 19 Apr 2008 11:52:33 +0000 (11:52 -0000)]
complete

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

16 years agoremove changelogs from the projects
Jb Evain [Sat, 19 Apr 2008 11:48:21 +0000 (11:48 -0000)]
remove changelogs from the projects

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

16 years agotest for lambda targets
Jb Evain [Sat, 19 Apr 2008 11:46:07 +0000 (11:46 -0000)]
test for lambda targets

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

16 years ago * ListView.cs: Use display indexes for selection in Details view, as
Carlos Alberto Cortez [Sat, 19 Apr 2008 04:19:46 +0000 (04:19 -0000)]
* ListView.cs: Use display indexes for selection in Details view, as
well as do the proper layout based on display indexes for that view
too.

2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 19 Apr 2008 03:21:19 +0000 (03:21 -0000)]
2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Focused item information is now stored as a display
index, and display indexes are used all over the place for selection,
instead of ListViewItem.Index values, which doesn't give us enough
information to modify the selection in groups mode, and was broken.

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

16 years ago2008-04-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 19 Apr 2008 00:16:16 +0000 (00:16 -0000)]
2008-04-19  Marek Habersack  <mhabersack@novell.com>

* HttpException.cs: don't write the stack trace inside html
comment if custom errors are enabled.

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

16 years ago2008-04-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Apr 2008 23:13:00 +0000 (23:13 -0000)]
2008-04-19  Marek Safar  <marek.safar@gmail.com>

* generic.cs, parameter.cs, namespace.cs, ecore.cs, class.cs, decl.cs,
delegate.cs, iterators.cs, cs-parser.jay, const.cs, enum.cs: Use
FullNamedExpression in all declaration type expression, statements will come
later.

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

16 years ago2008-04-18 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 18 Apr 2008 23:07:45 +0000 (23:07 -0000)]
2008-04-18  Miguel de Icaza  <miguel@novell.com>

* Applied patch from Dick Porter from bug #380649

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

16 years ago2008-04-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Apr 2008 22:35:47 +0000 (22:35 -0000)]
2008-04-19  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: refactoring - move code between
constructors, reader should be set before initializing the rest of
the object. Fixes bug #381364

* TemplateParser.cs: RegisterCustomControl must use absolute
virtual path when querying the virtual path provider for
file. Fixes bug #381364
2008-04-19  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: use absolute virtual path to query the
VirtualPathProvider for path existence.
When ASP.NET is self-hosted, force
        non-batch compilation. Fixes bug #380985

* ILocation.cs: added a new property, FileText.

* Location.cs: added implementation of the ILocation.FileText
property.

* ParseException.cs: use the new ILocation.FileText, if defined,
to get the file source.

* AspGenerator.cs: when TextReader is present, use it to read with
the VirtualPathProvider to read the file source. Fixes bug #381364

* AspParser.cs: added a new property FileText to provide the file
contents which was read in the constructor.

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

16 years ago2008-04-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Apr 2008 21:55:41 +0000 (21:55 -0000)]
2008-04-18  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFileTest.cs: Add test cases for creating sub-
directories and to delete them (bug #376188)

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

16 years ago2008-04-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Apr 2008 21:54:27 +0000 (21:54 -0000)]
2008-04-18  Sebastien Pouliot  <sebastien@ximian.com>

* IsolatedStorageFile.cs: Fix CreateDirectory to accept multiple
subdirectories. Avoid leaking full path in DeleteDirectory. Fix
GetDirectoryNames to work with path (and the search pattern).
[Fix bug #376188]

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

16 years ago2008-04-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 18 Apr 2008 21:50:34 +0000 (21:50 -0000)]
2008-04-18  Sebastien Pouliot  <sebastien@ximian.com>

* Path.cs: Change PathSeparatorChars from private to internal since
it's needed for IsolatedStorage.

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

16 years ago* Mono.WebBrowser/DOM/IDocument.cs, Mono.Mozilla/DOM/Document.cs,
Andreia Gaita [Fri, 18 Apr 2008 21:01:27 +0000 (21:01 -0000)]
* Mono.WebBrowser/DOM/IDocument.cs, Mono.Mozilla/DOM/Document.cs,
  Mono.Mozilla/Base.cs: Add javascript script evaluation support
* Mono.WebBrowser/IWebBrowser.cs, Mono.Mozilla/WebBrowser.cs: Add
  StatusChanged event handler and args
* Mono.Mozilla/Callback.cs: Change OnStatusChange callback signature to
  unicode, implement listeners call.

2008-04-18  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 18 Apr 2008 20:55:33 +0000 (20:55 -0000)]
2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>

* CollectionEditor.cs: Select the next item after the one
removed, not the one before.
[Fixes bug #375788]

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

16 years agofix compile
Marek Habersack [Fri, 18 Apr 2008 20:31:40 +0000 (20:31 -0000)]
fix compile

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

16 years ago2008-04-18 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 18 Apr 2008 20:28:04 +0000 (20:28 -0000)]
2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>

* Control.cs: Do not fire MouseDown if validation of the control has
failed.
* Form.cs: Validate the form before closing.
[Fixes bugs #330501 and #353310]

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

16 years ago2008-04-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Apr 2008 20:00:19 +0000 (20:00 -0000)]
2008-04-18  Marek Habersack  <mhabersack@novell.com>

* CompilationSection.cs: when ASP.NET is self-hosted, force
non-batch compilation. Fixes bug #380985

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

16 years ago* Mono.Mozilla.dll.sources, Mono.Mozilla2K5.csproj: Added new generated
Andreia Gaita [Fri, 18 Apr 2008 19:41:57 +0000 (19:41 -0000)]
* Mono.Mozilla.dll.sources, Mono.Mozilla2K5.csproj: Added new generated
  interfaces for "Save to Disk" support and page loading monitoring
* Mono.Mozilla/interfaces/nsICancelable.cs,
  Mono.Mozilla/interfaces/nsIWebBrowserPersist.cs: Interfaces for
  "Save to Disk" support
* Mono.Mozilla/interfaces/nsIWebProgress.cs,
  Mono.Mozilla/interfaces/nsIWebProgressListener.cs: Interfaces for
  page loading monitoring

2008-04-18  Andreia Gaita <avidigal@novell.com>

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

16 years ago* tools/xpidl2cs/xpidl2cs.pl: Fix parsing for non-scriptable interfaces
Andreia Gaita [Fri, 18 Apr 2008 19:38:55 +0000 (19:38 -0000)]
* tools/xpidl2cs/xpidl2cs.pl: Fix parsing for non-scriptable interfaces

2008-04-18  Andreia Gaita <avidigal@novell.com>

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

16 years ago* build-csproj2k5: Fix line endings
Andreia Gaita [Fri, 18 Apr 2008 19:37:42 +0000 (19:37 -0000)]
* build-csproj2k5: Fix line endings

2008-04-18  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-04-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Apr 2008 19:33:59 +0000 (19:33 -0000)]
2008-04-18  Marek Habersack  <mhabersack@novell.com>

* ObjectStateFormatter.cs: ObjectFormatter.WriteObject should not
use a converter if it can't convert _from_ the type of the object
being written to the stream. Fixes issues with serializing, e.g.,
a DataSet.

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

16 years ago* System.Windows.Forms/WebBrowserBase.cs: Added WndProc, DrawToBitmap,
Andreia Gaita [Fri, 18 Apr 2008 19:32:04 +0000 (19:32 -0000)]
* System.Windows.Forms/WebBrowserBase.cs: Added WndProc, DrawToBitmap,
  CreateWebBrowserSiteBase implementations
* System.Windows.Forms/HtmlElement.cs: Add missing OuterHTML, OuterText
  setters, stubbed Style and TabIndex setters

2008-04-18  Andreia Gaita <avidigal@novell.com>

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

16 years ago* cormissing.js: Added support for argument classes.
Gert Driesen [Fri, 18 Apr 2008 18:14:00 +0000 (18:14 -0000)]
* cormissing.js: Added support for argument classes.

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

16 years ago2008-04-18 Wade Berrier <wberrier@novell.com>
Wade Berrier [Fri, 18 Apr 2008 17:14:58 +0000 (17:14 -0000)]
2008-04-18  Wade Berrier  <wberrier@novell.com>

       * scripts/mono-find-requires.in: Add env var to ignore scanning
       of .config files.
       Fix extra whitespace when no config reqs are found.

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

16 years agoNew test.
Marek Safar [Fri, 18 Apr 2008 16:54:57 +0000 (16:54 -0000)]
New test.

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

16 years ago2008-04-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Apr 2008 16:54:10 +0000 (16:54 -0000)]
2008-04-18  Marek Safar  <marek.safar@gmail.com>

* generic.cs, namespace.cs, ecore.cs, class.cs, decl.cs, generic-mcs.cs,
nullable.cs, expression.cs, enum.cs, doc.cs: Cleaning up type expressions.

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

16 years ago2008-04-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 18 Apr 2008 15:57:18 +0000 (15:57 -0000)]
2008-04-18  Jonathan Pobst  <monkey@jpobst.com>

* propertygrid-alphabetical.png: Make icon correct size and
  add a little bit more color so it doesn't look disabled.

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

16 years ago2008-04-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 18 Apr 2008 15:06:56 +0000 (15:06 -0000)]
2008-04-18  Marek Safar  <marek.safar@gmail.com>

* parameter.cs, delegate.cs, cs-parser.jay, expression.cs: Removed unused
code.

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

16 years ago2008-04-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 18 Apr 2008 12:59:55 +0000 (12:59 -0000)]
2008-04-18  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: when any parsing error occurs during batch
building, ignore the file which caused it. If the file with
parsing error is the one requested by user, throw the parsing
exception. Fixes bug #323742

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

16 years ago * ListViewGroup.cs: When returning the actual item count, return the
Carlos Alberto Cortez [Fri, 18 Apr 2008 10:45:20 +0000 (10:45 -0000)]
* ListViewGroup.cs: When returning the actual item count, return the
proper count for default group.
Fix the tests.

2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * ListView.cs:
Carlos Alberto Cortez [Fri, 18 Apr 2008 10:16:25 +0000 (10:16 -0000)]
* ListView.cs:
* ListViewGroup.cs: When calculating groups layout, get the actual
number of items per group, since groups added to the group BUT not
added to the ListView are just ignored, and can cause some nasty
exceptions because of the lack of synchronization. Also for
ListViewGroup don't use lazy initialization for items, since we
the common scenario is to use it always - and it helps us to  refactor
and clean the .ctor overloads.

2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-04-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 18 Apr 2008 09:47:19 +0000 (09:47 -0000)]
2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: When adding an item to a ListViewItemCollection
belonging to a group (ListViewGroup.Items), don't generate a redraw if
the added item hasn't beeen previously added to the ListView instance
refered by the group, since it will be ignored. This should avoid some
really nasty flickering.

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

16 years ago* FileVerionInfoTest.cs: Enabled test for bug #374600.
Gert Driesen [Fri, 18 Apr 2008 08:51:05 +0000 (08:51 -0000)]
* FileVerionInfoTest.cs: Enabled test for bug #374600.

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

16 years ago* FileWebRequestTest.cs: Now that we have proper locking for file
Gert Driesen [Fri, 18 Apr 2008 08:49:53 +0000 (08:49 -0000)]
* FileWebRequestTest.cs: Now that we have proper locking for file
deletes on unix, bug #323388 applies to unix as well.

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

16 years agoFix
Miguel de Icaza [Thu, 17 Apr 2008 23:55:08 +0000 (23:55 -0000)]
Fix

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

16 years agoRemove redundant timeout check, de-select, use-poll instead
Miguel de Icaza [Thu, 17 Apr 2008 23:49:58 +0000 (23:49 -0000)]
Remove redundant timeout check, de-select, use-poll instead

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

16 years ago2008-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 17 Apr 2008 23:34:44 +0000 (23:34 -0000)]
2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: When accessing an item in a specific display
position, use the helper method GetItemAtDisplayIndex, instead of
direct access to the reordered_items_indices array. When doing layout
for groups set the correct Items index for the display position (since
in groups mode items don't have the same position as in Items
collection).
* ListViewGroup.cs: Add a field to store the starting item number,
which is later used when calculating the layout.

Fixes #360805.

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

16 years ago2008-04-17 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 17 Apr 2008 22:39:29 +0000 (22:39 -0000)]
2008-04-17  Miguel de Icaza  <miguel@novell.com>

* NetworkStream.cs: Throw an IOException if the socket is not
connected, not an ArgumentException.

Fixes #371923, it is also the way its documented on MSDN.

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

16 years ago2008-04-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 17 Apr 2008 22:15:45 +0000 (22:15 -0000)]
2008-04-18  Marek Habersack  <mhabersack@novell.com>

* Makefile (OTHER_LIB_MCS_FLAGS): remove dependency on
System.Windows.Forms and define INSIDE_SYSTEM_WEB during
compilation.

* System.Web.dll.sources: include
../Managed.Windows.Forms/System.Resources/ResXResourceReader.cs
../Managed.Windows.Forms/System.Resources/ResXResourceWriter.cs
../Managed.Windows.Forms/System.Resources/ResXFileRef.cs
../Managed.Windows.Forms/System.Resources/ResXDataNode.cs
../Managed.Windows.Forms/System.Resources/ResXNullRef.cs
directly.

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

16 years ago2008-04-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 17 Apr 2008 22:13:47 +0000 (22:13 -0000)]
2008-04-18  Marek Habersack  <mhabersack@novell.com>

* ResXResourceWriter.cs, ResXResourceReader.cs, ResXDataNode.cs,
ResXFileRef.cs: if compiled as part of System.Web, make the
classes internal.

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

16 years ago2008-04-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Apr 2008 21:56:04 +0000 (21:56 -0000)]
2008-04-17  Zoltan Varga  <vargaz@gmail.com>

* inssel.brg (OP_SWITCH): Use (gint64) instead of (long) to cast a large constant.

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

16 years ago* Application.cs: Fixed ProductVersion to fallback to the assembly
Gert Driesen [Thu, 17 Apr 2008 21:31:47 +0000 (21:31 -0000)]
* Application.cs: Fixed ProductVersion to fallback to the assembly
version. Fixes regression for bug #325413.

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

16 years agoUpdate copyright notices
Miguel de Icaza [Thu, 17 Apr 2008 20:36:36 +0000 (20:36 -0000)]
Update copyright notices

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

16 years ago2008-04-17 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 17 Apr 2008 19:00:05 +0000 (19:00 -0000)]
2008-04-17  Dick Porter  <dick@ximian.com>

* FileTest.cs: Test for bug 323389.

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

16 years ago2008-04-17 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 17 Apr 2008 18:58:20 +0000 (18:58 -0000)]
2008-04-17  Dick Porter  <dick@ximian.com>

* io.c (DeleteFile): Check file shares before deleting a file.
Fixes bug 323389.

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

16 years ago2008-04-17 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 17 Apr 2008 18:46:09 +0000 (18:46 -0000)]
2008-04-17  Dick Porter  <dick@ximian.com>

* FileTest.cs: Test for bug 378229.

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

16 years ago2008-04-17 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 17 Apr 2008 18:44:47 +0000 (18:44 -0000)]
2008-04-17  Dick Porter  <dick@ximian.com>

* io.c (DeleteFile): Return ERROR_ACCESS_DENIED if the file is
readonly.  Fixes bug 378229.

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

16 years ago2008-04-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Apr 2008 17:49:02 +0000 (17:49 -0000)]
2008-04-17  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Enable the valgrind header check on amd64 too.

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

16 years ago2008-04-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 17 Apr 2008 16:02:53 +0000 (16:02 -0000)]
2008-04-17  Atsushi Enomoto  <atsushi@ximian.com>

* XmlAttributeCollection.cs : check attribute identity only if the
  source node is in the document tree. Fixed bug #380720.

* XmlElementTests.cs : added test for bug #380720.
* XmlAttributeTests.cs : numbered some assertions.

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

16 years agoOups, I missed this one.
Marek Safar [Thu, 17 Apr 2008 15:36:42 +0000 (15:36 -0000)]
Oups, I missed this one.

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

16 years ago2008-04-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Apr 2008 15:30:35 +0000 (15:30 -0000)]
2008-04-17  Marek Safar  <marek.safar@gmail.com>

* decl.cs, class.cs: Removed some unused code.

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

16 years ago* DirectoryInfo.cs: Added new internal ctor, which takes a bool that
Gert Driesen [Thu, 17 Apr 2008 15:04:25 +0000 (15:04 -0000)]
* DirectoryInfo.cs: Added new internal ctor, which takes a bool that
indicates whether the original path should only container the last
part of the directory. Moved logic for determining the Name and
Parent to Initialize method, to allow it to be re-used on
deserialization. Renamed argument names to fix corcompare issues.
Added missing argument checks.
* Directory.cs (CreateDirectoriesInternal): Use internal ctor for
DirectoryInfo to ensure OriginalPath only contains last part of
the directory.
* File.cs: Removed redundant checks from Create. On 2.0 profile, pass
FileOptions to FileStream. Removed redundant directory check from
Delete and modified exceptions to more closely match MS.
* FileInfo.cs: Added argument check to ctor to match MS. Added missing
deserialization ctor. Modified argument checks in MoveTo, and removed
redundant checks. Added missing argument checks in CopyTo. Code
formatting.
* FileSystemInfo.cs: Modified argument checks in CheckPath to more
closely match MS.
* MonoIO.cs: Added msg that does not disclose filename for
ERROR_FILE_EXISTS.
* Path.cs: Use String.Length instead of comparing with String.Empty.
Removed exceptions argument names to match MS.
* File.cs: Added/improved tests for Create and Move.
* DirectoryInfoTest.cs: No longer derive from deprecated Assertion
class. Improved tests for ctor, Create, Name, Parent, ...
* FileInfoTest.cs: No longer derive from deprecated Assertion class.
Improved/added tests,
* PathTest.cs: Added tests for IsPathRooted and GetFullPath.
* FileSystemInfoTest.cs: Fixed test. Now passes on both Mono and MS.

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

16 years ago2008-04-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 17 Apr 2008 14:59:25 +0000 (14:59 -0000)]
2008-04-17  Sebastien Pouliot  <sebastien@ximian.com>

* DSATest.cs: Add valid test cases with invalid xml. Update to
NUnit 2 syntax.
* HashAlgorithmTest.cs: Fix compiler warnings.
* RSATest.cs: Add valid test cases with invalid xml. Update to
NUnit 2 syntax.
* SHA256Test.cs, SHA384Test.cs, SHA512Test.cs: Flush

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

16 years ago2008-04-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 17 Apr 2008 14:56:26 +0000 (14:56 -0000)]
2008-04-17  Sebastien Pouliot  <sebastien@ximian.com>

* AsymmetricAlgorithm.cs: Add shared GetNamedParam helper method.
* DSA.cs, RSA.cs: Rework FromXmlString to be more "careless" like
MS implementation. Fix #355464

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

16 years agoNew tests.
Marek Safar [Thu, 17 Apr 2008 14:12:04 +0000 (14:12 -0000)]
New tests.

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

16 years ago2008-04-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Apr 2008 14:11:16 +0000 (14:11 -0000)]
2008-04-17  Marek Safar  <marek.safar@gmail.com>

* decl.cs, class.cs, generic.cs: Verify partial parts type parameters and
constraints.

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

16 years ago2008-04-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 17 Apr 2008 12:35:17 +0000 (12:35 -0000)]
2008-04-17  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (NEW_INS): Set cil_code.

* mini.c (mini_method_compile): Move the disabling of fp elimination to here
from mini-amd64.c so all debugger related logic is in one place.

* mini.c: Set cfg->ip to NULL after passes which set it so instructions created
later won't have a random ip assigned to them.

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

16 years agoNew test.
Marek Safar [Thu, 17 Apr 2008 11:14:05 +0000 (11:14 -0000)]
New test.

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

16 years agoFixed wrong bug number
Marek Safar [Thu, 17 Apr 2008 11:13:09 +0000 (11:13 -0000)]
Fixed wrong bug number

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

16 years agoNew tests, msg updates.
Marek Safar [Thu, 17 Apr 2008 11:11:29 +0000 (11:11 -0000)]
New tests, msg updates.

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

16 years ago2008-04-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 17 Apr 2008 11:10:59 +0000 (11:10 -0000)]
2008-04-17  Marek Safar  <marek.safar@gmail.com>

* decl.cs, class.cs, cs-parser.jay, ecore.cs, expression.cs: Unify all type
name expressions.
Also fixes #321794.

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

16 years agoFix Java compilation
Noam Lampert [Thu, 17 Apr 2008 09:21:42 +0000 (09:21 -0000)]
Fix Java compilation

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

16 years ago2008-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 17 Apr 2008 03:46:45 +0000 (03:46 -0000)]
2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: New helper method to retrieve an item in a _specific
display_ position (the items can be displayed in a different order
than one of Items collection).
* ThemeWin32Classic.cs: When drawing, instead of iterating over Items
collection, use ListView.GetItemAtDisplayIndex, to get an item in a
specific display position (again remember that items can be sorted
different than Items).

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

16 years ago2008-04-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 16 Apr 2008 22:36:18 +0000 (22:36 -0000)]
2008-04-17  Marek Habersack  <mhabersack@novell.com>

* mono.1: add description of the new NullFileWatcher to the
documentation of the MONO_MANAGED_WATCHER envvar.

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

16 years ago2008-04-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 16 Apr 2008 22:31:33 +0000 (22:31 -0000)]
2008-04-17  Marek Habersack  <mhabersack@novell.com>

* FileSystemWatcher.cs: added support for NullFileWatcher. Fixes
bug #354701

* NullFileWatcher.cs: added an IFileWatcher implementation which
does nothing. Selected only by setting the MONO_MANAGED_WATCHER
environment variable to 'disabled'. Fixes bug #354701

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

16 years ago2008-04-16 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 16 Apr 2008 21:52:54 +0000 (21:52 -0000)]
2008-04-16  Marek Habersack  <mhabersack@novell.com>

* ReferenceConverter.cs: fix ConvertFrom and ConvertTo when
converting from/to string - base must be called only if the
conversion target type is NOT string, otherwise the result of the
conversion will be the value type name.
2008-04-16  Marek Habersack  <mhabersack@novell.com>

* ComponentConverterTests.cs: added tests for
{Component, Reference}Converter ConvertFrom/ConvertTo changes.
2008-04-16  Marek Habersack  <mhabersack@novell.com>

* System_test.dll.sources: added
System.ComponentModel/ComponentConverterTests.cs

* Makefile (TEST_MCS_FLAGS): reference -r:System.Data for new
tests.

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

16 years ago2008-04-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 16 Apr 2008 21:22:35 +0000 (21:22 -0000)]
2008-04-16  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_create_jump_trampoline): Add an assert to check that
the arch specific function initializes code_size.
(mono_create_delegate_trampoline): Ditto.

* mini-mips.h mini-mips.c inssel-mips.brg inssel-long32-mips.brg cpu-mips.md
tramp-mips.c: Resurrect MIPS port and also fix the issues on little-endian
platforms.

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

16 years ago2008-04-16 Wade Berrier <wberrier@novell.com>
Wade Berrier [Wed, 16 Apr 2008 21:06:56 +0000 (21:06 -0000)]
2008-04-16  Wade Berrier  <wberrier@novell.com>

       * scripts/mono-find-requires.in: Fix extraneous whitespace that
makes
       some reqs from .config be on the same line as the monodis reqs.

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

16 years agoHook up 'EmitSideEffect'
Raja R Harinath [Wed, 16 Apr 2008 19:46:03 +0000 (19:46 -0000)]
Hook up 'EmitSideEffect'

* constant.cs (Constant.EmitSideEffect): New.
(SideEffectConstant.Emit): Simplify.  Use EmitSideEffect.
(SideEffectConstant.EmitSideEffect): New.
* ecore.cs (BoxedCast.EmitBranchable): Remove.  We can't use an
unconditional branch in EmitBranchable.
(FieldExpr.EmitBranchable): New.
* expression.cs (Unary.EmitSideEffect): New.
(Binary.EmitSideEffect): New.
(VariableReference.EmitSideEffect): New.  Do nothing.

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

16 years agoIntroduce 'EmitSideEffect'
Raja R Harinath [Wed, 16 Apr 2008 19:45:04 +0000 (19:45 -0000)]
Introduce 'EmitSideEffect'
* ecore.cs (Expression.EmitSideEffect): New.
(TypeCast): Rename from EmptyCast.
(EmptyCast): New.
(EmptyCast.EmitBranchable, EmptyCast.EmitSideEffect): Implement.
(BoxedCast.EmitBranchable, BoxedCast.EmitSideEffect): Implement.
* convert.cs, nullable.cs: Update to changes.

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

16 years agowhat about adding the files for real
Jb Evain [Wed, 16 Apr 2008 19:44:31 +0000 (19:44 -0000)]
what about adding the files for real

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

16 years ago2008-04-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 16 Apr 2008 19:43:02 +0000 (19:43 -0000)]
2008-04-16  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewColumnCollection.cs: Create a cached copy of our sorted
list and update it when the collection changes.  We were recreating
this several times per row paint and for every pixel the mouse moved
across the grid.
* DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
changes.

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

16 years ago2008-04-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 16 Apr 2008 19:28:00 +0000 (19:28 -0000)]
2008-04-16  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewColumnCollection.cs: Convert our internal sorted columns
list to use generics.
* DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
and remove unneccessay casts.

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

16 years ago2008-04-16 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 16 Apr 2008 19:20:13 +0000 (19:20 -0000)]
2008-04-16  Jb Evain  <jbevain@novell.com>

* configure.in, data/Makefile.am: add a smcs.pc file,
that moonlight can use to locate smcs.exe.

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

16 years ago2008-04-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 16 Apr 2008 18:57:53 +0000 (18:57 -0000)]
2008-04-16  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewBand.cs: Add internal way to set displayed variable.
* DataGridViewRow.cs: Don't paint cells in non-displayed columns.
* DataGridView.cs: Make sure we always keep track of Displayed
rows and columns, and only draw things that are displayed.

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

16 years agoNew test, update.
Marek Safar [Wed, 16 Apr 2008 18:29:39 +0000 (18:29 -0000)]
New test, update.

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

16 years ago2008-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Apr 2008 18:29:16 +0000 (18:29 -0000)]
2008-04-16  Marek Safar  <marek.safar@gmail.com>

* class.cs, cs-parser.jay: Early check for base types expression.

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

16 years agoRemove over-eager Obsolete attribute -- we need to fix uses of
Raja R Harinath [Wed, 16 Apr 2008 16:31:00 +0000 (16:31 -0000)]
Remove over-eager Obsolete attribute -- we need to fix uses of
MemberName.MethodName

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

16 years ago2008-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Apr 2008 16:09:31 +0000 (16:09 -0000)]
2008-04-16  Marek Safar  <marek.safar@gmail.com>

* decl.cs (MemberName): Declare PrettyName as obsolete.

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

16 years agoNew test.
Marek Safar [Wed, 16 Apr 2008 16:05:22 +0000 (16:05 -0000)]
New test.

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

16 years ago2008-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Apr 2008 16:04:45 +0000 (16:04 -0000)]
2008-04-16  Marek Safar  <marek.safar@gmail.com>

* namespace.cs: Use MemberName comparison.

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

16 years agoSpread the dissatisfaction
Raja R Harinath [Wed, 16 Apr 2008 15:35:36 +0000 (15:35 -0000)]
Spread the dissatisfaction

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

16 years agoFix build break
Raja R Harinath [Wed, 16 Apr 2008 15:29:40 +0000 (15:29 -0000)]
Fix build break

* decl.cs (MemberName.PrettyName): New.  Replaces the misnamed FullName.
(MemberName.MethodName, MemberName.GetSignatureForError): Improve.
(MemberName.FullyQualifiedName): New.  Provides the functionality
that users assume FullName would have.
* ecore.cs, namespace.cs: Update to changes.

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

16 years ago* statement.cs (Using.assign): Make into ExpressionStatement.
Raja R Harinath [Wed, 16 Apr 2008 14:29:02 +0000 (14:29 -0000)]
* statement.cs (Using.assign): Make into ExpressionStatement.
(Using.EmitPreTryBody): Simplify.

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

16 years ago2008-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Apr 2008 14:03:32 +0000 (14:03 -0000)]
2008-04-16  Marek Safar  <marek.safar@gmail.com>

* report.cs: ColorFormat is protected.

* rootcontext.cs: Unused fields clean-up.

* namespace.cs: Made UsingEntry name private.

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

16 years ago* File.cs: Changed argument names and thrown exception to better match
Gert Driesen [Wed, 16 Apr 2008 14:01:25 +0000 (14:01 -0000)]
* File.cs: Changed argument names and thrown exception to better match
.NET. Use String.Length instead of comparison with empty string.
* DirectoryInfo.cs: Added missing deserialization ctor.
* FileTest.cs: Renamed and improved existing tests. Avoid use of
ExpectedException.
* FileSystemInfoTest.cs: No longer derive from deprecated Assertion
class. Added (de)serialization tests.

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

16 years ago2008-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 16 Apr 2008 13:34:17 +0000 (13:34 -0000)]
2008-04-16  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs, location.cs: Removed unused field.

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