mono.git
18 years ago2006-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 12 Jan 2006 18:54:36 +0000 (18:54 -0000)]
2006-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPathTest.cs: New. Basic test cases for empty path and
cloning.
* PathDataTest.cs: New. Test cases for PathData.

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

18 years ago2006-01-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 12 Jan 2006 18:50:48 +0000 (18:50 -0000)]
2006-01-12  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPath.cs: Throw an ArgumentException if either PathPoints or
PathTypes properties are empty (0 length). Note that PathData property
still works in that case.
* PathData.cs: Don't clone empty arrays (results in NRE).

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

18 years ago2006-01-12 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 12 Jan 2006 18:27:40 +0000 (18:27 -0000)]
2006-01-12  Martin Baulig  <martin@ximian.com>

* icall.c (ves_icall_MonoGenericClass_GetInterfaces): Inflate the
interfaces on-the-fly; fixes #76625.

* class-internals.h
(MonoDynamicGenericClass): Removed `ifaces' and `count_ifaces'; we
don't need that anymore.

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

18 years agoNew test.
Martin Baulig [Thu, 12 Jan 2006 18:27:18 +0000 (18:27 -0000)]
New test.

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

18 years ago * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
Alexander Olk [Thu, 12 Jan 2006 17:57:48 +0000 (17:57 -0000)]
* ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.

2006-01-12  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago2006-01-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 12 Jan 2006 17:35:47 +0000 (17:35 -0000)]
2006-01-12  Miguel de Icaza  <miguel@novell.com>

        * PeerCred.cs: Turn PeerCredData into a toplevel class and make it
        internal, so it can be used from Mono.Unix.PeerCred.

2006-01-12  Miguel de Icaza  <miguel@novell.com>

        * PeerCred.cs: Do not define PeerCredData as this is a structure
        known to the runtime.  Instead use the Mono.Posix.PeerCredData
        internal class.

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

18 years ago2006-01-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 12 Jan 2006 17:34:41 +0000 (17:34 -0000)]
2006-01-12  Miguel de Icaza  <miguel@novell.com>

* socket-io.c
(ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
To avoid initing the nested_classes when not needed I turned the
PeerCredData as a toplevel internal class, as it has to be shared
anyways.

Fixes the CASA issue.

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

18 years ago2006-01-12 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Thu, 12 Jan 2006 16:29:46 +0000 (16:29 -0000)]
2006-01-12  Alexander Olk  <alex.olk@googlemail.com>

* FileDialog.cs: Added ToolTip for MWFFileView
* MimeIcon.cs: Rewrote GnomeHandler.
  - Get currently used gnome icon theme from
    ($HOME)/.gconf/%gconf-tree.xml
  - Make use of inherited icon themes
  - Support SVG icon themes like Tango via librsvg

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

18 years ago2006-1-12 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Thu, 12 Jan 2006 15:54:58 +0000 (15:54 -0000)]
2006-1-12  Jonathan Chambers  <jonathan.chambers@ansys.com>

* System.Windows.Forms.dll.sources: Added printing items and *committed* file this time.

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 15:53:04 +0000 (15:53 -0000)]
2006-01-12  Atsushi Enomoto <atsushi@ximian.com>

* RdpPattern.cs :
  Introduced EmptyTextDeriv() so that the results could be memoized.

* RelaxngValidatingReader.cs : Use RdpPattern.EmptyTextDeriv(). It
  significantly improves performance wrt empty text nodes.

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

18 years ago* MethodDef.cs (MethodDef.CreateSignature): Use "`n" only for generic
Ankit Jain [Thu, 12 Jan 2006 15:37:41 +0000 (15:37 -0000)]
* MethodDef.cs (MethodDef.CreateSignature): Use "`n" only for generic
methods.

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

18 years ago2006-01-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 12 Jan 2006 14:49:55 +0000 (14:49 -0000)]
2006-01-12  Miguel de Icaza  <miguel@novell.com>

Revert's Jackson's revert which broke 2.0 builds.   Fix both
builds.

* Application.cs: Move the use_compatible_text_rendering outside
the NET_2_0 define.  If we ever need to use the
use_compatible_text_rendering on the individual controls they will
access the variable from the common shared code paths.

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 14:23:18 +0000 (14:23 -0000)]
2006-01-12  Atsushi Enomoto  <atsushi@ximian.com>

* CP51932.cs : oops, another extra debugging code was remaining.
  Fixed bug #77223.

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

