mono.git
21 years agoSome fixes, thanks to duncan
Rodrigo Moya [Mon, 10 Jun 2002 19:21:12 +0000 (19:21 -0000)]
Some fixes, thanks to duncan

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

21 years ago2002-06-10 Duncan Mak <duncan@ximian.com>
Duncan Mak [Mon, 10 Jun 2002 15:53:12 +0000 (15:53 -0000)]
2002-06-10  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToType): Added null field in conversionTable to avoid
IndexOutOfRangeException. Changed what exceptions we throw to match
the spec.

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

21 years ago2002-06-10 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Mon, 10 Jun 2002 14:40:43 +0000 (14:40 -0000)]
2002-06-10  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged expression.cs and interface.cs from mcs/mcs

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

21 years ago2002-06-10 Duncan Mak <duncan@ximian.com>
Duncan Mak [Mon, 10 Jun 2002 13:20:06 +0000 (13:20 -0000)]
2002-06-10  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToDouble): Remove rounding in ToDouble (float).

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

21 years agoMon Jun 10 18:58:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jun 2002 13:12:50 +0000 (13:12 -0000)]
Mon Jun 10 18:58:18 CEST 2002 Paolo Molaro <lupus@ximian.com>

* PropertyBuilder.cs: implemented ReflectedType and DeclaringType
properties.

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

21 years ago2002-06-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 10 Jun 2002 12:32:35 +0000 (12:32 -0000)]
2002-06-11  Nick Drochak  <ndrochak@gol.com>

* Int64.cs (Parse): Added unique strings to the messages where we throw
a FormatException. Needed these to debug, so just left them in since
they might be useful later. Fixed Currency parsing where we weren't
looking at CurrencyDecimalSeparator, etc.

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

21 years ago2002-06-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 10 Jun 2002 11:35:18 +0000 (11:35 -0000)]
2002-06-11  Nick Drochak  <ndrochak@gol.com>

* SecurityElementTest.cs: Catch and report unexpected exceptions.

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

21 years ago2002-06-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 10 Jun 2002 11:34:07 +0000 (11:34 -0000)]
2002-06-11  Nick Drochak  <ndrochak@gol.com>

* Int64Test.cs: Set the culture to en-US for testing.
* MathTest.cs: mono is more precise in Log2, so change test to compare
values within a slightly larger margin of error.

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

21 years ago2002-06-11 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 10 Jun 2002 11:28:58 +0000 (11:28 -0000)]
2002-06-11  Nick Drochak  <ndrochak@gol.com>

* NumberFormatInfo.cs: Make NumberNegativePattern = 1 for the ctor

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

21 years ago2002-06-10 Dwivedi, Ajay kumar <adwiv@yahoo.com>
Ajay kumar Dwivedi [Mon, 10 Jun 2002 08:36:16 +0000 (08:36 -0000)]
2002-06-10  Dwivedi, Ajay kumar <adwiv@yahoo.com>
* XmlSchemaReader: A Wrapper class around XmlReader with customized
  methods to suit reading a schema.
* General: Implemented Read() method for the schema. There are only
  a few minor bugs remaining.

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

21 years ago2002-06-10 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 10 Jun 2002 08:34:32 +0000 (08:34 -0000)]
2002-06-10  Martin Baulig  <martin@gnome.org>

* interface.cs (Interface.PopulateIndexer): Add the indexer's
PropertyBuilder to the `property_builders' list.

* expression.cs (Indexers.GetIndexersForTypeOrInterface): New private method.
(Indexers.GetIndexersForType): Call GetIndexersForTypeOrInterface() on the
`lookup_type' and all its interfaces.  Unfortunately, Type.FindMembers() won't
find any indexers which are inherited from an interface.

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

21 years ago2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
Ajay kumar Dwivedi [Mon, 10 Jun 2002 02:20:46 +0000 (02:20 -0000)]
2002-06-10  Ajay kumar Dwivedi <adwiv@yahoo.com>
* XmlConstruct.cs : New Internal class with Helper methods for
Checking XmlConstructs
* XmlConvert.cs: Implemented most of the methods

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

21 years ago2002/06/10 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 10 Jun 2002 01:39:21 +0000 (01:39 -0000)]
2002/06/10  Nick Drochak <ndrochak@gol.com>

* DecimalTest.cs: More culture indepenence. Fixes the problems we were
having with tests failing against MS.NET.
* Int64Test.cs: Same plus some formatting fixes.
* RandomTest.cs: Split Assert into two to figure out which one part is
failing.

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

21 years ago2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Sun, 9 Jun 2002 19:46:29 +0000 (19:46 -0000)]
2002-06-07  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged const.cs, enum.cs, expression.cs and  typemanager.cs from mcs/mcs
      * comments on module.cs

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