18 years agoFix #77221.
Raja R Harinath [Thu, 12 Jan 2006 14:08:52 +0000 (14:08 -0000)]
Fix #77221.
* mcs/typemanager.cs (TryGetBaseDefinition): Rename from the mis-named
GetOverride.
* mcs/expression.cs (Invocation.OverloadResolve): Update.
(Invocation.DoResolve): Avoid double resolution of invocation.
* tests/test-486.cs: New test from #77221.

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

18 years ago- Part of the previus checkin, missed these files
Peter Dennis Bartok [Thu, 12 Jan 2006 07:20:56 +0000 (07:20 -0000)]
- Part of the previus checkin, missed these files

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

18 years ago2006-01-12 Peter Dennis Bartok <pbartok@novell.com
Peter Dennis Bartok [Thu, 12 Jan 2006 07:19:58 +0000 (07:19 -0000)]
2006-01-12  Peter Dennis Bartok  <pbartok@novell.com

* XplatUI.cs:
  - Added more granular debug options
  - Added method to print both window text and id
  - Switched debug output to use new Window() debug method
  - Added IsEnabled() driver method
  - Added EnableWindow() driver method
* Form.cs:
  - Removed end_modal; no longer needed, new loop handles termination
    via 'closing' variable
  - If form is modal, setting DialogResult will now initiate loop
    termination via 'closing' variable
  - Added support for is_enabled/WS_DISABLED to CreateParams
  - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
    does all the work
  - Removed code that's now in RunLoop from ShowDialog()
  - Added various documented sanity checks to ShowDialog()
  - Added handling of WM_DESTROY message; we set 'closing' on getting
    the message to indicate the message pump to terminate
  - Added handling of new internal WM_CLOSE_INTERNAL message - it's
    send by the Application.ExitThread method. (We send the message
    to destroy the window after all other events have been
    processed through the queue, instead of destroying the handle
    directly)
  - Moved code from Close() method to WM_CLOSE handler; added logic
    to only send close-related events if the form is not displayed
    modal
* Splitter.cs (..ctor): Fixed typo in resource name
* Control.cs:
  - DrawBackgroundImage: Explicitly selecting the wrap mode for the
    brush now
  - set_Cursor: Now only setting calling into XplatUI if the handle for
    the control is already created; this avoids implict handle creation
    or crashes if it's not created
  - set_Enabled: Now setting the enabled state via the new driver method
    instead of just tracking it
  - CreateParams: Added logic to set WS_DISABLED based on enabled state
  - CreateControl: Reordered event firing and method calls to more
    closely fire events in the order MS does. Now setting the
    enabled state in the driver when creating the control.
  - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
    match MS order
* FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
  MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
* XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
* Hwnd.cs:
  - Added tracking of window enabled state (get_Enabled/set_Enabled)
  - Added EnabledHwnd property to easily allow a driver to find the
    handle of the first enabled window in the parent chain (this is
    used by drivers to pass up input events of disabled windows)
* XplatUIDriver.cs: Added IsEnabled() method
* Application.cs:
  - Removed crude and obsolete exiting tracking variable
  - Removed internal ModalRun(); replaced by RunLoop()
  - Implemented private CloseForms() method to allow closing all
    windows owned by a particular (or all) threads
  - Exit() now properly closes all windows without forcing the message
    pump to quit
  - Removed obsolete InternalExit() method
  - Changed Run() methods to use new RunLoop() message pump
  - Implemented new RunLoop() method for both modal and non-modal forms
* CommonDialog.cs:
  - get_CreateParams: Added setting of WS_DISABLED
  - Simplified ShowDialog(); now all the work is done in RunLoop(),
    invoked via Form.ShowDialog()
* NativeWindow.cs: We don't remove the window from the collection when
  the handle is destroyed; there might still be messages for it in the
  queue (mainly the resulting WM_DESTROY); instead it will be removed
  when Control calls InvalidateHandle in the WM_DESTROY handler
* XplatUIX11.cs:
  - CreateWindow: Added logic to handle the WS_DISABLED window style
  - EnableWindow: Implemented based on Hwnd.Enabled
  - GetMessage: Reset PostQuitState so the method can be called again
  - Implemented support for disabled windows (passing messages to the
    first enabled parent) in handling all input messages
  - Added optimizations for handling Expose events
  - Implemeted new driver method IsEnabled()
  - Now always resetting paint pending tracking vars when we start paint
  - Re-implemented UpdateWindow via just sending a WM_PAINT message
* XplatUIOSX.cs: Added IsEnabled method stub
* XplatUIWin32.cs: Implemented new IsEnabled() method

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

18 years ago* Makefile: Revert my '2006-01-10' commit. Prefer the more
Raja R Harinath [Thu, 12 Jan 2006 07:18:58 +0000 (07:18 -0000)]
* Makefile: Revert my '2006-01-10' commit.  Prefer the more
generic fix to build/executable.make.
(DISTFILES): Distribute nunit-console.exe.config.net_2_0.
* nunit-console.exe.net_2_0.config: Delete.

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