21 years ago2002-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sun, 9 Jun 2002 19:28:27 +0000 (19:28 -0000)]
2002-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.UI/ControlCollection.cs:
(AddAt): if index is -1 behave as a plain Add.

* System.Web.UI.HtmlControls/HtmlSelect.cs:
(RenderAttributes): new -> override and fixes stack overflow.
(RenderChildren): only 1 option can be selected at any given time
except when Multiple property is true.
(Multiple): the attribute value is either "true" or "false", not
"multiple".

* System.Web.UI.HtmlControls/HtmlTable.cs:
(Add):
(AddAt): allow HtmlTableRow as children, not HtmlTableCell.

* System.Web.UI.HtmlControls/HtmlTableCell.cs:
(RenderEndTag): new -> override.

* System.Web.UI.HtmlControls/HtmlTableRow.cs:
(RenderChildren): fixed another stack overflow.
(RenderEndTag): new -> override.

* System.Web.UI.HtmlControls/HtmlTextArea.cs:
(RenderAttributes): new -> override.

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

21 years ago * class.xml: Added entries for the following classes from System.Diagnostics:
Jonathan Pryor [Sun, 9 Jun 2002 18:11:16 +0000 (18:11 -0000)]
  * class.xml: Added entries for the following classes from System.Diagnostics:
    - EntryWrittenEventArgs
    - EntryWrittenEventHandler
    - EventLog
    - EventLogEntryCollection
    - EventLogEntry
    - EventLogEntryType
    - EventLogInstaller
    - EventLogPermissionAccess
    - EventLogPermissionAttribute
    - EventLogPermission
    - EventLogPermissionEntryCollection
    - EventLogPermissionEntry
    - EventLogTraceListener

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

21 years ago * EntryWrittenEventArgs.cs: Implemented
Jonathan Pryor [Sun, 9 Jun 2002 18:06:07 +0000 (18:06 -0000)]
  * EntryWrittenEventArgs.cs: Implemented
  * EntryWrittenEventHandler.cs: Implemented
  * EventLog.cs: Stubbed out
  * EventLogEntry.cs: Stubbed out
  * EventLogEntryCOllection.cs: Implemented.
  * EventLogEntryType.cs: Implemented
  * EventLogInstaller.cs: Stubbed out
  * EventLogPermission.cs: Stubbed out
  * EventLogPermissionAccess.cs: Implemented
  * EventLogPermissionAttribute.cs: Stubbed out
  * EventLogPermissionEntry.cs: Stubbed out
  * EventLogPermissionEntryCollection.cs: Stubbed out
  * EventLogTraceListener.cs: Stubbed out

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

21 years ago2002-06-09 Martin Baulig <martin@gnome.org>
Martin Baulig [Sun, 9 Jun 2002 15:55:51 +0000 (15:55 -0000)]
2002-06-09  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_open_image): For MONO_DEBUG_FORMAT_DWARF2_PLUS,
the `%s-debug.s' file is in the same directory than its assembly.

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

21 years ago2002-06-09 Martin Baulig <martin@gnome.org>
Martin Baulig [Sun, 9 Jun 2002 15:17:57 +0000 (15:17 -0000)]
2002-06-09  Martin Baulig  <martin@gnome.org>

* const.cs (Const.LookupConstantValue): Convert `Expr' to a literal of
the same type as the constant if necessary.  There's also a test-130.cs
for this.

* enum.cs (Enum.ChangeEnumType): Moved to typemanager.cs and made public.

* typemanager.cs (TypeManager.ChangeType): Previously known as
Enum.ChangeEnumType().

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

21 years ago2002-06-09 Martin Baulig <martin@gnome.org>
Martin Baulig [Sun, 9 Jun 2002 15:14:34 +0000 (15:14 -0000)]
2002-06-09  Martin Baulig  <martin@gnome.org>

* test-130.cs: New test for constants and casts.

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

21 years ago2002-06-09 Martin Baulig <martin@gnome.org>
Martin Baulig [Sun, 9 Jun 2002 12:32:06 +0000 (12:32 -0000)]
2002-06-09  Martin Baulig  <martin@gnome.org>

* expression.cs (Cast.TryReduce): Added support for consts.

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

21 years ago2002-06-09 Martin Baulig <martin@gnome.org>
Martin Baulig [Sun, 9 Jun 2002 10:31:54 +0000 (10:31 -0000)]
2002-06-09  Martin Baulig  <martin@gnome.org>

* test-129.cs: New test for unary minus.

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

21 years ago * DateTime.cs: fixes to pass tests M0 to M6:
Lawrence Pit [Sun, 9 Jun 2002 08:03:04 +0000 (08:03 -0000)]
* DateTime.cs: fixes to pass tests M0 to M6:
if yy pattern then year values >= 30 are in 20th century
rfc1123 pattern is always in GMT, therefor useutc must be false
made GetNow() internal static so it can be called from TimeZone.

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