18 years ago* ColorDialog.cs: Clear out the old form before adding the new
Jackson Harper [Thu, 12 Jan 2006 07:00:28 +0000 (07:00 -0000)]
* ColorDialog.cs: Clear out the old form before adding the new
        panel.

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 06:03:06 +0000 (06:03 -0000)]
2006-01-12  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : Do not local duplicate of automatically-created
  prefixes (i.e. check local autocreated prefixes other than
  namespaces from ancestors). Fixed bug #77086 and #77087.

* XmlTextWriterTests.cs : Split AutoCreatePrefixes() and marked as
  Ignore rather than NotWorking. Also it is not for bug #77086 and
  #77077 (they were fixed). See bug #77088.

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

18 years ago* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
Jackson Harper [Thu, 12 Jan 2006 05:35:44 +0000 (05:35 -0000)]
* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
        LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate
the
        variables a little.

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

18 years ago2006-01-11 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Thu, 12 Jan 2006 05:16:31 +0000 (05:16 -0000)]
2006-01-11  Cesar Lopez Nataren  <cnataren@novell.com>

* Parser.cs (StatementHelper): Avoid null reference exception
using the new EmptyAST node in case we have an empty stm (Token.SEMI).

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 05:04:09 +0000 (05:04 -0000)]
2006-01-12  Atsushi Enomoto <atsushi@ximian.com>

* XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
  ArgumentException in WriteNmTokenInternal().

* XmlTextWriterTests.cs : re-enabled WriteNmToken_InvalidChars().

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 04:47:39 +0000 (04:47 -0000)]
2006-01-12  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
  such invalid "xml" prefix which is being mapped to different
  namespace URI than the predefined one.
  Removed comment that does not make sense.
* XmlNamespaceManager.cs : IsValidDeclaration() could be private.
  Added some comments.

* XmlTextWriterTests.cs : re-enabled bug #77094 related tests.

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

18 years ago2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jan 2006 03:53:35 +0000 (03:53 -0000)]
2006-01-12  Atsushi Enomoto  <atsushi@ximian.com>

* CP10079.cs : oops, silly debugging code was remaining.

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

18 years ago * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
Neale Ferguson [Thu, 12 Jan 2006 03:48:40 +0000 (03:48 -0000)]
* inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.

* mini-s390x.c: Remove warning messages.

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

18 years ago* X11Dnd.cs: Make sure to add all the text formats when adding
Jackson Harper [Thu, 12 Jan 2006 02:54:08 +0000 (02:54 -0000)]
* X11Dnd.cs: Make sure to add all the text formats when adding
        strings to the data object.
        * TreeNodeCollection.cs: When adding to a sorted tree we need to
        do some redrawing too.  Also change the UpdateNode to an
        UpdateBelow so the newly added node gets painted.

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

18 years ago2006-01-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 12 Jan 2006 00:11:07 +0000 (00:11 -0000)]
2006-01-11  Miguel de Icaza  <miguel@novell.com>

* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
LinkLabel.cs, PropertyGrid.cs: Implement the
UseCompatibleTextRendering property for 2.x

* Application.cs (SetCompatibleTextRenderingDefault): Add.

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

18 years ago2006-01-11 Evan Briones <evan@evanbriones.com>
César Natarén [Wed, 11 Jan 2006 23:57:20 +0000 (23:57 -0000)]
2006-01-11 Evan Briones  <evan@evanbriones.com>

* VsaEngine.cs: Fixed out compiler flag

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

18 years ago2006-01-11 Evan Briones <evan@evanbriones.com>
César Natarén [Wed, 11 Jan 2006 23:56:29 +0000 (23:56 -0000)]
2006-01-11 Evan Briones <evan@evanbriones.com>

* mjs.cs: Fixed out by adding SetOption to the compiler engine.

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

18 years ago2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 11 Jan 2006 22:53:05 +0000 (22:53 -0000)]
2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* nunit-console/nunit-console.exe.config.net_2_0: configuration for
nunit-console in the 2.0 profile.

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

18 years ago2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 11 Jan 2006 22:51:41 +0000 (22:51 -0000)]
2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* executable.make: allow installing a different .config file for
executables such as nunit-console.exe that should use a different one
depending on the profile.

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

18 years ago2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 11 Jan 2006 21:28:52 +0000 (21:28 -0000)]
2006-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* Path.cs: Previous fix caused regression of bug #76191. Fixed (again)

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

18 years ago2006-01-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jan 2006 20:56:07 +0000 (20:56 -0000)]
2006-01-11  Zoltan Varga  <vargaz@gmail.com>

* include/private/gcconfig.h: Undef _FILE_OFFSET_BITS on sparc.

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

18 years ago2006-01-11 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 11 Jan 2006 20:12:52 +0000 (20:12 -0000)]
2006-01-11  Chris Toshok  <toshok@ximian.com>

* ClientScriptManager.cs (RegisterClientScriptResource):
implement.

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

18 years ago * TreeView.cs: Use the property for setting the selected node so
Jackson Harper [Wed, 11 Jan 2006 18:50:35 +0000 (18:50 -0000)]
    * TreeView.cs: Use the property for setting the selected node so
        the correct events get raised.
        * TreeNode.cs: Update the tree when the fore/back colours of a
        node are set.

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 18:47:40 +0000 (18:47 -0000)]
2006-01-11  Atsushi Enomoto <atsushi@ximian.com>

        * Iterator.cs : Nowadays removal of cloning of the argument list
          in ListIterator is safe. Thanks to Joshua Tauberer for the hint.

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

18 years agoSystem.Drawing_test.dll.sources: Added CAS unit tests for Region to the build.
Sebastien Pouliot [Wed, 11 Jan 2006 18:29:26 +0000 (18:29 -0000)]
System.Drawing_test.dll.sources: Added CAS unit tests for Region to the build.

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

18 years ago2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 11 Jan 2006 18:28:17 +0000 (18:28 -0000)]
2006-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* RegionCas.cs: New. CAS unit tests for Region.
* TestRegion.cs: Added test cases to check for expected exceptions.

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

18 years ago2006-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 11 Jan 2006 18:26:00 +0000 (18:26 -0000)]
2006-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Avoid creating bitmaps two times if both X and Y
default DPI are required (i.e. init both value in both cases).
* Region.cs: Added null check to match MS behaviour (exception type)
and avoid NRE (before CheckStatus is called). Added security demands
for unmanaged code on both FromHrgn and ReleaseHrgn (2.0) methods.

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

18 years agonew directory
Gonzalo Paniagua Javier [Wed, 11 Jan 2006 17:56:15 +0000 (17:56 -0000)]
new directory

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 17:50:16 +0000 (17:50 -0000)]
2006-01-11  Atsushi Enomoto <atsushi@ximian.com>

        * Iterator.cs : (DescendantOrSelfIterator/DescendantIterator)
          the error message is for blaming custom XPathNavigator
          implementation, not us ;-) (see also #77194)

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

18 years agoIn mono/metadata:
Ben Maurer [Wed, 11 Jan 2006 17:24:21 +0000 (17:24 -0000)]
In mono/metadata:
2006-01-11  Ben Maurer  <bmaurer@andrew.cmu.edu>

* domain.c: Accessors for MonoJitInfo

* profiler-private.h: Add jitinfo to the end jit hook

* profiler.[ch]: Define new hooks, called after jitting which give
the MonoJitInfo that was compiled

In mono/mini:
2006-01-11  Ben Maurer  <bmaurer@andrew.cmu.edu>

* mini.c: pass the jitinfo to mono_profiler_method_end_jit.

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

18 years ago2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 11 Jan 2006 17:22:32 +0000 (17:22 -0000)]
2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpApplicationFactory.cs: fix condition for ContextAvailable.

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

18 years agoAdd
Miguel de Icaza [Wed, 11 Jan 2006 16:56:28 +0000 (16:56 -0000)]
Add

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

18 years ago* HttpResponse.cs: removed TARGET_JVM block from End
Vladimir Krasnov [Wed, 11 Jan 2006 15:52:06 +0000 (15:52 -0000)]
* HttpResponse.cs: removed TARGET_JVM block from End
* GetJavaTextReader: Merged TARGET_JVM block from LoadFile to GetJavaTextReader

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

18 years agoadding files for build
Konstantin Triger [Wed, 11 Jan 2006 15:47:40 +0000 (15:47 -0000)]
adding files for build

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

18 years ago* ObjectStateFormatter.cs: Removed TARGET_JVM parts in
Vladimir Krasnov [Wed, 11 Jan 2006 15:46:36 +0000 (15:46 -0000)]
* ObjectStateFormatter.cs: Removed TARGET_JVM parts in
TypeFormatter.Read

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

18 years agoRremoved redundant call to RebuildIndex() in constructor.
Boris Kirzner [Wed, 11 Jan 2006 15:03:30 +0000 (15:03 -0000)]
Rremoved redundant call to RebuildIndex() in constructor.

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