21 years ago * TimeZone.cs: removed dependency on year 2002 from initialization of
Lawrence Pit [Sun, 9 Jun 2002 05:54:24 +0000 (05:54 -0000)]
* TimeZone.cs: removed dependency on year 2002 from initialization of
current timezone.
* DateTimeTest.cs: Making tests culture independent

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

21 years ago2002-06-09 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 9 Jun 2002 03:50:49 +0000 (03:50 -0000)]
2002-06-09  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToType): Rearranged what Exceptions we throw to
match MS behavior.

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

21 years ago2002-06-08 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 8 Jun 2002 21:52:08 +0000 (21:52 -0000)]
2002-06-08  Duncan Mak  <duncan@ximian.com>

* XmlDocument.cs (Load):
Added bits to Load (string) for BaseURI support.

* XmlAttribute.cs (BaseURI):
* XmlDocument.cs (BaseURI):
* XmlEntity.cs (BaseURI):
* XmlNode.cs (BaseURI): Implemented.

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

21 years ago2002-06-08 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 8 Jun 2002 20:58:48 +0000 (20:58 -0000)]
2002-06-08  Duncan Mak  <duncan@ximian.com>

* Decimal.cs: Added support for the IConvertible interface.

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

21 years ago2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Sat, 8 Jun 2002 18:57:58 +0000 (18:57 -0000)]
2002-06-07  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged class.cs, attribute.cs from mcs/mcs

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

21 years ago2002-06-08 Jeffrey Stedfast <fejj@ximian.com>
Jeffrey Stedfast [Sat, 8 Jun 2002 17:57:49 +0000 (17:57 -0000)]
2002-06-08  Jeffrey Stedfast  <fejj@ximian.com>

* mono-mutex.c (mono_once): New convenience function for my
previous fix.

* handles.c:
* error.c:
* critical-sections.c:
* threads.c:
* sockets.c:
* semaphores.c:
* processes.c:
* mutexes.c:
* io.c:
* events.c:
* atomic.c: Use mono_once() rather than pthread_once().

2002-06-06  Jeffrey Stedfast  <fejj@ximian.com>

* handles.c (_wapi_handle_new): pthread_once() is not atomic, so
if multiple threads all try to call _wapi_handle_new() before the
shared data has been initialized, it is possible that we could get
into a condition where shared_init() is being executed and later
threads will pass by pthread_once() due to the fact that it has
already been called and so therefor will attempt to use the shared
data before it has been completely initialized. If we instead use
a standard mutex locking mechanism around shared_init(), we can
avoid the situation entirely. By wrapping the mutex locking in a
check to see if we've already initialized the data, we can even
avoid wasting resources by having to lock/unlock the mutex in any
later calls (the only time we'd have to worry about
locking/unlocking is the initial race to call shared_init() at
startup).

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

21 years ago2002-06-08 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sat, 8 Jun 2002 17:29:47 +0000 (17:29 -0000)]
2002-06-08  Ravi Pratap  <ravi@ximian.com>

* class.cs (Accessor): Hold attributes information so we can pass
it along.

* cs-parser.jay (get_accessor_declaration, set_accessor_declaration):
Modify to pass in attributes attached to the methods.

(add_accessor_declaration, remove_accessor_declaration): Ditto.

* attribute.cs (ApplyAttributes, CheckAttribute): Update accordingly
to handle the Accessor kind :-)

* class.cs (Property.Emit, Event.Emit): Apply attributes to the accessors

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

21 years ago2002-06-08 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Sat, 8 Jun 2002 17:27:07 +0000 (17:27 -0000)]
2002-06-08  Ravi Pratap  <ravi@ximian.com>

* test-128.cs : Add. This ensures we apply attributes to accessors
of events and properties.

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

21 years ago2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Sat, 8 Jun 2002 15:34:46 +0000 (15:34 -0000)]
2002-06-07  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged class.cs, enum.cs, expression.cs, interface.cs, rootcontext.cs and typemanager.cs from mcs/mcs
* added module.cs (class Mono.MonoBASIC.Module - derived from Mono.CSharp.Class)
* added System.XML and Microsoft.VisualBasic to the default config (driver.cs)

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

21 years ago2002-06-08 Martin Baulig <martin@gnome.org>
Martin Baulig [Sat, 8 Jun 2002 13:39:30 +0000 (13:39 -0000)]
2002-06-08  Martin Baulig  <martin@gnome.org>

* expression.cs (Unary.TryReduceNegative): Added support for
ULongConstants.

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

21 years ago2002-06-08 Martin Baulig <martin@gnome.org>
Martin Baulig [Sat, 8 Jun 2002 13:37:53 +0000 (13:37 -0000)]
2002-06-08  Martin Baulig  <martin@gnome.org>