18 years ago* HttpRequest.cs: removed TARGET_JVM block from MapPath
Vladimir Krasnov [Wed, 11 Jan 2006 13:52:09 +0000 (13:52 -0000)]
* HttpRequest.cs: removed TARGET_JVM block from MapPath

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

18 years agoFix #77180.
Raja R Harinath [Wed, 11 Jan 2006 13:23:52 +0000 (13:23 -0000)]
Fix #77180.
* mcs/expression.cs (Unary.Emit): When in /checked+ mode, don't emit
unary negation of floating point types as 0-expr; negation cannot
overflow in floating point types.
* tests/test-485.cs: New test from #77180.

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 13:21:19 +0000 (13:21 -0000)]
2006-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaValidatingReader.cs : removed unused constructors.
  Now it implements IXmlSchemaInfo. Use XmlSchemaType instead of
  Object to represent schema types.

* XmlSchemaAttribute.cs, XmlSchemaElement.cs : AttributeSchemaType
  and ElementSchemaType were not working fine for anySimpleType.
* XmlSchemaValidator.cs : When actual schema type was complex,
  schema types was not filled correctly. Modified some extra comments.
* XmlSchemaSet.cs, XmlSchemaType.cs : removed extra MonoTODOs.

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

18 years agoFix #77204.
Raja R Harinath [Wed, 11 Jan 2006 12:59:40 +0000 (12:59 -0000)]
Fix #77204.
* mcs/expression.cs (MemberAccess.DoResolve): Disallow the use of '.'
on operands of 'void' type.
* errors/cs0023-3.cs: New test from #77204.

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

18 years ago* InstrTable.cs (inst_table): Uncomment stelem and ldelem .
Ankit Jain [Wed, 11 Jan 2006 12:58:24 +0000 (12:58 -0000)]
* InstrTable.cs (inst_table): Uncomment stelem and ldelem .

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

18 years agoIn ilasm/tests:
Ankit Jain [Wed, 11 Jan 2006 12:50:01 +0000 (12:50 -0000)]
In ilasm/tests:

* gen-nested2.il: New.
* gen-nested3.il: New. Test for new syntax for specifying namespace ie.,
as part of the type name instead of using '.namespace' directive.

In ilasm/codegen:

Support new syntax of specifying namespace, ie., as
part of the type name. (gen-nested2.il)
* TypeDef.cs (TypeDef.ctor): Add outer as a param.
Don't split name on '.' for inner classes.
* CodeGen.cs (CodeGen.BeginTypeDef): Update to use only 'name'
for inner classes and FullName for outermost class.

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

18 years agoFix #77200.
Raja R Harinath [Wed, 11 Jan 2006 12:20:59 +0000 (12:20 -0000)]
Fix #77200.
* mcs/cfold.cs (BinaryFold): Implement folding of BinaryOr, BinaryAnd
and ExclusiveOr for boolean constants too.
* tests/test-484.cs: New test based on #77200.

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

18 years ago* HttpRequest.cs: little fix in MapPath(), virtualPath.Replace return value wasnt...
Vladimir Krasnov [Wed, 11 Jan 2006 09:04:23 +0000 (09:04 -0000)]
* HttpRequest.cs: little fix in MapPath(), virtualPath.Replace return value wasnt stored.

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 08:38:14 +0000 (08:38 -0000)]
2006-01-11  Atsushi Enomoto <atsushi@ximian.com>

* datatypesTest.xsd : missing required file for xsd tests.

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

18 years ago* test-xml-050.cs: Set output to xml-050.xml, not xml-050.cs.
Raja R Harinath [Wed, 11 Jan 2006 07:31:21 +0000 (07:31 -0000)]
* test-xml-050.cs: Set output to xml-050.xml, not xml-050.cs.
* gtest-233.cs: Rename from gtest-233-exe.cs.

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

18 years agoupdate the cause of the error
César Natarén [Wed, 11 Jan 2006 05:50:56 +0000 (05:50 -0000)]
update the cause of the error

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

18 years ago2006-01-10 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Wed, 11 Jan 2006 05:31:26 +0000 (05:31 -0000)]
2006-01-10  Cesar Lopez Nataren  <cnataren@novell.com>

* Empty.cs: Add internal type EmptyAST.

* Parser.cs: Avoid creating a ForIn object when we only have empty
condition, test or increment expressions in the loop.

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 04:02:58 +0000 (04:02 -0000)]
2006-01-11  Atsushi Enomoto  <atsushi@ximian.com>

* dtd2rng.cs : return <optional><attribute .../></optional> when an
  attribute is #IMPLIED.

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

18 years ago2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jan 2006 03:58:58 +0000 (03:58 -0000)]
2006-01-11  Atsushi Enomoto <atsushi@ximian.com>

* DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
  attribute is #IMPLIED.

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

18 years ago * TreeView.cs: Allow setting SelectedNode to null.
Jackson Harper [Tue, 10 Jan 2006 23:51:00 +0000 (23:51 -0000)]
 * TreeView.cs: Allow setting SelectedNode to null.

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

18 years ago2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 10 Jan 2006 23:22:00 +0000 (23:22 -0000)]
2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebResponse.cs: ignore non-integer values for max-age and version.
Fixes bug #77199. Thanks to Cyrille Colin.

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

18 years ago2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 10 Jan 2006 23:15:18 +0000 (23:15 -0000)]
2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* AspGenerator.cs: add support for 'src' in <script runat="server">.
Fixes bug #77150.

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

18 years ago2006-01-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 10 Jan 2006 22:37:59 +0000 (22:37 -0000)]
2006-01-10  Zoltan Varga  <vargaz@gmail.com>

* generics.2.cs: Add ldelem/stelem_any test.

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

18 years ago2006-01-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 10 Jan 2006 22:34:15 +0000 (22:34 -0000)]
2006-01-10  Chris Toshok  <toshok@ximian.com>

* SystemWebSectionGroup.cs (HostingEnvironment): enable this property.
(ProcessModel): add the ConfigurationPropertyAttribute.

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

18 years agoadd all the 2.0 compilation stubs to the build.
Chris Toshok [Tue, 10 Jan 2006 22:30:02 +0000 (22:30 -0000)]
add all the 2.0 compilation stubs to the build.

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

18 years agostub out the 2.0 System.Web.Compilation stuff.
Chris Toshok [Tue, 10 Jan 2006 22:29:39 +0000 (22:29 -0000)]
stub out the 2.0 System.Web.Compilation stuff.

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

18 years ago2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 10 Jan 2006 22:01:51 +0000 (22:01 -0000)]
2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpResponse.cs: typo in comment.

* HttpApplicationFactory.cs:
* HttpApplication.cs: don't discard the application used for running the
Application_Start event to allow for Redirect/Transfer to be used. Fail
to get the request/response from the application object as MS does (it
can still be retrieved through HttpContext.Current.blah). Fixes
bug #77162.

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

18 years agoNew test.
Martin Baulig [Tue, 10 Jan 2006 21:03:44 +0000 (21:03 -0000)]
New test.

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

18 years ago2006-01-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jan 2006 21:02:10 +0000 (21:02 -0000)]
2006-01-10  Martin Baulig  <martin@ximian.com>

* class.c (mono_class_setup_events): Add support for generic
classes; fixes #76440.

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

18 years ago2006-01-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 10 Jan 2006 19:49:43 +0000 (19:49 -0000)]
2006-01-10  Chris Toshok  <toshok@ximian.com>

* PagesSection.cs (.cctor): fix the default value for the
enableSessionState attribute - it's not a bool, but a
PagesEnableSessionState enum.

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

18 years agoremove the pages section altogether, as all the attributes we specify are in fact...
Chris Toshok [Tue, 10 Jan 2006 19:47:23 +0000 (19:47 -0000)]
remove the pages section altogether, as all the attributes we specify are in fact the section defaults.

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

18 years ago * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
Neale Ferguson [Tue, 10 Jan 2006 19:43:14 +0000 (19:43 -0000)]
* mini-s390.c: Fix ATOMIC_ADD_I4 operation.

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

18 years ago2006-01-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 10 Jan 2006 19:40:53 +0000 (19:40 -0000)]
2006-01-10  Chris Toshok  <toshok@ximian.com>

* Page.cs (ValidateCollection): in NET_2_0 if event validation is
off, return true.

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

18 years ago2006-01-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 10 Jan 2006 19:25:06 +0000 (19:25 -0000)]
2006-01-10  Chris Toshok  <toshok@ximian.com>

* MachineKeySection.cs (ValidationKeyBytes, DecryptionKeyBytes,
DecryptionKey192Bits): if the keys are null, generate them.  Fixes
Page.EnableViewStateMac support.

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

18 years ago2006-01-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jan 2006 18:09:27 +0000 (18:09 -0000)]
2006-01-10  Martin Baulig  <martin@ximian.com>

* generic.cs
(TypeParameter.InflateConstraints): New public method.

* iterators.cs (Iterator.DefineNestedTypes): Also inflate the
constraints; fixes #77042.

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

18 years ago2006-01-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jan 2006 18:04:28 +0000 (18:04 -0000)]
2006-01-10  Martin Baulig  <martin@ximian.com>