* enum.cs (Enum.LookupEnumValue): Don't report an error if the
name can't be found in the `defined_names' - the caller will do a
MemberLookup in this case and thus find methods in System.Enum
such as Enum.IsDefined().

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

21 years ago2002-06-08 Martin Baulig <martin@gnome.org>
Martin Baulig [Sat, 8 Jun 2002 12:47:02 +0000 (12:47 -0000)]
2002-06-08  Martin Baulig  <martin@gnome.org>

* test-127.cs: New test for Enum.IsDefined().

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

21 years ago2002-06-08 Martin Baulig <martin@gnome.org>
Martin Baulig [Sat, 8 Jun 2002 12:41:54 +0000 (12:41 -0000)]
2002-06-08  Martin Baulig  <martin@gnome.org>

* Enum.cs (IsDefined): `value' may be of the enum's type itself, it
doesn't necessarily need to be of the enum's underlying type.

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

21 years ago2002-06-08 Martin Baulig <martin@gnome.org>
Martin Baulig [Sat, 8 Jun 2002 11:55:32 +0000 (11:55 -0000)]
2002-06-08  Martin Baulig  <martin@gnome.org>

* enum.cs (Enum.ChangeEnumType): This is a custom version of
Convert.ChangeType() which works with TypeBuilder created types.
(Enum.LookupEnumValue, Enum.Define): Use it here.

* class.cs (TypeContainer.RegisterRequiredImplementations): Added
`TypeBuilder.BaseType != null' check.
(TypeContainer.FindMembers): Only lookup parent members if we
actually have a parent.
(Method.EmitDestructor): Added `ec.ContainerType.BaseType != null' check.
(ConstructorInitializer.Resolve): Likewise.

* interface.cs (Interface.FindMembers): Added
`TypeBuilder.BaseType != null' check.

* rootcontext.cs (RootContext.ResolveCore): Added
"System.Runtime.CompilerServices.IndexerNameAttribute" to
classes_second_stage.

* typemanager.cs (TypeManager.InitCoreTypes): Don't initialize
debug_type and trace_type when compiling with --nostdlib.

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

21 years ago* MoveToAttribute should stop on the requested attribute and return true,
Adam Treat [Sat, 8 Jun 2002 02:00:46 +0000 (02:00 -0000)]
* MoveToAttribute should stop on the requested attribute and return true,
  otherwise return false.

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

21 years agoFixed link to CVS browsing
Gonzalo Paniagua Javier [Fri, 7 Jun 2002 21:30:18 +0000 (21:30 -0000)]
Fixed link to CVS browsing

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

21 years ago2002-06-07 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Fri, 7 Jun 2002 20:47:29 +0000 (20:47 -0000)]
2002-06-07  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* merged class.cs and ecore.cs from mcs/mcs

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

21 years ago2002-6-5 DennisHayes <dennish@raytek.com>
Dennis Hayes [Fri, 7 Jun 2002 20:41:12 +0000 (20:41 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* StatusBarDrawItemEventArgs.cs
* StatusBarPanel.cs
* StatusBarPanelClickEventArgs.cs
* StatusBarPanelCollection.cs
* SystemInformation.cs
* added new files for Richard Baumann (biochem333@nyc.rr.com)

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

21 years ago2002-6-5 DennisHayes <dennish@raytek.com>
Dennis Hayes [Fri, 7 Jun 2002 20:38:02 +0000 (20:38 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* ErrorProvider.cs
* PrintControllerWithStatusDialog.cs
* PrintDialog.cs
* added new files for paul

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

21 years ago2002-6-5 DennisHayes <dennish@raytek.com>
Dennis Hayes [Fri, 7 Jun 2002 20:35:11 +0000 (20:35 -0000)]
2002-6-5 DennisHayes <dennish@raytek.com>
* TabControl.cs
* TabPage.cs
* TextBox.cs
* TextBoxBase.cs
* ThreadExceptionDialog.cs
* Timer.cs
* added new files for Jackson Harper (jackson@latitudegeo.com)

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

21 years ago2002-06-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 7 Jun 2002 16:58:59 +0000 (16:58 -0000)]
2002-06-07  Martin Baulig  <martin@gnome.org>

* class.cs (TypeContainer): Added `have_nonstatic_fields' field.
(AddField): Set it to true when adding a non-static field.
(DefineType): Use `have_nonstatic_fields' to find out whether we
have non-static fields, not `Fields != null'.

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

21 years ago2002-06-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 7 Jun 2002 16:53:09 +0000 (16:53 -0000)]
2002-06-07  Martin Baulig  <martin@gnome.org>

* reflection.c (mono_image_get_type_info): Only add a class layout entry
if we actually have a `tb->class_size' (ie. it's not UnspecifiedTypeSize).

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

21 years ago2002-06-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 7 Jun 2002 16:50:36 +0000 (16:50 -0000)]
2002-06-07  Martin Baulig  <martin@gnome.org>

* TypeBuilder.cs (TypeBuilder): Added `PackingSize packing_size' and
`int type_size' fields to the constructor.
(DefineNestedType): Pass packing_size and type_size to the constructor.

* ModuleBuilder.cs (DefineType): Pass the packing_size and type_size
fields to the TypeBuilder's constructor.

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

21 years agoFri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 16:23:23 +0000 (16:23 -0000)]
Fri Jun 7 22:07:25 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: more signature fixes that used uint instead of int.

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