* anonymous.cs (ScopeInfo.EmitScopeType): Use the `CurrentType'
instead of the `TypeBuilder' for this "<>THIS" variable; fixes
#77061.

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

18 years ago2006-01-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 10 Jan 2006 17:10:28 +0000 (17:10 -0000)]
2006-01-10  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xml_test.dll.sources : added XmlSchemaTypeTests.cs.

* XmlSchemaTypeTests.cs : new file. Test for TypeCode.
* XmlSchemaSetTests.cs : added more tests for Add() and marked one as
  NotWorking (we need info on how consistent this method is).

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

18 years ago2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 10 Jan 2006 16:44:50 +0000 (16:44 -0000)]
2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebResponse.cs: cope with malformed cookies with '=' as value.
Patch by Cyrille Colin. Fixes bug #77179.

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

18 years agoIn ilasm/parser:
Ankit Jain [Tue, 10 Jan 2006 16:38:08 +0000 (16:38 -0000)]
In ilasm/parser:

* ILParser.jay (type | BANG ..): Move !* and !!* rules to ..
(generic_class_ref): ..this, to allow using VAR/MVARs as class refs.
Eg. "extends !0"

In class/PEAPI:

* Metadata.cs (GenParam): Don't use GetTypeSpec to create typespec for GenParam.
Adding required methods directly to GenParam.
* PEAPI.cs (PEFile.AddGenericParam): Add it to the TypeSpec table directly.

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

18 years ago2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 10 Jan 2006 16:30:10 +0000 (16:30 -0000)]
2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Calendar.cs: Modified file.

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

18 years agofixing references
Konstantin Triger [Tue, 10 Jan 2006 15:52:32 +0000 (15:52 -0000)]
fixing references

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

18 years agoIn ilasm/tests:
Ankit Jain [Tue, 10 Jan 2006 15:34:27 +0000 (15:34 -0000)]
In ilasm/tests:
* gen-nested.il: New. Test for a generic type nested in a non-generic
one.

In ilasm/codegen:
* TypeDef.cs (TypeDef.GetGenericParamNum): Return -1 if type has no
generic parameters.
* MethodDef.cs (MethodDef.GetGenericParamNum): Likewise.

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

18 years agoDistribute nunit-console.exe.net_2_0.config
Raja R Harinath [Tue, 10 Jan 2006 14:36:56 +0000 (14:36 -0000)]
Distribute nunit-console.exe.net_2_0.config

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

18 years ago * Catalog.cs: Don't use
Jonathan Pryor [Tue, 10 Jan 2006 14:36:17 +0000 (14:36 -0000)]
  * Catalog.cs: Don't use
    System.Runtime.InteropServices.Marshal.StringToHGlobalAuto(), use
    UnixMarshal.StringToHeap().  We require that the converted string be in
    UTF-8 format, but .NET's Marshal.StringToHGlobalAuto converts to the local
    code page, *not* UTF-8 (Mono's does UTF-8).  UnixMarshal.StringToHeap
    *always* does UTF-8, so use that instead.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Tue, 10 Jan 2006 14:18:07 +0000 (14:18 -0000)]
In ilasm/codegen:
* MethodDef.cs (MethodDef.WriteCode): Resolve generic params for abstract
methods also.

In ilasm/tests:
* gen-meth3.il: New. Test for abstract generic method.

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

18 years ago* scripts/Makefile.am (scripts_2_0): Add nunit-console2.
Raja R Harinath [Tue, 10 Jan 2006 13:56:59 +0000 (13:56 -0000)]
* scripts/Makefile.am (scripts_2_0): Add nunit-console2.

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

18 years agoThis should fix #76928. This fix incorporates ideas from a patch
Raja R Harinath [Tue, 10 Jan 2006 13:55:51 +0000 (13:55 -0000)]
This should fix #76928.  This fix incorporates ideas from a patch
osted on that bugreport.
* Makefile [net_2_0 profile]: Don't build nunit-console.exe.  Copy
the executable from the 'default' profile, and use a slightly
customized nunit-console.exe.config.
* nunit-console.exe.net_2_0.config: New config file for the
net_2_0 profile.  Alter the list of 'supportedRuntime's to prefer
the 2.0 runtime.

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

18 years ago2006-01-10 Senganal T <tsenganal@novell.com>
Senganal T [Tue, 10 Jan 2006 13:06:43 +0000 (13:06 -0000)]
2006-01-10 Senganal T <tsenganal@novell.com>
* Test/System.Data/DataViewTest2.cs
- Added testcase for bug #77188
* System.Data/DataRowCollection.cs
- Added ListChangedEvent to notify reset of the collection.
* System.Data/DataView.cs
- Subscribes to the ListChangedEvent of DataRowCollection
Fixes bug #77188

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

18 years ago2006-01-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 10 Jan 2006 12:57:37 +0000 (12:57 -0000)]
2006-01-10  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xml_test.dll.sources : XmlSchemaDatatypeTests.cs was missing.
  collected sys.xml.schema lines.

* XmlSchemaDatatypeTests.cs : oops sys.col.generic is NET_2_0.

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

18 years ago2006-01-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 10 Jan 2006 12:54:26 +0000 (12:54 -0000)]
2006-01-10  Atsushi Enomoto <atsushi@ximian.com>

* XmlAtomicValue.cs : it won't be implemented since there is no way
  to test it inside sys.xml. Thus remarked MonoTODO.
* XmlSchemaDatatype.cs : implemented IsDerivedFrom(), which is however
  mostly useless.

* XmlSchemaDatatypeTests.cs : added test for 2.0 IsDerivedFrom().

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

18 years agoIn ilasm/tests:
Ankit Jain [Tue, 10 Jan 2006 12:27:56 +0000 (12:27 -0000)]
In ilasm/tests:

* gen-meth1.il: New. Test for use of VAR/MVAR by name (!!A)
* gen-meth2.il: New. Test for using VAR/MVAR as class ref.

In ilasm/codegen:

* TypeDef.cs (TypeDef.TypeParameters): New.
(TypeDef.ResolveGenParams): New. Resolve any gen param refs in
constraints, base class ref or implemented interfaces.
* MethodDef.cs (MethodDef.ResolveGenParams): Update to use new Resolve
overloads and ResolveConstraints for GenericParameters.

* GenericTypeInst.cs (GenericTypeInst.Resolve): Resolve generic args.
* GenericParamRef.cs (GenericParamRef.Resolve): Implement.
* GenericParameters.cs (GenericParameter.ResolveConstraints): New.
(GenericParameters.ResolveConstraints): New.
* GenericArguments.cs (GenericArguments.Resolve): New.

* TypeRef.cs (TypeRef.GetGenericTypeInst): Don't cache.
* ExternTypeRef.cs (ExternTypeRef.GetGenericTypeInst): Likewise.

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

18 years ago* Syscall.cs (sys_futimes): Remove buggy custom marshaller on 'fd' parameter.
Raja R Harinath [Tue, 10 Jan 2006 08:52:04 +0000 (08:52 -0000)]
* Syscall.cs (sys_futimes): Remove buggy custom marshaller on 'fd' parameter.

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

18 years ago2006-01-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 10 Jan 2006 07:35:46 +0000 (07:35 -0000)]
2006-01-10  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngValidatingReader.cs :
  - Split memoization support things into MemoizationStore class.
  - Split single memo ArrayList into a couple of Hashtables and
    ArrayLists which memoize each kind of derivative results.
  - Introduced StartAttDeriv() and EndAttDeriv() to replace AttDeriv()
    and memoize results efficiently. It is textually written in the
    "derivative algorithm", but not formally specified.
  - Introduced IsTextValueDependent and EmptyTextDeriv() to
    differentiate those patterns which results differ depending on
    the text value and those which doesn't.
    Those EmptyTextDeriv results are memoized.

* RdpPatterns.cs :
  - Added StartAttDeriv(), EndAttDeriv() and IsTextValueDependent.
    (See corresponding changes in RelaxngValidatingReader.cs).
  - Added a bunch of derivative method overloads to receive
    MemoizationStore and memoize results efficiently.

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

18 years ago2006-01-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 10 Jan 2006 07:20:38 +0000 (07:20 -0000)]
2006-01-10  Atsushi Enomoto <atsushi@ximian.com>

* Misc.cs : NormalizeWhitespace() was creating extraneous char[] and
  it could be heavily called depending on patterns.
* RelaxngDefaultDatatypes.cs : avoid extraneous call to
  NormalizeWhitespace().

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

18 years ago2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Tue, 10 Jan 2006 04:48:44 +0000 (04:48 -0000)]
2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>

* Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.

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

18 years ago2006-1-10 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Tue, 10 Jan 2006 04:46:55 +0000 (04:46 -0000)]
2006-1-10  Jonathan Chambers  <jonathan.chambers@ansys.com>

* System.Windows.Forms.dll.sources: Add PrintPreviewDialog and PrintPreviewControl

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

18 years ago2006-01-9 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Tue, 10 Jan 2006 04:18:52 +0000 (04:18 -0000)]
2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>

* PrintControllerWithStatusDialog.cs: Update page number in dialog.

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