21 years ago2002-06-07 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 7 Jun 2002 15:41:42 +0000 (15:41 -0000)]
2002-06-07  Martin Baulig  <martin@gnome.org>

* TypeBuilder.cs (DefineNestedType): There is no overload for this
method which takes 5 args in the specs, removed it.

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

21 years ago2002-06-02 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Fri, 7 Jun 2002 15:29:38 +0000 (15:29 -0000)]
2002-06-02  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (SimpleNameResolve): Removed simple bug (we were
dereferencing a null on the static-field code path)

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

21 years ago2002-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 7 Jun 2002 15:24:00 +0000 (15:24 -0000)]
2002-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlInputHidden.cs: fixed constructor.

* HtmlInputRadioButton.cs:
(RenderAttributes): fixed stack overflow.

(Name):
(RenderedName): new -> override.

(Value): new property.

* HtmlInputText.cs:
(RenderAttributes): fixed the same kind of stack overflow and make
string comparison case insensitive.

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

21 years agoFri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 14:56:05 +0000 (14:56 -0000)]
Fri Jun 7 20:41:56 CEST 2002 Paolo Molaro <lupus@ximian.com>

* reflection.c: fixed signature of field refs.

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

21 years agoFri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 13:55:50 +0000 (13:55 -0000)]
Fri Jun 7 19:41:14 CEST 2002 Paolo Molaro <lupus@ximian.com>

* class.c, reflection.c: handle typerefs of nested types
(both on read and when writing files).

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

21 years agoFri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 13:54:04 +0000 (13:54 -0000)]
Fri Jun 7 19:39:43 CEST 2002 Paolo Molaro <lupus@ximian.com>

* get.c: handle typerefs of nested types. Don't print "."
with an empty namespace.

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

22 years agoFri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 12:01:08 +0000 (12:01 -0000)]
Fri Jun 7 17:46:50 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: fix method signatures that tried to workaround the previous
typo, d'oh!

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

22 years agoFri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 11:50:27 +0000 (11:50 -0000)]
Fri Jun 7 17:36:33 CEST 2002 Paolo Molaro <lupus@ximian.com>

* debug-helpers.c: fix typo.

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

22 years agoFri Jun 7 17:04:06 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 11:18:06 +0000 (11:18 -0000)]
Fri Jun 7 17:04:06 CEST 2002 Paolo Molaro <lupus@ximian.com>

* AssemblyBuilder.cs: updates for PE/COFF rewrite.

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

22 years agoFri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 7 Jun 2002 11:18:05 +0000 (11:18 -0000)]
Fri Jun 7 17:00:04 CEST 2002 Paolo Molaro <lupus@ximian.com>

* cil-coff.h, icall.c, image.c, reflection.c, reflection.h:
rewrote the PE/COFF writing code (our programs are understood by the
ms runtime, now).

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

22 years ago2002-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 6 Jun 2002 23:38:26 +0000 (23:38 -0000)]
2002-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HtmlForm.cs: fixed name of Enctype property and render enctype
enctype attribute.

* HtmlInputControl.cs: tag type is "input", not "type".

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

22 years ago2002/06/07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Thu, 6 Jun 2002 22:30:58 +0000 (22:30 -0000)]
2002/06/07  Nick Drochak <ndrochak@gol.com>

* String.cs: Add [Serializable] to class
* SByte.cs (Parse): Add [CLSCompliant(false)] to all the overloads

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

22 years ago2002-06-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Thu, 6 Jun 2002 18:26:02 +0000 (18:26 -0000)]
2002-06-07  Nick Drochak  <ndrochak@gol.com>

* DecimalTest.cs: Catch unexpected exception and report it.

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

22 years ago2002-06-07 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Thu, 6 Jun 2002 18:24:10 +0000 (18:24 -0000)]
2002-06-07  Nick Drochak  <ndrochak@gol.com>

* NumberFormatInfo.cs: Make InvariantInfo.NumberNegativePattern = 1

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

22 years agomade some spelling corrections
Jeffrey Stedfast [Thu, 6 Jun 2002 17:55:06 +0000 (17:55 -0000)]
made some spelling corrections

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

22 years ago2002-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 6 Jun 2002 11:38:30 +0000 (11:38 -0000)]
2002-06-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.UI/Page.cs: for each child control to render, assign
Control.Page. Probably also needed in HtmlContainerControl derived
classes.

* System.Web.UI.HtmlControls/HtmlControl.cs: Render contents moved to
new RenderBeginTag method, defined in MS docs.

* System.Web.UI.HtmlControls/HtmlForm.cs: Render output when no IE
browser.

* System.Web.UI.HtmlControls/HtmlInputButton.cs: added constructor
without arguments. Xsp used it, though now it always use the other
.ctor.

* System.Web.UI.HtmlControls/HtmlInputControl.cs: cosmetic changes and
implemented set_Name.

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

22 years ago2002-06-06 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Thu, 6 Jun 2002 08:53:57 +0000 (08:53 -0000)]
2002-06-06  Rodrigo Moya <rodrigo@ximian.com>

* list: added missing PostgresTypes.cs file.

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

22 years ago2002-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 5 Jun 2002 15:58:32 +0000 (15:58 -0000)]
2002-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag
now works fine and takes care of the details.

* System.Web.UI/Control.cs: added HasChildren property.

* System.Web.UI/StateBag.cs: fixed a couple of nasty bugs.

* System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an
override, not new.

* System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new
Render method in HtmlControl.

* System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to
render the tag and its attributes. Works for container and
non-containers.

* System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need
to be new. Implemented Height property.

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

22 years agoChanged May 31st news
Gonzalo Paniagua Javier [Wed, 5 Jun 2002 12:46:56 +0000 (12:46 -0000)]
Changed May 31st news

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

22 years agopush index
Miguel de Icaza [Wed, 5 Jun 2002 12:41:24 +0000 (12:41 -0000)]
push index

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

22 years ago2002-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 4 Jun 2002 23:09:33 +0000 (23:09 -0000)]
2002-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.build: added /debug flag. I wanna see line numbers in
exceptions thrown.

* System.Web.UI/Page.cs: run OnInit, OnLoad y PreRender before
rendering the page. Invoke Page_Init and/or Page_Load if the user
supplied them (though this should depend on AutoEventWireUp attribute
of Page directive)

* System.Web.UI.HtmlControls/HtmlContainerControl.cs: some formatting
and use HttpUtility.Encode instead of Page.Server to encode InnerText.

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

22 years ago2002-5-31 DennisHayes <dennish@raytek.com>
Dennis Hayes [Tue, 4 Jun 2002 22:27:47 +0000 (22:27 -0000)]
2002-5-31 DennisHayes <dennish@raytek.com>
* ItemChangedEventHandler.cs
* InvalidateEventHandler.cs
* ItemChangedEventHandler.cs
* added new files

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

22 years ago2002-5-31 DennisHayes <dennish@raytek.com>
Dennis Hayes [Tue, 4 Jun 2002 22:19:54 +0000 (22:19 -0000)]
2002-5-31 DennisHayes <dennish@raytek.com>
* ColumnClickEventArgs.cs
* Fully implmented.

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

22 years ago2002-6-4 DennisHayes <dennish@raytek.com>
Dennis Hayes [Tue, 4 Jun 2002 22:08:50 +0000 (22:08 -0000)]
2002-6-4 DennisHayes <dennish@raytek.com>
* minor formating fixes in many files.

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

22 years ago2002-6-4 DennisHayes <dennish@raytek.com>
Dennis Hayes [Tue, 4 Jun 2002 21:57:43 +0000 (21:57 -0000)]
2002-6-4 DennisHayes <dennish@raytek.com>
* minor formating fixes in many files.

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

22 years agoUpdate `class.xml' to include all of the classes currently in
Jonathan Pryor [Tue, 4 Jun 2002 21:48:53 +0000 (21:48 -0000)]
Update `class.xml' to include all of the classes currently in
`/mcs/class/System/System.Diagnostics'.

I didn't know all the information for all the classes (e.g. % complete,
current maintainer), so this list isn't complete, but it should be easier to
update this information now that it's present.

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

22 years ago2002-6-4 DennisHayes <dennish@raytek.com>
Dennis Hayes [Tue, 4 Jun 2002 21:42:10 +0000 (21:42 -0000)]
2002-6-4 DennisHayes <dennish@raytek.com>
* minor formating fixes in many files.

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

22 years ago2002-06-02 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
Rafael Teixeira [Tue, 4 Jun 2002 21:15:14 +0000 (21:15 -0000)]
2002-06-02  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* copied methods MakeName and CheckDef from mcs\cs-parser.jay to GenericParser.cs
  where they are inherited by mb-parser.jay/cs
* put some code on the Module rule in mb-parser.jay to at least generate a class in the assembly,
  if I jump over the entry-point check code, while debugging

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

22 years ago2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 4 Jun 2002 16:49:33 +0000 (16:49 -0000)]
2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.UI/Control.cs: don't throw exception in ControlID. By now,
it returns ID.

* System.Web.UI/Page.cs:
(ProcessRequest): implemented.

* System.Web.UI.HtmlControls/HtmlAnchor.cs:
(RenderAttributes): new -> override and fixed little bug that made
it cause an stack overflow.

* System.Web.UI.HtmlControls/HtmlContainerControl.cs: reformatted and
added tag and its attributes rendering.

* System.Web.UI.HtmlControls/HtmlGenericControl.cs: removed TagName,
which is already in HtmlControl.

* System.Web.UI.HtmlControls/HtmlTable.cs:
(RenderEndTag): new -> override.

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

22 years ago2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 4 Jun 2002 13:27:21 +0000 (13:27 -0000)]
2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web/HttpRequest.cs: implemented Browser property.

* System.Web.UI/Page.cs: finished stubbing out. Implemented some
methods.

* System.Web.SessionState/HttpSessionState.cs:
* System.Web.SessionState/SessionStateModule.cs: new files with some
implementation and the rest stubbed.

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

22 years agoFixed make distcheck.
Paolo Molaro [Tue, 4 Jun 2002 13:03:39 +0000 (13:03 -0000)]
Fixed make distcheck.

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

22 years agoTue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 4 Jun 2002 12:24:55 +0000 (12:24 -0000)]
Tue Jun 4 18:10:47 CEST 2002 Paolo Molaro <lupus@ximian.com>

* gc.c, gc.h, icall.c: weakreference support.

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

22 years agoTue Jun 4 18:05:30 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 4 Jun 2002 12:24:45 +0000 (12:24 -0000)]
Tue Jun 4 18:05:30 CEST 2002 Paolo Molaro <lupus@ximian.com>

* GCHandle.cs: changed to fit spec and implementation needs.

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

22 years agoForgot in the last commit.
Paolo Molaro [Tue, 4 Jun 2002 11:42:50 +0000 (11:42 -0000)]
Forgot in the last commit.

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

22 years ago2002-06-05 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 4 Jun 2002 11:32:53 +0000 (11:32 -0000)]
2002-06-05  Nick Drochak  <ndrochak@gol.com>

* SecurityElement.cs: Fixed couple of hard to spot typos which were
causing valid names and keys to be rejected.

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

22 years ago2002-06-03 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Tue, 4 Jun 2002 11:14:51 +0000 (11:14 -0000)]
2002-06-03  Rodrigo Moya <rodrigo@ximian.com>

* OleDbParameterCollection.cs (GetEnumerator, SyncRoot,
IsSynchronized): implemented.

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

22 years ago2002-06-04 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 4 Jun 2002 11:01:09 +0000 (11:01 -0000)]
2002-06-04  Nick Drochak  <ndrochak@gol.com>

* Double.cs (Parse): Recognize the group separator string, but still we
don't check the format for the proper number of digits between
separators. Also throw OverflowException when we get Pos or Neg
Infinity from runtime.

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

22 years agoTue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 4 Jun 2002 10:20:34 +0000 (10:20 -0000)]
Tue Jun 4 16:06:19 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Makefile.am, mono-config.c: use $(sysconfdir).

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

22 years agoTue Jun 4 13:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 4 Jun 2002 07:23:21 +0000 (07:23 -0000)]
Tue Jun 4 13:08:43 CEST 2002 Paolo Molaro <lupus@ximian.com>

* ArrayList.cs: fixed RemoveAt() implementation.

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

22 years ago2002-06-03 Duncan Mak <duncan@ximian.com>
Duncan Mak [Mon, 3 Jun 2002 23:57:25 +0000 (23:57 -0000)]
2002-06-03  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToDouble): Fixed ToDouble (byte value).

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

22 years ago2002/06/04 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Mon, 3 Jun 2002 23:21:16 +0000 (23:21 -0000)]
2002/06/04  Nick Drochak <ndrochak@gol.com>

* ByteTest.cs: Fix currency constant that we use for the expected
value.  Try to be more culture-diverse.

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

22 years ago2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 3 Jun 2002 20:41:49 +0000 (20:41 -0000)]
2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web/HttpBrowserCapabilities.cs: stubbed out.

* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.

* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.

* System.Web.SessionState/IReadOnlySessionState.cs: New file.

* System.Web.SessionState/IRequiresSessionState.cs: New file.

* System.Web.SessionState/SessionStateMode.cs: New file.

* System.Web.UI/Page.cs:
(FileDependencies): now is public public.
(EnableViewStateMAC): uncommented and made protected.
(GetTypeHashCode): added method.

* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderAttributes): changed new by override.
(Name): allow setting the property.

* System.Web.UI.WebControls/WebControl.cs: added attributes
PersistChildrenAttribute and ParseChildrenAttribute.

* System.Web.Configuration/ChangeLog:
* System.Web.Configuration/HttpCapabilitiesBase.cs:
* System.Web.Security/ChangeLog:
* System.Web.Security/DefaultAuthenticationEventArgs.cs:
* System.Web.SessionState/ChangeLog:
* System.Web.SessionState/IReadOnlySessionState.cs:
* System.Web.SessionState/IRequiresSessionState.cs:
* System.Web.SessionState/SessionStateMode.cs: new files.

Now we are able to compile some files generated by xsp with our
System.Web classes.

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

22 years agoMon Jun 3 15:42:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 3 Jun 2002 09:56:48 +0000 (09:56 -0000)]
Mon Jun 3 15:42:50 CEST 2002 Paolo Molaro <lupus@ximian.com>

* monobitset.c, monobitset.h: documentation and fixes from
Dennis Haney.

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

22 years agoMon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 3 Jun 2002 07:29:10 +0000 (07:29 -0000)]
Mon Jun 3 13:13:32 CEST 2002 Paolo Molaro <lupus@ximian.com>

* icall.c: changed default precision of Double.ToString() to 15.
Fixed memory leak. Unified with Single.ToString.

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

22 years agoMon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 3 Jun 2002 07:12:26 +0000 (07:12 -0000)]
Mon Jun 3 12:58:40 CEST 2002 Paolo Molaro <lupus@ximian.com>

* ASCIIEncoding.cs: fixed handling of 0 bytecount.

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

22 years agoMon Jun 3 12:18:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 3 Jun 2002 06:32:01 +0000 (06:32 -0000)]
Mon Jun 3 12:18:18 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Type.cs: fixed GetTypeCode.

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

22 years ago2002/06/03 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 2 Jun 2002 23:45:30 +0000 (23:45 -0000)]
2002/06/03  Nick Drochak <ndrochak@gol.com>

* DecimalTest.cs: Fix some errors that were showing up when run against
ms.net.

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

22 years ago2002-06-02 Francisco Jr. <fxjrlists@yahoo.com.br>
Rodrigo Moya [Sun, 2 Jun 2002 14:46:11 +0000 (14:46 -0000)]
2002-06-02  Francisco Jr. <fxjrlists@yahoo.com.br>

* System.Data.SqlClient/SqlParameterCollection.cs: implemented missing
methods.

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

22 years ago2002-06-02 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Sun, 2 Jun 2002 14:41:11 +0000 (14:41 -0000)]
2002-06-02  Rodrigo Moya <rodrigo@ximian.com>

* OleDbTransaction.cs (Dispose): added missing method.

* OleDbCommand.cs (Clone): added missing methods.
(Parameters, Transaction, Connection): made these overload
IDbCommand's ones.

* OleDbParameterCollection.cs (IndexOf, Remove, RemoveAt):
call m_list methods, not own ones.

* OleDbParameter.cs: more implementation.

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

22 years ago2002-06-02 Rodrigo Moya <rodrigo@ximian.com>
Rodrigo Moya [Sun, 2 Jun 2002 13:47:04 +0000 (13:47 -0000)]
2002-06-02  Rodrigo Moya <rodrigo@ximian.com>

* OleDbTransaction.cs (Connection, IsolationLevel, Begin,
Commit, Rollback): implemented.
(GdaConnection): added new internal property.

* OleDbParameter.cs:
* OleDbParameterCollection.cs: implemented some methods and
properties.

* libgda.cs: added yet more libgda API functions.

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

22 years ago2002-06-02 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sun, 2 Jun 2002 12:10:47 +0000 (12:10 -0000)]
2002-06-02  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToInt16): use Convert.ToInt16 (int) instead of a direct
cast from an int so that we throw OverFlowException correctly.

(ToInt64): Use a new 64bit version of ConvertToBase.

(ConvertToBase): Add checks for overflow (checks Int32.MinValue
and Int32.MaxValue).

(ConvertFromBase64): New 64-bit version of ConvertFromBase.

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

22 years agoMore try-catch blocks to find the bugs.
Nick Drochak [Sun, 2 Jun 2002 10:24:04 +0000 (10:24 -0000)]
More try-catch blocks to find the bugs.

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

22 years ago2002-06-02 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Sun, 2 Jun 2002 10:20:16 +0000 (10:20 -0000)]
2002-06-02  Nick Drochak  <ndrochak@gol.com>

* Convert.cs (ToSByte): Check for special value.
* Single.cs (Parse):
* UInt16.cs (Parse):
* UInt32.cs (Parse): Throw OverflowException if negative

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