* SortedListTest.cs: Added new test when initial capacity is set to 0
(so it never returns to default, 16, when Capacity is set to 0) unless
Clear is called. Cleaned up unused SetUp/TearDown.
svn path=/trunk/mcs/; revision=28622
* Import.cs: removed extra XmlIgnore attribute on ServiceDescription
* Message.cs: removed extra XmlIgnore attribute on ServiceDescription
* MessageBinding.cs: removed extra DefaultValue attribute from Name,
removed extra XmlIgnoreAttribute from OperationBinding
* MessagePart.cs: removed extra XmlIgnore attribute on Message
* MimeContentBinding.cs: removed extra DefaultValue attribute on Part
* Operation.cs: removed extra XmlIgnore attribute on PortType
* OperationBinding.cs: removed extra XmlIgnore attribute on Binding
* OperationMessage.cs: removed extra XmlIgnore attribute on Operation
* Port.cs: removed extra XmlIgnore attribute on Service
* PortType.cs: removed extra XmlIgnore on ServiceDescription
* Service.cs: removed extra XmlIgnore on ServiceDescription
* ServiceDescriptionFormatExtension.cs: removed extra XmlIgnore
attribute on Parent
* SoapHeaderBinding.cs: added XmlElement attribute on Fault
* HttpSimpleProtocolImporter.cs: removed unused variable
* ServiceDescriptionImporter.cs: removed unused variable
* SoapProtocolImporter.cs: removed unused variable
svn path=/trunk/mcs/; revision=28615
* syntax.cs: re-applied my patch from 2004-05-27 plus a fix which is
emitting a Category.All if both a category and its negated value are
present.
svn path=/trunk/mcs/; revision=28609
* ArrayTest.cs: Fixed array used for some tests. Strangely the tests
didn't fail on MS runtime ?!?! but they should have!
svn path=/trunk/mcs/; revision=28606
* Array.cs: Fixed legal case where value is null.
* Byte.cs: Fixed ToString when format is an empty string (use "G").
svn path=/trunk/mcs/; revision=28603
* Guid.cs: Renamed private fields (and changed some to signed) to
match MS implementation and allow serialization to work. Fix
bug #59113.
svn path=/trunk/mcs/; revision=28602
* ArrayListTest.cs: Added new test for null in BinarySearch.
* HashtableTest.cs: Added null checking fro GetObjectData.
svn path=/trunk/mcs/; revision=28600
* FileTest.cs: Added tests to confirm that Exists never throws
exceptions even for invalid filenames or for unexisting directories.
* PathTest.cs: Added windows-specific tests that shows that
ChangeExtension validate the input patch but doesn't validate the
resulting path.
svn path=/trunk/mcs/; revision=28599
* ArrayTest.cs: Added tests for null values in BinarySearch.
* Byte.cs: Added test for default ToString format value.
svn path=/trunk/mcs/; revision=28598
* HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
when SetFilePath is called. This way the cached values are reset and
get the right value in case someone (namely SessionStateModule +
cookieless session) changes the FilePath after the property cached its
value. Fixes bug #59364.
svn path=/trunk/mcs/; revision=28586
* DataSet.cs : When a row has no parent row but the table has parent
relation(s), that row had been always ignored.
svn path=/trunk/mcs/; revision=28572
* XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
rejected same-named tables in different hierarchy. Thanks to Boris.
svn path=/trunk/mcs/; revision=28565
* Reverted patch to namespace.cs (Use lookuptypedirect). This
caused a regression: #59343. Referencing nested classes from an
assembly stopped working.
svn path=/trunk/mcs/; revision=28560
* SignedXml.cs : partial fix for bug #59165 that does not output
namespace that conflicts with element's namespace.
svn path=/trunk/mcs/; revision=28551
* DataTableTest.cs : Added test for serialization.
* DataSetInferXmlSchemaTest.cs : Added test for schema element skip.
svn path=/trunk/mcs/; revision=28549
* Misc.cs : made Util class internal.
* RelaxngDatatypeProvider.cs : looks commit was missing.
* RelaxngException.cs : made one .ctor() internal that accepts
RdpPattern.
* RelaxngNameClas.cs : Names list should not be settable.
* RelaxngPattern.cs : RelaxngRefPattern class is internal use only.
* RelaxngPatternType.cs : there is not "Include" pattern.
svn path=/trunk/mcs/; revision=28546
* OptionDetails.cs : ShortForm member now a string to favor some simplifications, fixes for Bug 58672
* OptionList.cs : Fixes for Bug 58672 and better handling for mixed-form options (linux/windows)
svn path=/trunk/mcs/; revision=28543
* Financial.cs:
Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)
svn path=/trunk/mcs/; revision=28530
* decl.cs: If possible, use lookuptypedirect here. We can only do
this if there is no `.' after the namespace. Avoids using
LookupType, which does lots of slow processing.
(FindNestedType) New method, does what it says :-).
* namespace.cs: use LookupTypeDirect.
* rootcontext.cs: use membercache, if possible.
* typemanager.cs (LookupTypeDirect): Cache negative hits too.
svn path=/trunk/mcs/; revision=28523
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
2004-05-30 Ben Maurer <[email protected]>
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28522
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
2004-05-30 Martin Baulig <[email protected]>
Committing a patch from Ben Maurer.
* rootcontext.cs (RootContext.LookupType): Cache negative results.
svn path=/trunk/mcs/; revision=28521
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
svn path=/trunk/mcs/; revision=28512
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
(MemberBase.VerifyObsoleteAttribute): Override.
* decl.cs
(MemberCore.CheckUsageOfObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
*delegate.cs
(Delegate.VerifyObsoleteAttribute): Override.
* ecore.cs
(Expression.CheckObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
(FieldExpr.DoResolve): Added tests for ObsoleteAttribute.
* enum.cs
(Enum.GetObsoleteAttribute): Returns ObsoleteAttribute for both enum type
and enum member.
* expression.cs
(Probe.DoResolve, Cast.DoResolve, LocalVariableReference.DoResolve,
New.DoResolve, SizeOf.DoResolve, TypeOf.DoResolce, MemberAccess.DoResolve):
Added test for ObsoleteAttribute.
* statement.cs
(Catch): Derived from Statement.
svn path=/trunk/mcs/; revision=28511
* attribute.cs
(GetConditionalAttributeValue): New method. Returns
condition of ConditionalAttribute.
(SearchMulti): New method. Returns all attributes of type 't'.
Use it when attribute is AllowMultiple = true.
* class.cs
(Method.IsExcluded): Implemented. Returns true if method has conditional
attribute and the conditions is not defined (method is excluded).
(IMethodData): Extended interface for ConditionalAttribute support.
(PropertyMethod.IsExcluded): Implemented.
svn path=/trunk/mcs/; revision=28510
* SetWin32ContextInIDispatchAttribute.cs: only build
for NET_2_0 profile
* VariantWrapper.cs: only build for NET_2_0 profile
svn path=/trunk/mcs/; revision=28506
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
svn path=/trunk/mcs/; revision=28505
* RncParser.jay :
Now RncParser.Parse() returns RelaxngPattern, not RelaxngGrammar.
Fixed many "confusing RelaxngPattern and RelaxngPatternList"
problems, and ditto for other "List" stuff.
To avoid complex situations, mostly removed unused annotation stuff.
svn path=/trunk/mcs/; revision=28502
* FileStream.cs: Lots of new tests for exception handling (negatives,
disposed) and test reading a byte ast the end of the stream.
svn path=/trunk/mcs/; revision=28496
* BufferedStreamTest.cs: Added tests for Position after SetLength,
SetLength after Close and Seek logic exception handling.
* FileStream.cs: Added test for invalid SeekOrigin in Seek.
* MemoryStream.cs: Added test for Seek after Close.
svn path=/trunk/mcs/; revision=28491
* BufferedStream.cs: Fixed Seek logic (check for CanSeek and dispose).
SetLength must also reset Position and check for dispose.
* FileStream.cs: Added missing check for invalid SeekOrigin.
svn path=/trunk/mcs/; revision=28490
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28482
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
svn path=/trunk/mcs/; revision=28481
* BinaryReader.cs: Added missing disposed check for most methods.
Reordered some exceptions to match MS implementation.
svn path=/trunk/mcs/; revision=28480
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=28477
* StackFrameTest.cs: Mark the failures that have been failing
for months due to bug 45730 as ignored as it doesn't look like
it will be fixed soon.
My aim with these commits is that eventually people will run the test cases,
and see what errors they have caused, rather than tens of pages of stacktraces.
svn path=/trunk/mcs/; revision=28472
* DecimalTest.cs: Moved the rounding test that fails due to
bug 37744 (bankers rounding) into its own test, and annotated it as ignored
until the bug is fixed.
svn path=/trunk/mcs/; revision=28471
* Console.cs: Remove *again* the version of WriteLine with four
arguments; That should *not* be added.
Flag it as internal as people migrate their code.
svn path=/trunk/mcs/; revision=28469
* class.cs (IMethodData.ShouldIgnore): New method.
* typemanager.cs (TypeManager.MethodFlags): Don't take a
`Location' argument, we don't need it anywhere. Use
`IMethodData.ShouldIgnore ()' instead of
`MethodData.GetMethodFlags ()'.
(TypeManager.AddMethod): Removed.
(TypeManager.AddMethod2): Renamed to AddMethod.
svn path=/trunk/mcs/; revision=28458
Committing a patch from Benjamin Jemlich <[email protected]>.
* convert.cs (Convert.ImplicitReferenceConversion): If we're
converting from a class type S to an interface type and we already
have an object on the stack, don't box it again. Fixes#52578.
svn path=/trunk/mcs/; revision=28456
* Convert.cs: Fixed ToSByte(string,IFormatProvider) to throw
ArgumentNullException (only case, all other returns 0). Fixed exception
reporting for hex prefix only strings.
svn path=/trunk/mcs/; revision=28450
* ConvertTest.cs: Added new parsing tests including special case for
Convert.ToSByte.
* Int64Test.cs: Added new test cases for overflows.
svn path=/trunk/mcs/; revision=28444
removed TODO
* System.Messaging/MessageQueueErrorCode.cs: fixed typo
* System.Messaging/MessageQueueAccessRights.cs: removed extra
enum field
svn path=/trunk/mcs/; revision=28438
* Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
([email protected]) for the patch.
svn path=/trunk/mcs/; revision=28437
* expression.cs (MemberAccess.ResolveMemberAccess): If we're an
EventExpr, set `ee.InstanceExpression = left'. Fixes#59188.
* ecore.cs (EventExpr.instance_expr): Make the field private.
svn path=/trunk/mcs/; revision=28431
* Zip/Compression/DeflaterHuffman.cs (FlushBlock): Add some
parenthesis to help the generics compiler read this source.
svn path=/trunk/mcs/; revision=28419
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Set the full version number (major, minor, build, revision).
svn path=/trunk/mono/; revision=28407
of the issues I found with the pnet Coding Developers (Dining
Philosophers) sample app. We now at least draw on screen :-)
svn path=/trunk/mcs/; revision=28390
* Convert.cs: Fixed integer parsing for special cases (0x, 0X for base
16), non-base 10 negative numbers ... see new unit tests.
svn path=/trunk/mcs/; revision=28389
* Statement.cs: changed parent_is_itr_stm method to ParentIsItrStm
property. Added initial pieces for Break's Resolve. Fixed bug that
did not let Emit the code for case clauses that came after the
default clause (we match the jsc behavior).
svn path=/trunk/mcs/; revision=28376
* marshal.c (emit_struct_conv): increment src/dst after blit
(mono_marshal_get_managed_wrapper,
mono_marshal_get_native_wrapper): make sure we have marshalling
info before marshalling params (info computation affects
blittable)
* class.c (class_compute_field_layout): correctly deal with
blittable
(mono_class_layout_fields): Don't do gc_aware_layout for AUTO
value types (as per what windows dows by default)
(mono_class_setup_mono_type): System.ValueType is blittable
(mono_ptr_class_get, mono_fnptr_class_get): Pointer classes are
blittable
* marshal.c (mono_marshal_load_type_info): flag types as
non-blittable if the native layout doesn't match the managed
layout
svn path=/trunk/mono/; revision=28375
* appdomain.c: don't add stuff in the private search path that is
above the application base. If application base is not set, there's
no private search path.
svn path=/trunk/mono/; revision=28374
* mini.c (mono_jit_runtime_invoke): Init class in this
method instead of trusting mono_jit_compile_method to
do the work (because wrappers can be in object class)
svn path=/trunk/mono/; revision=28359
* marshal.c (mono_marshal_get_runtime_invoke): correctly
cache methods using signature (special case for methods
that are value type or string class)
* image.c (mono_image_close): clean up allocated GSList's
in runtime_invoke_cache.
svn path=/trunk/mono/; revision=28358
* mono-config.c: set the correct path for mono_cfg_dir on windows when
there's no MONO_CFG_DIR environment variable defined.
svn path=/trunk/mono/; revision=28357
is interrumped.
* threads.c: In mono_thread_manage, call OpenThread to ref each handle
before waiting for it, and call CloseHandle after the wait to unref it.
This will make sure that handles are not disposed too early.
svn path=/trunk/mono/; revision=28343
* DateTime.cs :
- In ToString(), Don't use culture-dependent daynames to format
Universal/RFC1123 date/time. Also, use FullDateTimePattern for 'U'.
- Fixed GetDateTimeFormats () that generated incorrect 'U' value
(since the format string is the same as 'F').
svn path=/trunk/mcs/; revision=28339
rectangles.
* Graphics.cs: Implemented Dispose method and changed Draw/Fill
rectangles implementation (This is basically done to avoid lots
of brush and pen setup happening in libgdiplus.)
svn path=/trunk/mcs/; revision=28336
* System.Data.OracleClient/OracleCommandBuilder.cs:
Fixed namespace.
* System.Data.OracleClient.dll.sources:
Added OracleCommandBuilder.cs.
2004-05-26 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Merged in a fix send by Rogerio Pereira Araujo
<[email protected]>: Fixed a bug with NUMBER data type
when no parameter is passed to OracleCommand.
svn path=/trunk/mcs/; revision=28333
* DateTime.cs : don't adjust utc value in ToString(). It must output
the same time value, just adding 'Z' for UTC.
svn path=/trunk/mcs/; revision=28332
* appdomain.c:
* appdomain.h:
* icall.c: removed
ves_icall_System_AppDomainSetup_InitAppDomainSetup as it's not
needed now.
* object.c: se the application_base only for the domain that
runs Main. Fixes bug #59216,
svn path=/trunk/mono/; revision=28325
* appdomain.c:
* object.c: only the domain in which Main is run have
SetupInformation.ConfigurationFile set, so moved a few lines from
appdomain.c to object.c.
svn path=/trunk/mono/; revision=28324
* appdomain.c: we tried to load [name].(dll|exe), but according
to bug #57710, we must also try [culture]/[name].(dll|exe) and
[culture]/[name]/[name](dll|exe). This patch fixes the bug.
There's a test case attached to bug #58922.
svn path=/trunk/mono/; revision=28323
* Byte.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt16.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt32.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt64.cs: Fixed parsing for "-0" which is valid for unsigned types.
svn path=/trunk/mcs/; revision=28320
* X509Certificate.cs: Rethrow original exception when parsing X.509
certificates (inside a CryptographicException) so people can see if
their changes affects certificate decoding.
svn path=/trunk/mcs/; revision=28319
* DigestClient.cs: cache the sessions based on address and
credentials, not only address. Added poor men's expiration to
the session cache. Fixes bug #59202.
svn path=/trunk/mcs/; revision=28316
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): The
test was broken, just make sure that codepage contains utf-8
string.
svn path=/trunk/mono/; revision=28306
* SortedList.cs: Added missing ICloneable support to internal
enumerator. Added Capacity to the synchronized version of SortedList.
svn path=/trunk/mcs/; revision=28303
* QueueTest.cs: Test for synchronized clones.
* SortedListTest.cs: Added cases for synchronized capacity and testing
the interface from the internal enumerator.
svn path=/trunk/mcs/; revision=28302
* DateTime.cs :
- Added "yyyy/MM/dd HH:mm:ss 'GMT'" and "yyyy-MM-dd HH:mm:ss 'GMT'"
to common formats (yes, I know it is nothing more than hack)
- Fixed some GetDateTimeFormats() that just returned patterns.
- For InvariantCulture, now try both supported formats and our
predefined formats.
- It was accepting incorrectly extraneous characters. That caused
some UTC/non-UTC bug.
- RFC1123 string should return universal time. Uncomment again (the
problem should went away because of the extra characters fix above.
With some of the changes above, fixed bug #47720.
svn path=/trunk/mcs/; revision=28288
* io.h:
* io.c: Implemented LockFile() and UnlockFile()
2004-05-27 Dick Porter <[email protected]>
* icall.c:
* file-io.c: Implemented icalls for locking and unlocking regions
in a file.
(ves_icall_System_IO_MonoIO_FindNextFile): FindNextFile() returns
FALSE on error (fixes both compiler warning and real bug.)
svn path=/trunk/mono/; revision=28284
* DateTimeFormatInfo.cs : Added some string[] fields for
GetAllDateTimePatterns(char). The fields will be filled in metadata
and culture info table. Added improved patterns for
GetAllDateTimePatterns() (right now works only for invariant).
* CultureInfo.cs : Use InvariantInfo for InvariantCulture.
svn path=/trunk/mcs/; revision=28282
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
Cache.cs : Fixed deadlock issues, fixed
items not correctly being flushed, fixed update
of item when expiration has been updated more
than 1 min (placed in wrong bucket),
fixed deadlock during cache callback when item
is removed due to expiriation.
Rewrite of locking handling in Cache class, leading
to better performance and less bugs.
This rewrite is due to a number of bugs found
in the output caching during load (leading to memory
leaks and deadlocks)
svn path=/trunk/mcs/; revision=28254
- CheckReadOnlyStatus : use typed (and faster comparing).
- EndEdit : bug fix - do not dispose record if it holds original version.
- SetValuesFromDataRecord : Take care about autoincrement columns.
svn path=/trunk/mcs/; revision=28249
* XmlTextReaderTests.cs : added test for bug #59142.
* XmlTextWriterTests.cs : added test for bug #59154.
* XmlDocumentTests.cs : added test for bug #59155.
svn path=/trunk/mcs/; revision=28238
* DefaultContext.cs : Add XPathNavigator input support for ToBoolean()
and ToNavigator().
* Expression.cs : In Equality comparison, evaluate XPathNavigator in
the same as well as NodeSet. This fixes bug #59134.
svn path=/trunk/mcs/; revision=28237
* XmlDataInferenceLoader.cs : Namespace are not imported to the table
structure. Thanks to Boris Kirzner for the fix.
svn path=/trunk/mcs/; revision=28235
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
is false. Fixed bug #59155.
Modified comment lines a bit.
svn path=/trunk/mcs/; revision=28234
* XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
and don't bork against <foo></foo>. Also mofidied this method to skip
<foo/>. Fixed bug #59142.
Modified some comments on the code (FIXME->LAMESPEC et al).
svn path=/trunk/mcs/; revision=28229
* FileStream.cs: delay seeking to the end when FileMode.Append is
specified until after buffer initialization. Fixes bug #59151.
svn path=/trunk/mcs/; revision=28222
* category.cs: added LastValue field to mark the end of enum Category.
* syntax.cs: in CharacterClass, use Category.LastValue to get the size
of the array needed. Use a BitArray instead of bool[].
In AddCategory(), don't set the opposite category as false. Fixes
bug #59150. All tests pass.
svn path=/trunk/mcs/; revision=28218
* Syscall.cs: Do not let the runtime handle strings, as we do not
own those strings, we must transform the char * into a string
ourselves.
svn path=/trunk/mcs/; revision=28200
* HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
chunked encoding disabled. Fixed chunked suffix and end. Send the
'lastchunk' marked when in the final Flush even if the content length
is 0. This makes mod-mono-server work fine with chunked encoding.
* HttpRuntime.cs: Set the _firstRequest* variables to true
earlier. TraceContext don't take any parameter now.
* TraceManager.cs: don't need a context. Use GetAppConfig.
svn path=/trunk/mcs/; revision=28186
* driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
since driver.c is in libmono too, so the optimization was useless.
svn path=/trunk/mono/; revision=28184
the IMessage, and add IMessage properties as headers when creating the
SoapMessage. LogicalCallContext info will be passed as a header value.
svn path=/trunk/mcs/; revision=28178
* DateTime.cs :
- Added "yyyy-MM-dd HH:mm:ss" to "compatible patterns".
(Fixed bug #58938.)
- As a quick remedy to accept more patterns, Parse() now also tries
InvariantInfo patterns (this is because we have no more than one
pattern for each pattern component.)
- In _DoParse(), 'Z' should not be read as timezone specifier. Some
culture uses 'Z' as AM/PM designer, and it should be recognized as
part of the UTCpattern (if it actually UTC pattern for the culture
contains 'Z').
svn path=/trunk/mcs/; revision=28177
* BufferedStream.cs: Added globalization and fixed exceptions and
possible integer overflow.
* TextWriter.cs: Fixed possible integer overflow.
svn path=/trunk/mcs/; revision=28172
* Byte.cs: Throw an OverflowException for negative numbers.
* Convert.cs: Accept 0x and 0X as prefix when parsing base16 strings.
svn path=/trunk/mcs/; revision=28160
In encoded format, primitive types can be null. Read them using
ReadReferencingElement, that already checks for the null tag.
svn path=/trunk/mcs/; revision=28157
* driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
variable to driver.c so the compiler can emit more efficient code to
access them.
svn path=/trunk/mono/; revision=28152
* Driver.cs : for af_ZA locale, am/pm part got required to support
"empty" string. So check am/pm elements and overwrite AMDesigner/
PMDesigner value even if they consist of empty string.
* (moved logs for supp/ content to supp/)
svn path=/trunk/mono/; revision=28149
* RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
so it could be used in a thread-safe way with CryptoAPI.
svn path=/trunk/mcs/; revision=28143
* SoapReader.cs: Added support for deserialization of headers. Cache
both member indexes and member infos in the new TypeMetadata structure.
* SoapWriter.cs: Added support for serialization of headers.
svn path=/trunk/mcs/; revision=28141
* UrlUtils.cs:
(GetFile): not public, and fixed to really return just the file name.
(InsertSessionId): ensure that the directory ends with a "/". This
fixes cookieless sessions.
svn path=/trunk/mcs/; revision=28109
* expression.cs
(MethodGroupExpr.IdenticalTypeName): New public property.
(Invocation.DoResolve): Don't report a CS0176 if the "instance"
expression actually refers to a type.
svn path=/trunk/mcs/; revision=28084
* System.Web/HttpApplication.cs: set culture/uiculture from
configuration and restore it after each step. Fixes bug #52851.
* System.Web.Configuration/GlobalizationConfiguration.cs: if we have no
context, use GetAppConfig instead of GetConfig.
svn path=/trunk/mcs/; revision=28081
* MethodBuilder.cs: Now use FastNewGuidArray to create new random
Guids without using CryptoConfig. Speed up for MCS.
svn path=/trunk/mcs/; revision=28069
* Guid.cs: Added an internal method to create a random Guid without
using CryptoConfig (which is heavy on first use). This is only used
in S.R.E.ModuleBuilder to speedup MCS compilation.
svn path=/trunk/mcs/; revision=28068
* ArrayTest.cs: Added tests to check for integer overflow in Clear,
Copy and Reverse.
* BitConverterTest.cs: Added test to check for possible integer
overflow in ToString (byte,int,int)
svn path=/trunk/mcs/; revision=28062
specified. The min bounds is set to -1, I am not completely sure
if that is what it is supposed to be but MS does not set it to 0
based on testing. Patch by [email protected]. Fixes bug
#56761.
svn path=/trunk/mcs/; revision=28061
* String.cs: Fixed reported exception for PadLeft|Right. Fixed
possible integer overflow in methods that takes index and count
as parameters.
svn path=/trunk/mcs/; revision=28060
* ConvertTest.cs: New tests for prefixed hexadecimal strings and
negative byte convertion.
* StringTest.cs: Added new tests for integer overflow and negatives.
svn path=/trunk/mcs/; revision=28042
* DateTime.cs : In ToString(string, IFormatProvider), use "G" if
string format argument is null. This should fix bug #57656.
svn path=/trunk/mcs/; revision=28037
* mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
of the mcrxr instruction which is not available on some processors
even if it's documented to be. Implement add and sub overflow correctly
(still not complete for long unsigned). Speed up icalls a bit.
svn path=/trunk/mono/; revision=28035
* mini.c (mono_jit_compile_method_with_opt): Make sure that
we run .cctor in the current domain instead of target_domain.
Fixes bug #58558, .cctor not being called in -O=shared.
svn path=/trunk/mono/; revision=28032
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs: patch by Eduard
Nesiba that implements autocommit behavior for non query statement
which is out of transaction. In previous implementation changed rows
stayed locked until client disconnect and hasRows proper settings.
svn path=/trunk/mcs/; revision=28019
* jscript-lexer-parser.g: added 'using' for
System.Collections. Allow 'switch' statement building of its
ast. Added parent parameter to constructor of With. Build
inside_for ast.
svn path=/trunk/mcs/; revision=28013
* DateTime.cs: allow double quotes in the formats. Don't set
next_not_digit to true in presence of single or double quotes. Patch by
Martin Probst.
svn path=/trunk/mcs/; revision=28011
- Added loading of comdlg32 for wine to enable usage of common dialogs.
- Moved the comdlg32 functions into the Win32 section
svn path=/trunk/mcs/; revision=28009
* Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
no files, but the directory was found. Fixes bug #58875.
svn path=/trunk/mcs/; revision=28005
* mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
which can be done with an imm8, do it that way.
(mono_arch_output_basic_block): ditto for a jmp
(mono_arch_emit_prolog): Computate maximum offset of a label.
svn path=/trunk/mono/; revision=28004
* StreamReader.cs: Add checks for null encoding. Fixed possible integer
overflow and ArgumentNullException in Read.
svn path=/trunk/mcs/; revision=28000
* enum.cs (Enum.DefineType): For the `BaseType' to be a
TypeLookupExpression; otherwise, report a CS1008. Fixes#58571.
svn path=/trunk/mcs/; revision=27999
* FileInfo.cs: Reformat the whole file to use DOS line endings.
(MoveTo): Return if the destination of Move is the same as the file's
current location.
svn path=/trunk/mcs/; revision=27996
* StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
svn path=/trunk/mcs/; revision=27993
* Directory.cs: Reformat the whole file to use Unix line endings
for consistency.
(GetFileSystemEntries): If pattern is String.Empty, always
return an empty string array. Throw the ArgumentException if path
is an empty string (determined using the new helper method)
(IsEmptyString): Returns true on an empty string or a string with
only whitespace characters.
* Path.cs (GetPathRoot): Throw an ArgumentException if the path
argument is String.Empty.
svn path=/trunk/mcs/; revision=27990
* mini-x86.c (mono_arch_local_regalloc): the reg allocator
now tries to allocate prefered physical reg's for virtual
regs. This reduces the number of emited spills/loads with
20-30% on our core assemblies.
svn path=/trunk/mono/; revision=27981
* MemoryStream.cs: Fixed exception reporting to match MS Fx. Fixed the
condition to allow zeroization of existing data when we shrink the
stream.
svn path=/trunk/mcs/; revision=27977
* MemoryStreamTest.cs: Test that we zeroize old data when we manipulate
the length of the stream. Verify that we throw the same exceptions as
MS fx.
svn path=/trunk/mcs/; revision=27974
* ecore.cs (SimpleName.SimpleNameResolve): Renamed to
DoSimpleNameResolve() and provide a SimpleNameResolve() wrapper
which does the CS0135 check. The reason is that we first need to
check whether the variable actually exists.
svn path=/trunk/mcs/; revision=27973
* class.cs (MemberBase.DoDefine): Use DeclSpace.FindType() rather
than RootContext.LookupType() to find the explicit interface
type. Fixes#58584.
svn path=/trunk/mcs/; revision=27972
* icall.c: Added define for CSIDL_FLAG_CREATE (0x8000) in case it is
missing in the windows build (like older cygwin include files).
svn path=/trunk/mono/; revision=27968
* XmlSchemaBuiltInDataypeTests.cs : 'Z' is not allowed here (maybe it
is 'T' that was wanted). More kind error message in Fail().
svn path=/trunk/mcs/; revision=27956
(LIBRARY_COMPILE) [!HAVE_SYSTEM_XML]: Use $(BOOT_COMPILE) for
non-Xml first build.
(all-local) [!SECOND_PASS]: Simplify.
svn path=/trunk/mcs/; revision=27950
($(the_lib)): Use $(LIBRARY_COMPILE) to compile $(the_lib).
* executable.make (uninstall-local): Use PROGRAM_INSTALL_DIR.
svn path=/trunk/mcs/; revision=27949
* NamedNodeMap.cs : Modified. "domestic or street" does not mean
the exact literal node name, but it means "either 'domestic' or
'street'". We always return fixed values.
svn path=/trunk/mcs/; revision=27944
* Document.cs : am sure that element nodes are up to 36, not 37
(maybe counting the element that is in unused entity value?).
svn path=/trunk/mcs/; revision=27943
* DTDReader.cs : When sequential PE references exist, the reader only
expands the first one and in some cases the parser complaints the
content (such like expecting name character but found '%').
This fixes bug #58818.
svn path=/trunk/mcs/; revision=27941
* decl.cs (DeclSpace.FindType): Only check the `using' list if we
don't have any dots. Fixes#52622, added cs0246-8.cs.
* namespace.cs (NamespaceEntry.Lookup): Likewise.
svn path=/trunk/mcs/; revision=27931
* Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
connect to cvs built servers which had devel in its version string.
svn path=/trunk/mcs/; revision=27928
* Boolean.cs: Fixed Equals for True!=True (see bugzilla #58874).
* BitConverter.cs: Fixed negative index and integer overflow in
To... methods.
svn path=/trunk/mcs/; revision=27926
* BooleanTest.cs: Added new test to compare booleans using Equals
and == (case of True!=True). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=27925
* ecore.cs (SimpleName.SimpleNameResolve): Only report a CS0135 if
the variable also exists in the current block (otherwise, we need
to report a CS0103). Fixes#58670.
svn path=/trunk/mcs/; revision=27924
Fix bug #57835
* attribute.cs (AttributeTester.GetMethodObsoleteAttribute): Returns
instance of ObsoleteAttribute when symbol is obsolete.
* class.cs
(IMethodData): Extended interface for ObsoleteAttribute support.
svn path=/trunk/mcs/; revision=27917
* BitConverterTest.cs: Added new tests for negative integers and
integer overflow in To... methods. Added new boolean convertion
tests.
svn path=/trunk/mcs/; revision=27912
* RealProxy.cs: Moved async functionlity here, also take
care of custom proxies (non RemotingProxy) case for async and
construction calls.
* RemotingProxy.cs: allow RealProxy to call construction method and
remove end async control (moved to RealProxy)
Fixes remoting2/3 test case (mono/mono/tests) and closes bug #57672.
svn path=/trunk/mcs/; revision=27908
* FieldInfo.cs: changed default constructor from internal to protected, so classes
that inherit from it can get build.
svn path=/trunk/mcs/; revision=27892
* mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
should set carry.
* basic-long.cs: Add tests for add/subtract of immediates with carry.
svn path=/trunk/mono/; revision=27886
Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlDataReader.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlTransaction.cs,
Npgsql/Design/ConnectionStringEditor.cs,
Npgsql/Design/ConnectionStringEditorForm.cs,
Npgsql/Design/NpgsqlParameterConverter.cs,
Npgsql/Design/NpgsqlParametersEditor.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by
Glen Parker ([email protected]): Bug #772 ("Using
Command and Prepare adds single quotes to strings twice")
is fixed :-) It was broken when running on the version 3
protocol (extended query support) on PostgreSQL 7.4.
Some of the files in Design were formatted with macintosh line
terminators. This was screwing up the xmldoc generator in csc,
so I reformatted to make it work.
I've added some essential xmldoc comments (<summary> tags). Much work
remains here, but I wanted to get a few in on common functions and
properties.
The .build file will now generate the Npgsql.xml file, next to the .dll
file. I removed the existing Npgsql.xml from CVS.
Thanks Glen Parker for this patch.
svn path=/trunk/mcs/; revision=27877
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27876
* mini.c (inline_method): Allways inline some wrappers even if the cost
is too large. Fixes#58785.
* mini.c: Add support for MARSHAL_CONV_FTN_DEL.
svn path=/trunk/mono/; revision=27874
Fix bug #52705
* attribute.cs
(GetObsoleteAttribute): New method. Creates the instance of
ObsoleteAttribute.
(AttributeTester.GetMemberObsoleteAttribute): Returns instance of
ObsoleteAttribute when method is obsolete.
(AttributeTester.Report_ObsoleteMessage): Common method for
Obsolete error/warning reporting.
* class.cs
(TypeContainer.base_classs_type): New member for storing parent type.
* decl.cs
(MemberCore.GetObsoleteAttribute): Returns instance of ObsoleteAttribute
for this MemberCore.
svn path=/trunk/mcs/; revision=27872
* UIntPtr.cs: We now only accept 32bits unsigned values in the ulong
constructor unless we're on a 64 bits machine.
svn path=/trunk/mcs/; revision=27865
consistency, converted it all to DOS endings.
(ToType): When value is null, immediately return null and don't ever
throw a NullReferenceException. When conversionType is null, throw an
InvalidCastException. Give a better error message when attempting to
convert to a DBNull as well.
svn path=/trunk/mcs/; revision=27856
* io.c (CreateFile): Check for existing share modes when opening
a file.
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Maintain a hash of file share modes, keying on device
and inode (to cope with symlinks.)
svn path=/trunk/mono/; revision=27850
* tools/uni2tab.c : non JIS X 0208 characters could not be decoded.
(It is hack!)
* CJK/jis.table : updated using the latest uni2tab.c
svn path=/trunk/mcs/; revision=27845
* mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
([email protected]). Beginning of support for sparc/linux.
* mini-sparc.c: Optimize retrieval of LMF address.
svn path=/trunk/mono/; revision=27839
* TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
(AcceptTcpClient): Don't create TcpClient before a
connection is accepted.
(LocalEndPoint): Use Server LocalEndPoint if connected
otherwise use endpoint from ctor.
(Init): Save end point, not server endpoint. This did
cause TcpListener to ignore port sent via constructor.
(Pending): Fixed wait time (method should return directly)
(Start): Moved Bind here instead of Init method; old method
caused us to bind ports even if the listener was stopped.
(Stop): Null server when stopping
svn path=/trunk/mcs/; revision=27837
* flowanalysis.cs (FlowBranching.MergeTopBlock): Don't check for
out parameters if the end of the method is unreachable. Fixes
#58098.
svn path=/trunk/mcs/; revision=27831
* DataColumnCollection.cs : NullReferenceException was thrown when
the table was not found.
* DataRowCollection.cs :
Find() just returns null for null value under MS.NET 1.1.
RemoveAt() should also avoid to call AcceptChanges() like Remove().
* UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
directly under MS.NET (for nunit test).
svn path=/trunk/mcs/; revision=27829
* Decimal.cs: Fixed To... methods that needs to trunk the integer part
of Decimal (and not use the banker's rounding like Convert.To...).
svn path=/trunk/mcs/; revision=27828
* DecimalTest.cs: Added new unit test to check for correct rounding.
It appears that Decimal.To... trunk but Convert.To... use banking
rounding (so we can't use Convert.To... to implement To...).
svn path=/trunk/mcs/; revision=27825
* XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
caused problem on qualified name to get schema Field name.
svn path=/trunk/mcs/; revision=27803
* Uri.cs :
AbsoluteUri does not escape file URI string.
ToString() should unescape every file uri. MS.NET.ToString() does
not unescape '#' but it looks a bug.
svn path=/trunk/mcs/; revision=27802
* XmlDataReader.cs : Now data reader is namespace aware in all places.
When table's namespace is different, it entered to infinite loop.
svn path=/trunk/mcs/; revision=27800
* X509CapiTest.cs: SetUp and TearDown are now public (required for new
nunit).
* X509SpcTest.cs: SetUp and TearDown are now public (required for new
nunit).
svn path=/trunk/mcs/; revision=27795
* KeyInfoTest.cs: SetUp is now public (required for new nunit).
* ReferenceTest.cs: SetUp is now public (required for new nunit).
svn path=/trunk/mcs/; revision=27789
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27787
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27786
* Convert.cs: Added checks for integer overflow for From|ToBase64Char.
Also fixed the case where wide (16 bits) characters were converted to
bytes.
svn path=/trunk/mcs/; revision=27781
* ConvertTest.cs: Added new unit tests for integer overflow in To/From
Base64CharArray. Added new test for wide char. Exploded some tests in
NUnit2 format (to ease add new tests).
svn path=/trunk/mcs/; revision=27780
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27777
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27776
* XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
When content type is Mixed, text column is not required (it is
required only when the complex type has no particle).
"Repeated element" column is also created (considering maxOccurs=0
and complex content extension).
svn path=/trunk/mcs/; revision=27759
Merged this back from gmcs to keep the differences to a minumum.
* attribute.cs (Attribute.CheckAttributeType): Take an EmitContext
instead of a Declspace.
(Attribute.ResolveType): Likewise.
(Attributes.Search): Likewise.
(Attributes.Contains): Likewise.
(Attributes.GetClsCompliantAttribute): Likewise.
* class.cs (TypeContainer.VerifyMembers): Added EmitContext
argument.
(MethodData.ApplyAttributes): Take an EmitContext instead of a
DeclSpace.
svn path=/trunk/mcs/; revision=27753
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=27745
for library to be tested.
* rules.make (INTERNAL_RESGEN): New Define.
* library.make (run-test-local): Move commands to run-test-lib.
Preparartion for allowing creation of addition test dll with .vb
testcases.
* executable.make (PROGRAM_COMPILE): New define.
($(PROGRAM)): Use PROGRAM_COMPILE to compile PROGRAM.
svn path=/trunk/mcs/; revision=27734
tools/locale-builder/Makefile.
* Makefile.am (SUBDIRS): Remove tools.
(DIST_SUBDIRS): Add 'tools'.
(bootstrap): Rewrite so that we get two new targets.
(faststrap): New two-stage build.
(fasterstrap): New one-stage build.
Make 'faststrap' and 'fasterstrap' are useful for continuing development
once you've bootstrapped a mono/ CVS checkout.
svn path=/trunk/mono/; revision=27732
* Expression.cs : We should not catch all kind of exception. Just
throwing any kind of exception would be preferable.
Added support for XPathNavigator values.
svn path=/trunk/mcs/; revision=27726
* XslCopyOf.cs : When evaluation result was result tree fragment (i.e.
XPathNavigator) output its content (children).
* XslNumber.cs : Reflected CompilePattern() change.
* XslTemplateContent.cs : Don't throw System.Exception.
* XslVariable.cs : XslVariableInformation.Evaluate() now returns
XPathNavigator, not NodeSet (it should not return "children", since
the node pointed by XPathNavigator should be referenced as Root).
svn path=/trunk/mcs/; revision=27725
* tools/Makefile.am: Add tools directory
* tools/locale-builder: Add the locale-builder tool, this tool is
not built by default as it is only needed by people that wish to
moidify culture data.
* Makefile.am: Add tools to build
svn path=/trunk/mono/; revision=27717
* DebuggerStepThroughAttribute.cs : now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27702
* DateTimeconstantAttribute.cs
* DecimalConstantAttribute.cs
* IDispatchConstantAttribute.cs
* IUnknownConstantAttribute.cs
* MethodImplAttribute.cs
* RequiredAttributeAttribute.cs: now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27701
* ContextStaticAttribute.cs
* FlagsAttribute.cs
* ObsoleteAttribute.cs : now that Inherited is false by
default on AttributeUsageAttribute (as it should be) we
need to explicitly set Inherited to false for those
attributes should it be be false.
svn path=/trunk/mcs/; revision=27699
* icall.c: new signature for Process_Start.
* process.[ch]: new signature for Process_Start. If we're on windows
and UseShellExecute is false, we have to search for the program by
ourselves if we don't get a full path.
svn path=/trunk/mono/; revision=27696
Fix bug #58688 (MCS does not report error when the same attribute
is assigned twice)
* attribute.cs (Attribute.Emit): Distinction between null and default.
svn path=/trunk/mcs/; revision=27687
* CustomSerializer.cs : Added custom serializer for XmlSchema, that is
generated by SerializationCodeGenerator and edited a bit.
* XmlSchema.cs : Use XmlSchemaSerializationWriter.
svn path=/trunk/mcs/; revision=27680
of a top-level attribute without an attribute target.
* attribute.cs (Attribute.Error_AttributeConstructorMismatch):
Make non-static.
(Attribute.Conditional_GetConditionName),
(Attribute.Obsolete_GetObsoleteMessage): Update.
(Attribute.IndexerName_GetIndexerName): New. Attribute-specific
part of ScanForIndexerName.
(Attribute.CanIgnoreInvalidAttribute): New function.
(Attribute.ScanForIndexerName): Move to ...
(Attributes.ScanForIndexerName): ... here.
(Attributes.Attrs): Rename from now-misnamed AttributeSections.
(Attributes.Search): New internal variant that can choose not to
complain if types aren't resolved. The original signature now
complains.
(Attributes.GetClsCompliantAttribute): Use internal variant, with
complaints suppressed.
(GlobalAttribute.CheckAttributeType): Overwrite ds.NamespaceEntry
only if it not useful.
(CanIgnoreInvalidAttribute): Ignore assembly attribute errors at
top-level for attributes that are shared between the assembly
and a top-level class.
* parameter.cs (ImplicitParameter): Rename from ParameterAtribute.
* class.cs: Update to reflect changes.
(DefineIndexers): Fuse loops.
* codegen.cs (GetAssemblyName): Update to reflect changes. Accept
a couple more variants of attribute names.
(cleans up some issues with Marek's patch. Most importantly, it fixes
a breaking build: errors/CS0618-2-lib.dll)
svn path=/trunk/mcs/; revision=27666
* PKCS7.cs: Added SignedData.VerifySignature(AsymmetricAlgorithm aa).
Added support for calculating signature from SignedData content (i.e.
when UseAuthenticatedAttributes is false). Added contentType to
AuthenticatedAttributes (when SignedData.UseAuthenticatedAttributes
is true).
svn path=/trunk/mcs/; revision=27662
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).
svn path=/trunk/mcs/; revision=27655
* SqlDecimal.cs : Fixed operator/ not to return positive always.
Halfly fixed ConvertToPrecScale() that was broken.
svn path=/trunk/mcs/; revision=27624
* SqlDecimal.cs :
- .ctor() should check the valid scale range and throw
SqlTypeException.
- Value should copy the last int32 value fragment.
- Fixed Abs() and Ceiling() to return Null when the input is Null.
- Now AdjustScale() should not depend on Truncate() that keeps zero
digits correctly. So Round() before returning the final result.
- ToString() should insert '-' for minus values.
- operator+ should use larger scale of operands rather than smaller
scale.
svn path=/trunk/mcs/; revision=27615
Fix bug #52585 (Implemented explicit attribute declaration)
* attribute.cs:
(Attributable.ValidAttributeTargets): New abstract method. It gets
list of valid attribute targets for explicit target declaration.
(Attribute.Target): It holds target itself.
(AttributeSection): Removed.
(Attribute.CheckTargets): New method. It checks whether attribute
target is valid for the current element.
* class.cs:
(EventProperty): New class. For events that are declared like
property (with add and remove accessors).
(EventField): New class. For events that are declared like field.
class.cs
* cs-parser.jay: Implemented explicit attribute target declaration.
* class.cs, decl.cs, delegate.cs, enum.cs, parameter.cs:
Override ValidAttributeTargets.
* parameter.cs:
(ReturnParameter): Class for applying custom attributes on
the return type.
(ParameterAtribute): New class. Class for applying custom
attributes on the parameter type.
svn path=/trunk/mcs/; revision=27608
* mini.h mini.c (mini_method_compile): Only run abc removal pass on
methods which contain array accesses.
* mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
boundaries. Fixes#58537.
* iltests.il: Add regression test for #58537.
svn path=/trunk/mono/; revision=27607
* basic-long.cs: Add new regression test.
2004-05-18 Patrik Torstensson <[email protected]>
* mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
register too early on the chain.
svn path=/trunk/mono/; revision=27591
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=27587
* Assembly.cs: Return an empty Evidence collection to avoid
NullReferenceException from calling code (as this is never
null with MS implementation). See bugzilla #53548.
svn path=/trunk/mcs/; revision=27586
* Buffer.cs: Added checks for null source and destination. Fix failing
CryptoStream unit test.
* Guid.cs: Fixed thread-safety issue. Simplified implementation to use
pseudo-random numbers to generate GUIDs (as per section 3.4 of the
spec). This removes the TODO to get the computer MAC address and
the chances to get a duplicate GUID (across different machines).
svn path=/trunk/mcs/; revision=27585
* mini.c (create_helper_signature): Use a helper function to reduce
the code which needs to be written. Also set the calling convention of
icalls on windows. Fixes#57840.
svn path=/trunk/mono/; revision=27578
* mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
exceptions-ppc.c: added helper function to get the instruction address
from a signal handler context.
svn path=/trunk/mono/; revision=27577
* SqlDecimal.cs :
- .ctor(double) initializes the precision as 17. If not sufficient,
it calls AdjustScale(), and if too much then it calls Round().
- Data should not return the internal array otherwise it might be
modified by outer code.
- Reimplemented AdjustScale() to work fine.
- Reimplemented Parse(). It should rather use Decimal.Parse()
rather than SqlDouble.Parse() for parsable value range difference.
- Reimplemented Round(). Don't use double.
- Fixed ToString() to return "Null" for null value.
- Fixed explicit let operator to use double .ctor, not decimal
.ctor() so that precision can be handled in the same way as double.
svn path=/trunk/mcs/; revision=27568
* TestBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
* TestColorBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
svn path=/trunk/mcs/; revision=27566
* SqlDecimalTest.cs :
Don't catch all kind of exception. That hides the exact error info.
Don't use ToSqlString() in AdjustScale() test (to make which is
wrong).
MS.NET's ToSqlInt32() is buggy; no worth following the behavior.
Added test for parsing "999999..." (SqlDecimal.MaxValue).
svn path=/trunk/mcs/; revision=27564
* HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
entities hashtable creation until it's really needed.
svn path=/trunk/mcs/; revision=27561
* ByteFX.Data.dll.sources: Update to latest listing of source
files.
* AssemblyInfo.cs: Revert back to the previous version, because we
don't have bytefx.snk.
* mysqlclient/transcaction.cs: Removed, replaced by the new
transaction.cs.
svn path=/trunk/mcs/; revision=27557
* RNGCryptoServiceProviderTest.cs: Added new tests to see how the
constructor behave with null seeds or if they modify the seed.
svn path=/trunk/mcs/; revision=27553
* helpers.c: Add new env variable to pass args to objdump.
Specifically for those of us who love -Mintel. r=miguel, gonzalo.
svn path=/trunk/mono/; revision=27551
* TextBox.cs: don't save the Text if in ViewState if it's a password.
Save it if the control is not visible or not enabled. Fixes bug #58497.
svn path=/trunk/mcs/; revision=27549
* SoapHttpClientProtocol.cs: when the response has a not acceptable
status code, the WebException we throw has a status of ProtocolError.
Fixes bug #58564.
svn path=/trunk/mcs/; revision=27543
* HttpApplicationFactory.cs: if no module matches the name found for a
possible event, ignore it. Fixes bug #58542.
svn path=/trunk/mcs/; revision=27541
* ConfigurationSettings.cs: don't ask me why, but the .cctor
initialization of 'instance' field does no longer work.
svn path=/trunk/mcs/; revision=27539
* gacutil.cs:
(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
"--force" instead of expecting it in a fixed place.
svn path=/trunk/mcs/; revision=27537
* TimeSpan.cs: Only catch expected exceptions, if we get other exceptions
than OverflowExceptions then something went wrong internally
svn path=/trunk/mcs/; revision=27535
(GraphicsPathIterator): Store the path count, path points and path
type arrays instead of calling unmanaged functions in GDI+ each time
to get to get the path data.
(CopyData, Enumerate, HasCurve, Rewind, SubpathCount): Implemented.
svn path=/trunk/mcs/; revision=27533
* XmlDataDocument.cs :
Removed MonoTODO from implemented members and private members.
Updated OnNodeRemoved(), OnDataRowDeleted() and OnDataTableRollback()
to match with current implementation.
svn path=/trunk/mcs/; revision=27529
* Makefile.am (common_sources): added abcremoval.h so it get
disted and daily mono packages on go-mono.com will build again
svn path=/trunk/mono/; revision=27528
* DataSet.cs,
XmlDataInferenceLoader.cs,
XmlDataReader.cs,
XmlSchemaDataImporter.cs : XmlDecode every local name to read and
XmlEncode every local name to write. This should fix bug #58268.
svn path=/trunk/mcs/; revision=27524
* DataSetAssertion.cs : Enabled "Ordinal" check again, unless the test
value is -1.
* DataSetInferXmlSchemaTest.cs,
DataSetReadXmlSchemaTest.cs : Enabled Ordinal check again, as long
as working. Added IgnoredNamespaces() to inferxmlschema test.
svn path=/trunk/mcs/; revision=27520
necessary. Move body ...
(tmpinst-dir.stamp): ... here.
(stage3): Don't remove _tmpinst tree.
(bootstrap-clean, bootstrap-check): New rules. They run the
corresponding rules in the mcs/ tree.
svn path=/trunk/mono/; revision=27513
* marshal.c: Don't pass wrappers to message init because method
addressed used to lookup metadata. part of remoting[2|3] fix.
svn path=/trunk/mono/; revision=27495
* ExpiresBucket.cs: Style changes plus;
(Update): Fixed possible lock bug (bug 54531)
(Expand): remove lock optimization due to it can cause newly
added items to be lost.
(Remove): fixed possible lock bug.
svn path=/trunk/mcs/; revision=27480
* mini-x86.c (mono_arch_local_regalloc): Correctly free
reg in long and clob case (bug #58343). Fixed/added comments.
svn path=/trunk/mono/; revision=27478
* Installer.cs: marked parent internal to match MS
* InstallerCollection.cs: implemented
* InstallEventArgs.cs: remove setter for SavedState
svn path=/trunk/mcs/; revision=27471
struct correctly to a native struct. Resulting data should be
FreeHGlobal'd when finished.
* EncoderParameter.cs: Changed data storage to correspond to
native code layout. Also changed layout to match native layout.
* EncoderParameterValueType.cs: force EncoderParameterValueType to
be Int32
* gdipFunctions.cs: Fixed prototype for
GdipGetEncoderParameterList
* Image.cs: Reworked Save functions to handle EncoderParameters.
Implemented GetEncoderParameterList.
Also removed unused setGDIPalette internal method.
svn path=/trunk/mcs/; revision=27467
path is essentially the same as MONO_PATH except that it points to
GACs instead of lib directories.
* loader.h: The user gac is gone so we dont need function to
enable/disable it.
* mono-config.c: user gac option is now gone.
svn path=/trunk/mono/; revision=27464
array of ints is passed back from the runtime to the CultureInfo
object. The ints store the calendar type and any optional data
needed to construct the calendar.
svn path=/trunk/mcs/; revision=27462
to the culture info table.
* culture-info-tables.h: Add basic calendar data. Basically
everyone gets default gregorian until all the data is
updated.
* locales.c: Use the new consistent defines. Set calendar data for
culture info objects.
* object.h: add a field for calendar data to CultureInfo
svn path=/trunk/mono/; revision=27461
* Makefile: corrected /libpath: compiler flag (parameter) to point to ../class/lib/default/ the new location of libraries
svn path=/trunk/mcs/; revision=27459
* System.ComponentModel.Design/ComponentDesigner.cs: fixed public API
* System.Web.UI.Design/ControlDesigner.cs: fixed public API
* System.Web.UI.Design/HtmlControlDesigner: fixed public API
* System.Windows.Forms.Design/AnchorEditor.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/AxImporter.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/ComponentDocumentDesigner.cs: fixed
public API, converted to unix linefeeds
* System.Windows.Forms.Design/SelectionRules.cs: implementation
svn path=/trunk/mcs/; revision=27445
converted to unix linefeeds, marked class TODO, added Flags
attribute to FolderBrowserStyles enum
* System.Windows.Forms.Design/FileNameEditor.cs:
completed stubs, converted to unix linefeeds
svn path=/trunk/mcs/; revision=27441
conversion in C.
(GraphicsPath): Use GdipCreatePath2I instead.
(SetMarker, ClearMarkers):
(Flatten, GetBounds, IsOutlineVisible, IsVisible):
(StartFigure, CloseFigure, CloseFigures):
(Warp, Widen): Implemented. I left the MonoTODO attribute on for
the methods where the equivalent C function has not yet been
implemented.
* GraphicsPathIterator.cs (Count): Implemented.
* gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
(GdipFlattenPath, GdipWarpPath, GdipWidenPath):
(GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
svn path=/trunk/mcs/; revision=27424
* CustomDataClassGenerator.cs :
- Put classes inside custom DataSet class.
- Added automatic DataRelation creation support.
- Added Constraints creation support. That is done separate from
relations, since they might be independently created.
- Added non-MS public DataRelation fields.
- Removed extraneous "DataRelation type generation" code.
- Fixed custom_dataset.Initialize() not to create "c" field that
was created more than once.
- Implemented AddxxxRow() that takes parameters for every column.
svn path=/trunk/mcs/; revision=27418
* UTF8Encoding.cs: Moved charCount-- after the check for surrogate
pair. This fix bug #57009 (and 2 failing unit tests).
svn path=/trunk/mcs/; revision=27405
TestBitmap.cs: Modified method signature to static for use in other files.
TestImageConverter.cs: Added.
TestImageFormatConverter.cs: Added.
bitmaps/almogaver24bits1.bmp: Added.
svn path=/trunk/mcs/; revision=27402
* XmlSchemaDataImporter.cs : When primary key is used more than once,
DataRelation borked because of empty parent column name.
svn path=/trunk/mcs/; revision=27388
* XmlSchemaDataImporter.cs : When Creating constraints with related
to DataRelation creation, also set PrimaryKey to the parent table.
svn path=/trunk/mcs/; revision=27367
* XmlSchemaDataImporter.cs :
Design change to add indirect table and relation structures.
Support for "relation" annotation for local element.
Support for repeatable simple element column (maxOccurs > 1).
Fixed handling of Nested property on DataRelation (for globally
annotated relation, Nested is false).
svn path=/trunk/mcs/; revision=27359
* DataSetReadXmlSchemaTest.cs : Added tests for test012.xsd (repeatable
simple element) and test013.xsd (reference to global element;
currently failing).
svn path=/trunk/mcs/; revision=27358
* culture-info-tables.h: seems like Spanish and Portuguese cultures had
DateTimeFormatInfo.YearMonthPattern like "MMMM' yyyy" (note the single
quote). Changed them to "MMMM yyyy".
svn path=/trunk/mono/; revision=27337
* HtmlForm.cs: default value for Enctype is "".
* HtmlInputFile.cs: if no one set the encoding type for the HtmlForm,
we set it to "multipart/form-data". Fixes bug #58359.
svn path=/trunk/mcs/; revision=27332
* System.Web.Compilation/BaseCompiler.cs: use DynamicBase for the output
assemblies.
* System.Web.Configuration/CompilationConfiguration.cs: a null value is
ok for TempDirectory.
* System.Web.Hosting/AppDomainFactory.cs: set the Dynamic base for the
AppDomain.
Fixes bug #57726.
svn path=/trunk/mcs/; revision=27329
* AppDomainSetup.cs: don't throw an exception if dynamic_base has not
been set. Just return null as MS. Fixes bug #58120.
svn path=/trunk/mcs/; revision=27326
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
o InvalidOperationException when calling the Hash property and hash value is nul
l. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27299
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception to InvalidOperationException when calling the Hash property and hash value is null. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27298
* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
corcompare. Both throw a NotImplementedException.
* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
overloads) to please corcompare. All throw a NotImplementedException.
svn path=/trunk/mcs/; revision=27293
* mono-mutex.c (mono_mutex_unlock): Return EPERM when the current
thread doesn't own the mutex, rather than assert()ing.
svn path=/trunk/mono/; revision=27292
In .NET 1.0, encoded null elements use the attribute null="1", while in
1.1 the attribute is nil="true".
* XmlTypeMapping.cs: Little fix for nested classes.
svn path=/trunk/mcs/; revision=27279
* Utils.cs:
Finally implement fully method CopyArray
Progression: all nunit-tests for this method now pass on Mono, as they do in .NET
svn path=/trunk/mcs/; revision=27278
* XmlCanonicalizer.cs :
Element namespace is not XPath-selected(selectable) namespace nodes
and that should be outputted.
Don't return null for empty output.
svn path=/trunk/mcs/; revision=27270
* XmlDsigBase64Transform.cs :
LoadInput() should retrieve all the descendants.
GetOutput() should handle nodes without digging into child nodes.
svn path=/trunk/mcs/; revision=27269
* Environement.cs: Removed two security attributes for CurrentDirectory
that weren't documented (and anyway we don't support them).
svn path=/trunk/mcs/; revision=27268
* DataRow.cs : Added DataElement property to avoid storing every row-
element mapping. It stored even for nodes that should be removed.
svn path=/trunk/mcs/; revision=27266
* XmlDataDocument.cs : Removed row-element mapping. Just use new
DataRow.DataElement property. Added/removed some comments.
svn path=/trunk/mcs/; revision=27251
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
kind of thing that should be supported.
* XmlValidatingReaderTests.cs : commented a bit.
svn path=/trunk/mcs/; revision=27238
* XmlSchema.cs : Removed FIXME. No PSVI required.
* XmlSchemaAll.cs : Removed FIXME. It was not done.
* XmlSchemaAttributeGroupRef.cs : Removed FIXME. It can be annotated.
* XmlSchemaChoice.cs : not FIXME but LAMESPEC.
* XmlSchemaSimpleTypeRestriction.cs : Added check for non
XmlSchemaFacet items on Compile(). Thus removed FIXME.
* XmlSchemaUtil.cs : Fixed SplitList to handle sequential spaces.
Thus removed FIXME.
* XmlSchemaObjectTable. cs: modified to use HybridDictionary (mostly
for avoiding iterator order difference).
svn path=/trunk/mcs/; revision=27232
* SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
* SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
* SQLDebugging.cs - Added new file with a TODO tag
svn path=/trunk/mcs/; revision=27229
* DefaultContext.cs : Removed MonoTODO. done.
* Expression.cs : handle XPathResultType.Navigator in some places and
removed MonoTODO. Mark MonoTODO with explicit comments (though they
are mostly pointing out possibilities of optimization).
Removed extra check that depended on the old bugs.
* XPathResultType.cs : Fixed .Navigator that had the same value as
.String.
svn path=/trunk/mcs/; revision=27224
* System.Net/HttpWebRequest.cs: added 3 missing properties for 1.1. They
are not used yet.
* System.Net/NetConfig.cs: added MaxResponseHeadersLength field.
* System.Net/ServicePoint.cs:
* System.Net/ServicePointManager.cs: added missing properties for 1.1.
* System.Net.Configuration/NetConfigurationHandler.cs: process the
httpWebRequest node too. Better error checking.
svn path=/trunk/mcs/; revision=27211
* IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
AssemblyIdentity and DomainIdentity properties.
* IsolatedStorageFile.cs: More details on MonoTODO.
* IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use
Path.Combine to build filenames (constructor) and throw an exception
when we try to get the handle (as documented).
svn path=/trunk/mcs/; revision=27208
* XmlDataDocument.cs : Radical design change.
- GetElementFromRow() must return "detached" element, even if it is
not added to table's Rows.
- Introduced XmlDataElement class to map element (this class itself)
and DataRow _always_ . It is impossible to map *all* DataRows
to/from elements only in XmlDataDocument API, since DataRow can
be created separate from it (i.e. by table.NewRow()).
- Removed unreliable GetElementsByTagName() dependency from most
of the code, since users might create elements that has the same
name of any tables (that is possible especially unmapped elements).
- Adding/Removing delegates on every event action is unnecessary.
Use just flags.
- For Load(), just using base.Load() will do most of the job.
- Attributes and SimpleContents are not handled properly.
"Removed" and "Rollback" events are still TODO.
svn path=/trunk/mcs/; revision=27194
* XmlDataDocumentTest.cs : use Environment.NewLine. Added more tests.
* XmlDataDocumentTest2.cs : Test nested relationship, detached row
state, and unmapped element as well.
svn path=/trunk/mcs/; revision=27192
* GroupCollection.cs:
* MatchCollection.cs:
* CaptureCollection.cs: Moved GroupCollection, MatchCollection and
CaptureCollection so that they no longer inherit from the
non-standard RegexCollectionBase class. Fixes the API difference.
svn path=/trunk/mcs/; revision=27175
by the handler factory to check if the target method needs session or not.
Also factorized error handling in WriteError().
* HttpSoapWebServiceHandler.cs: Added GetRequestMethod(), for the same
reason. Assign the context to the WebService just before invoking the
method.
* SoapHttpClientProtocol.cs: Use helper method to create the xml writer.
* WebServiceHandler.cs: Added virtual GetRequestMethod().
* WebServiceHandlerFactory.cs: Use an http handler wrapper when the target
method requires session support.
* WebServiceHelper.cs: Added some helper methods.
svn path=/trunk/mcs/; revision=27168
* PKCS12.cs: Removed file exists check from SaveToFile(). Removed
Equals() and GetHashCode(). Clone the original iteration count.
svn path=/trunk/mcs/; revision=27166
* services.xml, wsdl.ignore: Updated.
* wstest.cs: Small improvements.
* external/BankCodeEJBHomeTest.cs, external/GlobalWeatherTest.cs,
external/HPcatalogTest.cs, external/IODCODESPOSTAUXTest.cs,
external/TemperatureServiceTest.cs, localhost/ConvDocEncBarTest.cs,
localhost/ConvDocEncWraTest.cs, localhost/ConvDocLitBarTest.cs,
localhost/ConvDocLitWraTest.cs, localhost/ConvRpcTest.cs
Changed namespace to make it easier to select tests in gnunit.
* localhost/ConvRpcTest.cs: Added test for method that returns "Object".
* server/ConvDocEncWra.asmx, ConvDocLitWra.asmx, ConvRpc.asmx: New test
methods.
* server/web.config: Added version to vsdisco handler type name.
* client/localhost/DataServiceTest.cs
client/localhost/DuplicateArrayTestTest.cs
client/localhost/SessionCounterTest.cs
server/DataService.asmx
server/DuplicateArrayTest.asmx
server/SessionCounter.asmx: New tests.
svn path=/trunk/mcs/; revision=27165
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
* System.Web.dll.sources: added Html32TextWriter.
* System.Web.Compilation/AspGenerator.cs: ObjectTagBuilder do not
override HasBody now.
* System.Web.UI/Html32TextWriter.cs: stub contributed by Matthijs ter
Woord [meddochat].
* System.Web.UI/ObjectTagBuilder.cs: remove the HasBody override as MS
does not have that.
This makes System.Web free of errors, missing or extra stuff in the
class status pages.
svn path=/trunk/mcs/; revision=27144
* attribute.cs:
(Attribute.GetAttributeTargets): New method. Gets AttributeTargets
for attribute.
(Attribute.IsClsCompliaceRequired): Moved to base for better
accesibility.
(Attribute.UsageAttribute): New property for AttributeUsageAttribute
when attribute is AttributeUsageAttribute.
(Attribute.GetValidTargets): Simplified.
(Attribute.GetAttributeUsage): New method returns AttributeUsage
attribute for this type.
(Attribute.ApplyAttributes): Method renamed to Emit and make
non-static.
(GlobalAttributeSection): New class for special handling of global
attributes (assembly, module).
(AttributeSection.Emit): New method.
* class.cs: Implemented Attributable abstract methods.
(MethodCore.LabelParameters): Moved to Parameter class.
(Accessor): Is back simple class.
(PropertyMethod): Implemented Attributable abstract class.
(DelegateMethod): Implemented Attributable abstract class.
(Event): New constructor for disctintion between normal Event
and Event with accessors.
* cs-parser.jay: Used new Event ctor and GlobalAttributeSection.
* codegen.cs, const.cs, decl.cs, delegate.cs:
(CommonAssemblyModulClass): Implemented Attributable abstract class
and simplified.
* enum.cs: Implement IAttributeSupport interface.
(EnumMember): New class for emum members. Implemented Attributable
abstract class
* parameter.cs:
(ParameterBase): Is abstract.
(ReturnParameter): New class for easier [return:] attribute handling.
* typemanager.cs: Removed builder_to_attr.
svn path=/trunk/mcs/; revision=27143
* Makefile: disable net_2_0 on windows. It doesn't build. Don't
try to build net_1_0 and net_2_0 if we provide a PROFILE=xxx in the
command line.
svn path=/trunk/mcs/; revision=27137
* metadata/Makefile.am: link to ../os/libmonoos.la on windows.
* metadata/assembly.c:
-If MONO_DEBUG, warn about non-existing directories in
MONO_PATH.
-Added mono_assembly_getrootdir() that replaces MONO_ASSEMBLIES
compile time variable.
-Removed init_default_path and call mono_set_rootdir from
libmonoos.a instead (windows only).
* metadata/assembly.h: declare mono_assembly_getrootdir().
* metadata/domain.c:
* metadata/icall.c: use mono_assembly_getrootdir() instead of
MONO_ASSEMBLIES.
* metadata/loader.c: s/getenv/g_getenv/
* os/win32/util.c: the path from GetModuleFileName is UTF-16.
svn path=/trunk/mono/; revision=27134
* platforms/win32.make: Define a PLATFORM_PATH_SEPARATOR used for
separating paths in env vars. (ie MONO_PATH).
* profiles/net_2_0.make: Always use gmcs for building the 2.0
libraries. corlib is the first lib built and it will build
gmcs.
svn path=/trunk/mcs/; revision=27126
* marshal.{h,c}: Add support for UnmanagedType.AsAny.
* marshal.c: Use mono_metadata_signature_{alloc,dup} where appropriate.
* metadata.h: Add new marshalling conversions.
* metadata.h metadata.c (mono_metadata_signature_dup): New helper function.
svn path=/trunk/mono/; revision=27122
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
- Added fix for better handling of exceptions when
building the X509 Certificate chain.
svn path=/trunk/mcs/; revision=27117
* Timer.cs: if AutoReset, disable the timer before adding the callback
to the ThreadPool. Patch by Tim Fries <[email protected]>. Fixes bug
#57993.
svn path=/trunk/mcs/; revision=27114
* XmlDataInferenceLoader.cs :
It now requires XmlDocument as input. Improved identification of
DataSet element. Removed extra lines.
Moved boresome design notes to bottom of the source and
added standalone runnable driver (not included on build).
* DataSet.cs :
Update with related to the change above.
WriteXml() should call Flush() after writing. This fixes bug #58327.
* XmlSchemaDataImporter.cs :
Improved indentification of DataSet element.
svn path=/trunk/mcs/; revision=27111
* shared.c (_wapi_shm_attach): Cope when a previous daemon startup
attempt failed, leaving shared files that look like a daemon is
still starting.
svn path=/trunk/mono/; revision=27097
* SoapDocumentationHandler.cs: added internal property to get the page
handler when available.
* WebServiceHandlerFactory.cs: wrap the documentation handler in a class
that implements IRequiresSessionState and, if requested,
IReadOnlySessionState, so that we can use Sesion object in the default
WSDL help generator.
svn path=/trunk/mcs/; revision=27092
* reflection.c (mono_reflection_get_type): Lookup the type in all
modules of a multi-module assembly. Fixes#58291.
svn path=/trunk/mono/; revision=27091
* Mono.Security_test.dll.sources: Added unit tests for Mono.Security.
Protocol.Ntlm.MessabeBase and Mono.Security.ASN1Convert.
svn path=/trunk/mcs/; revision=27090
* ARC4ManagedTest.cs: Added missing unit tests for complete coverage.
Completed convertion to NUnit 2.
* CryptoConvertTest.cs: Added/modified unit tests for better coverage.
* MD2ManagedTest.cs: Added unit tests for better coverage.
* MD2Test.cs: Added unit tests for better coverage.
* MD4ManagedTest.cs: Added unit tests for better coverage.
* MD4Test.cs: Added unit tests for better coverage.
* PKCS8.cs: Added unit tests for better coverage.
svn path=/trunk/mcs/; revision=27087
* ChallengeResponseTest.cs: Added new unit tests for better coverage.
* MessageBaseTest.cs: New. Unit tests for the base abstract class.
* Type2MessageTest.cs: Added new unit tests for better coverage.
* Type3MessageTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27086
* PrivateKeyTest.cs: Added new unit tests for better coverage.
* SoftwarePublisherCertificateTest.cs: Added new unit tests for better
coverage.
svn path=/trunk/mcs/; revision=27085
* ASN1ConvertTest.cs: New. Unit tests for ASN.1 convertions.
* StrongNameTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27084
* ASN1Convert.cs: Added better exceptions. Fixed bugs found by new
unit tests.
* StrongName.cs: Fixed GetBytes() when creating a new strongname.
Removed unrequired :base() from a constructor. Removed debugging
Console.WriteLine.
svn path=/trunk/mcs/; revision=27082
* attribute.cs (Attribute.GetPositionalValue): New function.
* class.cs (TypeContainer.VerifyMembers): New function.
(TypeContainer.Emit): Use it.
(ClassOrStruct): New base class for Class and Struct.
(ClassOrStruct.ApplyAttributeBuilder): New function. Note if
StructLayout(LayoutKind.Explicit) was ascribed to the struct or
class.
(ClassOrStruct.VerifyMembers): If the struct is explicitly laid out,
then each non-static field should have a FieldOffset attribute.
Otherwise, none of the fields should have a FieldOffset attribute.
* rootcontext.cs (RootContext.ResolveCore): Resolve StructLayout
and FieldOffset attributes.
* typemanager.cs (TypeManager.struct_layout_attribute_type)
(TypeManager.field_offset_attribute_type): New core types.
(TypeManager.InitCoreTypes): Initialize them.
svn path=/trunk/mcs/; revision=27080
avoids throwing the Abort exception).
In mono_thread_manage, don't continue with the shutdown until all aborted
threads have actually stopped.
svn path=/trunk/mono/; revision=27076
(test-multi-local): Add logging of errors.
* runtest.pl: Change $errors and $warnings to keep track of lines
on which errors are supposed to occur.
svn path=/trunk/mcs/; revision=27068
* SqlMoney.cs : Handle fixed digits correctly.
Round decimal value before casting into other numeric types.
* SqlInt16.cs,
SqlInt32.cs,
SqlInt64.cs : Round SqlMoney decimal value before casting into them.
* SqlDateTime.cs :
Added range check.
Years and months were ignored in some .ctor().
Return invariant culture string in ToString().
Return null for operator - when operand is null.
svn path=/trunk/mcs/; revision=27067
* DataSetReadXmlSchemaTest.cs : SingleElementTreatmentDifference() was
incorrect. DataSet element is assumed only if there is only one
global element.
* DataSetReadXmlTest.cs : Added error-reported test case.
* DataSetInferXmlSchemaTest.cs : Modified more tests not to compare
Ordinal for non-specified columns (that shouldn't be significant).
svn path=/trunk/mcs/; revision=27065
* XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
node can be it as well) and added check for Attributes existence
in GetAttribute() and MoveTo*Attribute().
svn path=/trunk/mcs/; revision=27022
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
e meaningful exceptions instead of throw NpgsqlException which are now exclusive
ly to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27009
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws more meaningful exceptions instead of throw NpgsqlException which are now exclusively to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27008
* monop.cs: seperate assembly loading into .GetAssembly method,
fail gracefully, and support loading assemblies from absolute and
relative paths
support /r: as well as -r:
svn path=/trunk/mcs/; revision=27007
* FileSystemWatcher.cs : csc build fix. Duplicate name between class
field and local variable. (already filed in bugzilla #47991).
svn path=/trunk/mcs/; revision=26997
to fix signature of OdbcConnection
* OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
order to fix signature of OdbcConnection
* OdbcConnection.cs: Signature fixes: removed DataReader property,
added setter for ConnectionTimeout, made transaction internal
* OdbcParameter.cs: reduced accessibility of Bind method to
internal, added setter for IsNullable
* OdbcParameterCollection.cs: made default ctor and Bind method
internal
svn path=/trunk/mcs/; revision=26991
* SqlDataSourceCommandEventArgs:
* XmlDataSource.cs : removed temporary workarounds for CLS
compliance as System.Data is now CLS compliant
svn path=/trunk/mcs/; revision=26983
* io.c: translate from GFileError to errno codes and don't free
variables right after calling mono_io_scandir, as we may overwrite
errno value.
svn path=/trunk/mono/; revision=26979
* DefaultWatcher.cs:
* FAMWatcher.cs: use MangledFilter instead of Filter.
* FileSystemWatcher.cs: added MangledFilter and finalizer.
* SearchPattern.cs: fixed the case when the pattern is "*".
svn path=/trunk/mcs/; revision=26978
* io.c: g_dir_open return ENOENT for directories on which we don't have
read/execute permission, while returning EPERM for anything below those.
So, change ENOENT by EPERM if the directory exists.
svn path=/trunk/mono/; revision=26970
* Makefile: build NUnit if the dll is not found when running
'make test'. Use INTERNAL_MCS to build the tests as csc fails miserably
to compile them.
svn path=/trunk/mcs/; revision=26968
* DSACryptoServiceProvider.cs: Fixed SignData to hash data before
signing it (thanks to Jens Thiel for spotting this).
svn path=/trunk/mcs/; revision=26932
* DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
(was badly tested) and simplified test to reduce key pair generations.
svn path=/trunk/mcs/; revision=26931
* DataSet.cs :
In WriteXmlSchema(), when complex type contains simple type content
attributes must not added to XmlSchemaComplexType directly. It
causes schema compilation error.
DataRelation should not be output when related columns are hidden.
svn path=/trunk/mcs/; revision=26930
(ves_icall_System_Globalization_CultureInfo_internal_get_cultures):
Fix array construction, add bailout if the length is 0.
svn path=/trunk/mono/; revision=26922
* PasswordDerivceBytesTest.cs: Added new tests to complete
coverage.
* RSACryptoServiceProviderTest.cs: Added new tests to complete
coverage.
svn path=/trunk/mcs/; revision=26919
* io.c (FindFirstFile): Comment out a windows-compatibility check
that breaks when directories have metachars in their names.
Workaround for bug 58116.
svn path=/trunk/mono/; revision=26912
* ToBase64Transform.cs: Input block may be smaller than a full block
when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
svn path=/trunk/mcs/; revision=26911
* ToBase64TransformTest.cs: Added a (legal) test where the final
transform receive data smaller than it's input block (padding).
svn path=/trunk/mcs/; revision=26910
* socket-io.c (addrinfo_to_IPHostEntry): Don't crash if the
machine doesn't have a DNS entry. Patch by Urs Muff
([email protected]), fixes bug 57928.
svn path=/trunk/mono/; revision=26908
* CipherMode.cs: Moved XML comments to monodoc.
* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
* ICryptoTransform.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
* FromBase64Transform.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26907
* Convert.cs: ToBase64CharArray method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26906
* SequentialSearchPrimeGeneratorBase.cs: Start the smallPrime vector at
10 (not 9) as 29 was just tested (more for correctness than speed gain).
svn path=/trunk/mcs/; revision=26902
* PrimalityTests.cs: Applying optimization from HAC section 4.50
(base == 2) for a 30% gain in primality testing (medium confidence).
svn path=/trunk/mcs/; revision=26901
* BigInteger.cs: Faster scan of smallPrimes in IsProbablePrime.
Commented the methods OddModTwoPow and EvenModTwoPow as they are broken
in some cases (well tested primes test case).
svn path=/trunk/mcs/; revision=26900
Add a 'complain' parameter to silence errors.
(Attribute.Resolve): Update to changes. Put in sanity check to catch
silently overlooked type-resolutions.
(Attribute.ScanForIndexerName, Attribute.DefinePInvokeMethod): Update
to reflect changes.
(Attributes.Search): New function.
(Attributes.Contains, Attributes.GetClsCompliantAttribute): Use Search.
(Attributes.GetAttributeFullName): Remove hack.
* class.cs (MethodCore.LabelParameters, MethodData.ApplyAttributes):
Update to reflect changes.
* codegen.cs (CommonAssemblyModulClass.GetClsCompliantAttribute):
Use Attributes.Search instead of nested loops.
svn path=/trunk/mcs/; revision=26899
ImportMembersMapping call. This fixes bug #58112. The problem is that
it imported two different arrays (only different in the array item
namespace) with the same name. Not sure what was this Reset needed for,
everyting seems to work without it.
svn path=/trunk/mcs/; revision=26893
* XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
also expected to do ReadXml(), but I will remove that feature and
support column reordering).
* XmlSchemaDataImporter.cs : Always initialize dataset name.
Always set Nested and primary key for parent table.
* XmlDataReader.cs : Now it is used.
Top level element might not match to dataset name nor any table
name, but still possible to read content tables.
Handle empty element correctly in some places.
Handle Fragment mode (read up XmlReader to the end).
* DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
XmlDataInferenceLoader and XmlDataReader.
svn path=/trunk/mcs/; revision=26889
* Makefile.am (bootstrap): New target for building from CVS. New
improved version of 'fullbuild' -- does not install any files.
(fullbuild): Obsolete target. Bootstraps and installs tree.
(mcs-tree-safe-build,xinstall-runtime,mcs-rest,remove-binaries):
Removed.
(stage1,stage1-mcs,stage1-mono,stage2,stage3)
(tmpinst-dir,tmpinst-runtime): New targets used to implement a
two-stage bootstrap.
svn path=/trunk/mono/; revision=26884
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to
complete coverage.
* RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete
coverage.
svn path=/trunk/mcs/; revision=26860
* Directory.cs: use the real wildcard for file names as it is supported
now in io-layer. SearhPattern is not needed now.
svn path=/trunk/mcs/; revision=26856
* Convert.cs: ToBase64String method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26850
* Rijndael.cs: Source clean up.
* RijndaelManaged.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
svn path=/trunk/mcs/; revision=26849
* RNGCryptoServiceProvider.cs: Removed TODO and documented them in
mono doc. Now call runtime when a seed is provided.
* RSA.cs: Added globalization to exceptions. Removed check for
<RSAKeyValue> as it is not checked by MS implementation.
* SignatureDescription.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Removed TODO and added notes to monodoc.
* SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
* ToBase64Tranform.cs: Added missing exception handling. Moved XML
comments to monodoc.
svn path=/trunk/mcs/; revision=26848
* SHA1.cs: Moved XML comments to monodoc.
* SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA256.cs: Moved XML comments to monodoc.
* SHA256Managed.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA384.cs: Moved XML comments to monodoc.
* SHA512.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26845
* RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
when the key is changed.
* RC2CryptoServiceProvider.cs: Added globalization to exceptions.
Fixed the KeySize must be equal with EffectiveKeySize to match MS
implementation.
svn path=/trunk/mcs/; revision=26844
* mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
more portable.
* mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
svn path=/trunk/mono/; revision=26839
When deserializing an encoded method response, if the return type of the
method is Object, assign to it the first element of the message, whatever
it is.
* XmlSerializationReader.cs:
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
the imported member.
* TypeTranslator.cs: Added method to safely get a primitive TypeData.
* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
a given xsi type is not found. Just read it as primitive type.
* XmlTypeMapMember.cs: Added IsReturnValue property.
* XmlTypeMapping.cs: Added ReturnMember property.
* XmlSerializer.cs: Reference System.Data when compiling the serializer.
svn path=/trunk/mcs/; revision=26836
* corlib_test.dll.sources: Added SymmetricAlgorithm2Test,
ToBaseTransformTest, TripleDESTest unit tests to the build.
svn path=/trunk/mcs/; revision=26834
* RNGCryptoServiceProviderTest.cs: Updated unit tests for exception
testing.
* RSATest.cs: Updated unit tests for importing XML key pairs.
* SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
coverage (like exception testing).
* ToBase64TransformTest.cs: New. Unit tests to complete coverage of
ToBase64Transform.
* TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
svn path=/trunk/mcs/; revision=26833
* DataSet.cs :
Eliminated CRLF injection.
More clear message in Clear().
Updates reflecting XmlSchemaDataImporter change.
Added duplicate check for XmlSerializerNamespaces in BuildSchema().
Don't use xmlns attribute for UnhandledAttributes (its not mandatory
but that depends on different behavior from ms.net).
Set locale also for DataTable.
Add xs:element only when target namespace matches to the
element's namespace. Otherwise, add xs:import for external namespace.
Put xs:sequence for dataset element's particle _only when_ actual
contents exist.
svn path=/trunk/mcs/; revision=26832
* ColorTranslator.cs: Fixed the existing methods and implemented
the missing methods.
* ColorConverter.cs: Fixed the existing methods and implemented
the missing methods. Also, fixed coding style.
svn path=/trunk/mcs/; revision=26831
* RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw
exceptions to test exception handling (and get more coverage).
* SHA256Test.cs: Corrected Setup attribtue (was [Test]).
svn path=/trunk/mcs/; revision=26830
* XmlDataReader.cs : Added. This class will work better when our
schema inference and schema read engine gets improved. (It contains
standalone testable Driver class.)
svn path=/trunk/mcs/; revision=26829
* ConstraintCollectionTest.cs : Table name should not be the same as
for the purpose of this test.
* DataSetReadXmlSchemaTest.cs : Added more tests based on schema files.
* DataSetTest.cs : Reordered attributes to pass test in
WriteDifferentNamespaceSchema().
svn path=/trunk/mcs/; revision=26822
Before the change the Enabled property wasn't updated when a postback
event was raised.
fixed SelectedIndex property implementation in ListControl.
Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
when the list is empty.
svn path=/trunk/mcs/; revision=26817
* ManagedXslTransform.cs : For Stream input, use StreamWriter for
input to GenericOutputter. Passing XmlWriter causes unexpected
xml declaration output.
svn path=/trunk/mcs/; revision=26816
* NewMonoXSD.cs : Added new /generator:typename(,assemblyfile) option
support that enables users to use any CodeDomProvider.
Added VB support (/language:VB).
svn path=/trunk/mcs/; revision=26812
* mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
long reg allocation in any reg (not only eax:edx) and implemented
long shl/shr ops in asm instead of helpers.
svn path=/trunk/mono/; revision=26811
* rand.c|h: Added new icall for (optionally) seeding the PRNG. This
does nothing for now (not required for Linux/Windows) but the class
library can call it (and a newer or modified runtime could need it).
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26802
* io-private.h: 'namelist' is now a gchar ** in _WapiHandlePrivate_find.
* io.c: implemented scandir using glib functions.
svn path=/trunk/mono/; revision=26801
* AspParser.cs: indent a few lines.
* AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
attribute value. This way we can simulate reading 2 characters ahead
(one in ungetc and the other in Peek) and work with values like
text/javascript. Fixes bug #57302.
svn path=/trunk/mcs/; revision=26798
* ConfigXmlDocument.cs: removed method that was supposed to be internal.
* ConfigurationSettings.cs: instead of calling the overload that doesn't
exist in MS, use what we have when loading an external file.
svn path=/trunk/mcs/; revision=26793
* ForeignKeyConstraintTest.cs : Made tests pass under MS.NET 1.1.
Don't catch every kind of exception. That does nothing but keep us
away from the exact error location.
* DataSetTest.cs : Make sure that we read schema correctly, before
testing WriteXmlSchema.
svn path=/trunk/mcs/; revision=26786
* System.Web.Services.dll.sources: removed HttpGetWebServiceHandler and
HttpPostWebServiceHandler.
* System.Web.Services.Protocols/HttpGetWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpPostWebServiceHandler.cs: removed.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: changed
ctor parameters and added EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: added EnableSession
virtual property.
* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: added a new
handler that implements IRequiresSessionState used for HttpGet and
HttpPost.
(GetHandler): for HttpGet and HttpPost check if the method requires to
have a Session object and use the new SimpleSyncSessionHandler in that
case.
Still missing proper session handler for SOAP requests.
svn path=/trunk/mcs/; revision=26782
* HttpSessionState.cs: added Clone (), which makes and exact copy but
with a cloned SessionDictionary. When EnableSessionState is set to
ReadOnly, we can modify the collection, but changes are not propagated.
* ISessionHandler.cs: changed signature of UpdateContext().
* SessionDictionary.cs: added Clone.
* SessionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: don't create a new session if the handler
do not require it. UpdateContext() now returns an HttpSessionState to
the module.
* SessionStateModule.cs: removed IsReadOnly as it is now passed as a
parameter to the session handler. If the session is read-only, clone
it so that it can be changed but changes are not kept.
In short, we don't create session objects when not required and we
honor the ReadOnly sessions.
svn path=/trunk/mcs/; revision=26781
* Environment.cs: Completed OSVersion property.
* Version.cs: Added internal CreateFromString() to "try" to build the
best version number form the specified string.
svn path=/trunk/mcs/; revision=26777
* environment.c|h: Added icall ves_icall_System_Environment_
GetOSVersionString to get the current OS version as a string.
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26776
* CustomDataClassGenerator.cs : Modified that DataSet contains each
DataTable field so that each table property can access them directly.
(plus, modified standalone code driver code: shouldn't affect)
svn path=/trunk/mcs/; revision=26775
* DataColumnCollectionTest.cs : catch only specific exception. Don't
rely on localizable error message.
* DataSetTest.cs : Attribute orders should not be significant, so
just hacked to match current implementation's order.
Added WriteNestedTableXml().
svn path=/trunk/mcs/; revision=26774
* HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
to exceptions.
* KeyedHashAlgorithm.cs: Added globalization to exceptions.
* KeySizes.cs: Moved XML comments to monodoc.
* MaskGenerationMethod.cs: Source clean up.
* MD5.cs: Moved XML comments to monodoc.
* MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
private fields. Changed constants from enum to array. Zeroize data on
Dispose.
* PaddingMode.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Added globalization to exceptions. Removed
TODO and documented as "not supported" in MonoDoc.
* RandomNumberGenerator.cs: Source clean up.
svn path=/trunk/mcs/; revision=26773
* mini-sparc.h: Fix warnings.
* exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
stack.
* mini-exceptions.c (mono_handle_exception): Call the filter in a
separate statement for clarity.
svn path=/trunk/mono/; revision=26770
When reading an object using the typeof(object) map, an emty xsi:type
means that it has to read the contents into an XmlNode[].
* TypeData.cs: Return the correct full name for inner classes.
* XmlSchemaImporter.cs: Improved detection of types that represent
"anyType", and must be mapped to XmlElement, XmlNode or Object.
* XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
the correct namespace.
In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
not known.
svn path=/trunk/mcs/; revision=26761
* SHA256Managed.cs: Updated to use shared constants.
* SHA384Managed.cs: Updated to use shared constants.
* SHA512Managed.cs: Updated to use shared constants.
* SHAConstants.cs: New. Shared constants for SHA implementations.
svn path=/trunk/mcs/; revision=26759
* Base64Constants.cs: New. Convert code into tables for better base64
performance.
* FromBase64Transform.cs: Updated to use the new tables. Source code
cleanup.
* ToBase64Transform.cs: Updated to use the new tables. Added
globalization. Commented finalizer as it isn't required in this case.
svn path=/trunk/mcs/; revision=26753
* object.c (mono_class_compute_gc_descriptor): Fix warning.
* object.c (mono_runtime_invoke_array): Add an assert so null cannot be
passed when a valuetype is expected.
* object.c (mono_unhandled_exception): Only set the exit code if the
exception happens in the main thread. Fixes thread5.exe.
svn path=/trunk/mono/; revision=26741
* BuiltInDatatype.cs : added BUGGY_MS_COMPLIANT condition and that
handles ms-compatible properties.
* XmlSchemaComplexType.cs : ditto for ContentTypeParticle of xs:anyType.
Make sure ContentType for xs:anyType is Mixed.
* XmlSchemaUtil.cs : ditto for <xs:attribute use="prohibited" ..>
svn path=/trunk/mcs/; revision=26737
* XmlSchema.cs : Write() handles schema namespace for xmlserializer
(it does not look to be handled inside xmlserializer).
svn path=/trunk/mcs/; revision=26735
* XmlDsigBase64Transform.cs : LoadInputAsXmlNodeList() is testable.
* XmlDsigC14NTransformTest.cs : Ignore LoadInputAsXmlNodeList(); that
test premises incorrect namespace handling.
* XmlDsigXPathTransformTest.cs : Removed some FIXMEs (counting node
will give more expected results),
plus some noise on FunctionHereObsolete().
svn path=/trunk/mcs/; revision=26732
* SignedXml.cs,
Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
* XmlDsigBase64Transform.cs : Should not output the content of the
selected element nodes. Put text content only those text nodes are
in the node list.
* XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
* XmlDsigXsltTransform.cs : Use XmlResolver to load document and
to transform. Throw null reference exception explicitly when
the input was not loaded.
svn path=/trunk/mcs/; revision=26731
* XmlSchemaDataImporter.cs :
SimpleContent column support.
Annotated relation support.
Top-level element is counted only when its type is complex.
xs:anyType is no longer treated as complex type.
dataset existence is mandatory now.
Improved DataType and DefaultValue support.
Attribute namespace is properly handled now.
Prohibited attribute is now treated as hidden column.
Reject list or union simple type.
Still incomplete 1) to read relationship in some cases, 2) to
determine whether an element is dataset or table, 3) thus to
exclude extraneous column, 4) to remove extraneous *_Id column.
svn path=/trunk/mcs/; revision=26730
* DataTable.cs :
We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
serialization .ctor() (thus schema read/inference should be easier).
DataRowSorter should consider Table's Locale.
svn path=/trunk/mcs/; revision=26729
* ConstraintCollection.cs :
Use Table.CaseSensitive and Table.Locale to compare strings.
Duplicate constraint name exception does not occur under .NET 1.1.
svn path=/trunk/mcs/; revision=26727
* ConstraintCollectionTest.cs : uncommented some tests that should be
implemented until mono 1.0.
* ConstraintTest.cs : use ExpectedException. Don't expect localizable
error message.
* DataColumnTest.cs,
DataRelationTest.cs,
DataRowCollectionTest.cs : catch only specific type exception.
Don't rely on (test) localizable messages.
* DataSetAssertion.cs : We shouldn't expect exact column ordinals
when infering/reading the structures from documents/schemas.
svn path=/trunk/mcs/; revision=26726
* System.Web.Services/WebService.cs: added a HttpSessionState field
and a setter method. Session now returns null if EnableSession is not
set for the method invoked.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs: use
the session if the method has EnableSession set.
* System.Web.Services.Protocols/LogicalMethodInfo.cs: added
EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: set the Session
object of the WebService.
Fixes bug #57905 (needs the latest DefaultWsdlHelpGenerator.aspx).
svn path=/trunk/mcs/; revision=26722
* data/DefaultWsdlHelpGenerator.aspx: add any cookie in the request to
the request we do for the actual web service.
svn path=/trunk/mono/; revision=26721
* daemon.c (read_message): Return FALSE on error so the GSource
callback itself can return FALSE. Cures the infinite loop poll()
warning on MacosX.
* shared.c: Fix some daemon startup race conditions.
svn path=/trunk/mono/; revision=26704
* WebConfigurationSettings.cs: now it defaults to 'web.config' and if
not found, 'Web.config'. Don't throw exception if both exists. Thanks
to urs and dru for bugging me about this.
svn path=/trunk/mcs/; revision=26698
* configure.in: check for SIGEV_THREAD being defined before checking
for AIO support. Fixes compilation under FreeBSD.
svn path=/trunk/mono/; revision=26690
* interp.c (ves_exec_method_with_context): Disable explicit assignment
of 'esi' to the ip variable, since it causes register allocation errors
on some versions of gcc. Fixes#58010.
svn path=/trunk/mono/; revision=26689
JIT_SUPPORTED.
(install-data-local, uninstall-data-local): Run runtime with
libtool.
* runtime/net_2_0/Makefile.am: Likewise.
Report from Urs C Muff <[email protected]>.
svn path=/trunk/mono/; revision=26685
* SimpleWebHandlerParser.cs:
* TemplateParser.cs: for the assembly names given in the 'assembly'
attribute, use LoadWithPartialName instead of Load.
svn path=/trunk/mcs/; revision=26649
* CryptoConfig.cs: Specify version and public key token when loading
System.Security.dll for XML Digital Signature classes.
svn path=/trunk/mcs/; revision=26629
* driver.cs: Remove the hack from saturday, as well as the hack
from jackson (LoadAssemblyFromGac), also adds the CWD to the
link_paths to get that bit proper.
svn path=/trunk/mcs/; revision=26620
* AssemblyInfo.cs: Returned to match original version (0.7.4.*). We
now use 0.7.4.0 for Fx1.0, 0.7.4.1. for Fx1.1 and 0.7.4.2 for Fx 2.0.
svn path=/trunk/mcs/; revision=26606
Add --with-preview=yes/no
Install mcs/mbas into $prefix/lib/mono/1.1
Install gmcs into $prefix/lib/mono/2.0
This is in preparation for the dual installation of libraries GAC + devel.
svn path=/trunk/mono/; revision=26599
* appdomain.c: use g_strncasecmp when looking for 'Culture=' et al.
* reflection.c: use g_strncasecmp when looking for 'Culture=' et al.
(type_get_fully_qualified_name): Added PublicKeyToken when building a
full type name.
svn path=/trunk/mono/; revision=26592
* appdomain.c: fixed check for 'neutral' culture and removed warning.
* reflection.c: fix bug when parsing a full type name and Version is not
the last thing in the string.
svn path=/trunk/mono/; revision=26589
* AssemblyInfo.cs: Now that bug #57941 (incomplete key pairs) is fixed
we now use nunit.key to sign their assemblies.
svn path=/trunk/mcs/; revision=26559
* mono-sha1.c: MacOS X defines "LITTLE_ENDIAN", you are supposed
to test against BYTE_ORDER, and this caused trouble. We now use
G_BYTE_ORDER and G_LITTLE_ENDIAN. This should fix the MacOS woes.
svn path=/trunk/mono/; revision=26543
* assembly.c (mono_assembly_load_references): Add a compatibility
hack to run old applications that might be still referencing the
3300-based assemblies, only do this for System.xxx.
svn path=/trunk/mono/; revision=26524
* driver.cs: Try a LoadFrom before a Load, this checks the current
path. This is currently a bug in mono that is be fixed, however, this
provides a workaround for now. This will be removed when the bug
is fixed.
svn path=/trunk/mcs/; revision=26523
* Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlConnector.cs,
Npgsql/NpgsqlConnectorPool.cs,
Npgsql/NpgsqlError.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlParameterCollection.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=26522
* Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlConnector.cs,
Npgsql/NpgsqlConnectorPool.cs,
Npgsql/NpgsqlError.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlParameterCollection.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=26519
* CryptoConvert.cs: Added support for truncated, but still valid, RSA
private key blob. Fix#57941 (couldn't sign with nunit key).
* RSAManaged.cs: Normalized the size of D when not present. This
allows us to output a compatible base64 representation of 1024bits 0.
svn path=/trunk/mcs/; revision=26511
* CryptoConvertTest.cs: Added test case where a strongname key pair
(RSA 1024 bits) was truncated in the last parameter (D) (i.e. the
private key) but saved by the use of CRT (Chinese Remainder Theorem).
svn path=/trunk/mcs/; revision=26508
* Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
I will remove this once THE bug is hunted.
svn path=/trunk/mcs/; revision=26507
* CaseInsensitiveComparer.cs: Fix the default constructor (needs to
set CurrentCulture, ensure culture is set to null for invariant case,
construct early
* Comparer.cs: Restyle, change lineendings
svn path=/trunk/mcs/; revision=26504
* TimeSpan.cs: Redid a lot of stuff in TimeSpan from scratch.
Fixes several potential bugs and makes things way faster.
svn path=/trunk/mcs/; revision=26501
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Add NUnit
dlls here.
(non_gac_assemblies): Removed, every thing is migrated over to gac_assemblies.
(EXTRA_DIST): Include only gac_assemblies.
(dist_assemblies_DATA): It's referring to $(non_gac_assemblies)
and that is no gone now. So remove as well.
($(non_gac_assemblies)): Bye bye.
svn path=/trunk/mono/; revision=26497
* gacutil.cs: Change the way of handling the /prefix stuff.
Now all gacbased operations will work with /prefix or --root. This
*MUST* be at the end of the commandline for it to work.
Also note, that in a Makefile changing /i to /u will not work, as the
gac uninstalls based on AssemblyName.Name, so forexample:
gacutil /i some/path/blah/System.dll --root /usr/lib/somefakegac
will install and
gacutil /u System --root /usr/lib/somefakegac
will uninstall.
svn path=/trunk/mcs/; revision=26480
* ThreadTest.cs: Un-ignore some tests that seem to run pretty well
now. Getting one failure from these, but at least they run without
crashing, or throwing some nasty _wapi exception thingy.
svn path=/trunk/mcs/; revision=26429
* DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
* DataTableCollection.cs : Tested and removed TODO
* TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
svn path=/trunk/mcs/; revision=26407
SoapFault. Taken this into account.
* SoapMessageFormatter.cs: Added FormatFault method. In FormatResponse(),
the array of output parameters must also include placeholders for the
input parameters (set to null).
ParameterInfo.IsOut does not correspond to the "out" keyword in C#, but
to the OutAttribute applied to parameters. There can be input parameters
with the OutAttribute. Fixed this in a couple of places.
Added CreateSoapMessage method, which creates a SoapMessage including
the parameter types (only for responses, since for requests the target
method is not known).
* SoapServerFormatterSink.cs: Use soapMsgFormatter.CreateSoapMessage to
create the SoapMessage.
svn path=/trunk/mcs/; revision=26402
array of parameter types, use those to deserialize the parameter values.
Use the new method SoapTypeMapper.ParseXsdValue() to parse primitive values.
* SoapTypeMapper.cs: Added GetXsdValue and ParseXsdValue.
* SoapWriter.cs: Always include parameter types when serializing a message.
MS.NET does it.
svn path=/trunk/mcs/; revision=26400
suffix.
(gac_assemblies, non_gac_assemblies, corlibdir, dist_corlib_DATA):
New variables. Use Automake idioms.
(dist-hook): Remove.
(install-local, uninstall-local): Use mscorlib.dll from current
tree when running gacutil.
(mono_runtime): New variable. Points to either JIT compiler or
interpreter.
Report from Bernie Solomon <[email protected]>
* runtime/net_2_0/Makefile.am: Likewise.
* runtime/Makefile.am (dist_monobins_DATA): Rename from
monobins_DATA.
(EXTRA_DIST): Remove.
* Makefile.am (fullbuild): Update to changes.
svn path=/trunk/mono/; revision=26398
* typemanager.cs: don't report cyclic struct layout when a struct
contains 2 or more fields of the same type. Failed for Pango.AttrShape
which has 2 Pango.Rectangle fields.
svn path=/trunk/mcs/; revision=26396
* DSACryptoServiceProviderTest.cs: New unit tests fo better coverage.
* FromBase64Transform.cs: New unit tests for better coverage.
* HashAlgorithmTest.cs: New unit tests for better coverage.
* HMACSHA1Test.cs: New unit tests for better coverage. Updated to
NUnit2.
* KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to
NUnit 2.
* SHA1Test.cs: Coverage already complete. Updated to NUnit2.
* SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated
to NUnit2.
* SHA256Test.cs: Coverage already complete. Updated to NUnit2.
* SHA256ManagedTest.cs: Coverage already complete. Updated to NUnit2.
* SHA384Test.cs: Coverage already complete. Updated to NUnit2.
* SHA384ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
* SHA512Test.cs: Coverage already complete. Updated to NUnit2.
* SHA512ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
svn path=/trunk/mcs/; revision=26367
* Makefile: (Reintroduced) Removed Mono.CSharp.Debugger.dll from
the Windows/cygwin build as this break the Linux build.
svn path=/trunk/mcs/; revision=26366
* ecore.cs (PropertyExpr.FindAccessor): New private method. Walk
the list of PropertyInfo's in class hierarchy and find the
accessor. Fixes#56013.
svn path=/trunk/mcs/; revision=26355
* transform.c (generate): missed a couple
of places that should use ADD_CODE so buffer
gets grown properly.
* interp.c (interp_mono_runtime_invoke):
restore state better on catching exception
via longjmp here
svn path=/trunk/mono/; revision=26324
* mini-ppc.c, exceptions-ppc.c: more code saves registers
at the top of the stack. Fixed typos. Use a frame registers
for all the methods with exception clauses.
svn path=/trunk/mono/; revision=26321
Applying a patch from Benjamin Jemlich <[email protected]>.
* ecore.cs (FieldExpr.AddressOf): Make this work for valuetypes.
svn path=/trunk/mcs/; revision=26318
Applying a patch from Benjamin Jemlich <[email protected]>.
* statement.cs (Using.EmitLocalVariableDecls): Use
TypeManager.idisposable_type, not typeof (IDisposable).
(Foreach.EmitCollectionForeach): Added support for valuetypes.
svn path=/trunk/mcs/; revision=26310
* class.cs (Event.Define): Don't emit the field and don't set
RTSpecialName and SpecialName for events on interfaces. Fixes
#57703.
svn path=/trunk/mcs/; revision=26306
* mini-ppc.c, exceptions-ppc.c: save the registers in reverse
order from the stack top (moved the stack room to save the
return value for trace after the param area). Fixed corruption
in restoring registers on unwind.
svn path=/trunk/mono/; revision=26305
* string-icalls.c: added low overhead function for copying chars
* icall.c: added needed icall for the above function
svn path=/trunk/mono/; revision=26295
* exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
and prolog/epilog for methods that use it. Allow
enough param area room for varargs methods. Fix miguel's
breakage in exception handling.
svn path=/trunk/mono/; revision=26293
* attribute.cs (Attributable): New base class for objects that can
have Attributes applied on them.
(Attribute): Make AttributeUsage fields public.
(Attribute.GetFieldValue, Attribute.GetMarshal): Make non-static.
(Attribute.IsInternalCall): New property.
(Attribute.UsageAttr): Convert to a public read-only property.
(Attribute.CheckAttributeType): Use a DeclSpace, not an EmitContext.
(Attribute.ResolveType, Attribute.Resolve)
(Attribute.ScanForIndexerName): Update to reflect changes.
(Attribute.CheckAttributeTarget): Re-format.
(Attribute.ApplyAttributes): Refactor, to various
Attributable.ApplyAttributeBuilder methods.
* decl.cs (MemberCore): Make Attributable.
* class.cs (Accessor): Make Attributable.
(MethodData.ApplyAttributes): Use proper attribute types, not
attribute names.
(TypeContainer.LabelParameters): Pass Parameter to ApplyAttributes.
(TypeContainer.ApplyAttributeBuilder)
(Method.ApplyAttributeBuilder, Constructor.ApplyAttributeBuilder)
(Field.ApplyAttributeBuilder, Accessor.ApplyAttributeBuilder)
(PropertyBase.ApplyAttributeBuilder, Event.ApplyAttributeBuilder)
(Operator.ApplyAttributeBuilder): New factored-out methods.
* const.cs (Const.ApplyAttributeBuilder): Likewise.
* delegate.cs (Delegate.ApplyAttributeBuilder): Likewise.
* enum.cs (Enum.ApplyAttributeBuilder): Likewise.
* parameter.cs (ParameterBase): New Attributable base class
that can also represent Return types.
(Parameter): Update to the changes.
svn path=/trunk/mcs/; revision=26291
* DataRow.cs : When Column was added and it was AutoIncrement column,
it extended the item object array incorrectly.
(Plus tiny comment and incorrect indentation fix.)
svn path=/trunk/mcs/; revision=26281
* DataRowTest.cs : Added a test for auto increment column and item
integrity (it caused index out of range exception).
svn path=/trunk/mcs/; revision=26280
* decl.cs, enum.cs: Improved error 3005 reporting.
* report.cs (SymbolRelatedToPreviousError): New method for error reporting.
(related_symbols): New private member for list of symbols
related to reported error/warning.
* tree.cs: Do not use now obsolete Report.LocationOfPreviousError.
svn path=/trunk/mcs/; revision=26278
* ecore.cs (Expression.Constantify): If we're an enum and
TypeManager.TypeToCoreType() doesn't give us another type, use
t.UnderlyingSystemType. Fixes#56178.
svn path=/trunk/mcs/; revision=26247
* decl.cs (MemberCache.SetupCacheForInterface): Look over all our
interfaces and for each interface, only add members directly
declared in that interface. Fixes#53255.
svn path=/trunk/mcs/; revision=26244
* expression.cs (ConditionalLogicalOperator): Use a temporary
variable for `left' to avoid that we evaluate it more than once;
bug #52588.
svn path=/trunk/mcs/; revision=26238
directories.
* runtime/net_1_1/Makefile.am: Install and Uninstall the .net 1.1
libs to the GAC.
* runtime/net_2_0/Makefile.am: Install and Uninstall the .net 2.0
libs to the GAC.
svn path=/trunk/mono/; revision=26232
* statement.cs (LocalInfo.Resolve): Check whether the type is not
void (CS1547).
* class.cs (MemberBase.CheckParameters, FieldBase.DoDefine): Check
whether the type is not void (CS1547).
svn path=/trunk/mcs/; revision=26228
Committing a patch from Ben Maurer; see bug #50820.
* typemanager.cs (TypeManager.FilterWithClosure): Added CS1540
check for classes.
* ecore.cs (Expression.MemberLookupFailed): Added CS1540 check for
classes.
svn path=/trunk/mcs/; revision=26220
* Applied patch from Atsushi Enomoto that allows Synchronized
writers to have a `dont close' flag, this fixes 52094
svn path=/trunk/mcs/; revision=26219
* config.h.in:
* configure.in: check for field name in 'union sigval'.
* mono/io-layer/io.c:
* mono/io-layer/sockets.c: use the field name from configure when
accessing sigval pointer field. Makes this work on the Mac.
svn path=/trunk/mono/; revision=26218
the method if it is private (it did until now because of a bug). Make sure
it works as it worked before the fix.
* Type.cs: Implemented FilterAttribute delegate.
svn path=/trunk/mcs/; revision=26214
* statement.cs (Block.LookupLabel): Also lookup in implicit child blocks.
(Block.AddLabel): Call DoLookupLabel() to only search in the
current block.
svn path=/trunk/mcs/; revision=26207
* transform.c: Make sure ENSURE_I4 does something
32 bit machines too.
(mono_interp_transform_method): allow some stack
space for tracing to work.
svn path=/trunk/mono/; revision=26206
* cfold.cs (ConstantFold.BinaryFold): Added special support for
comparing StringConstants and NullLiterals in Equality and Inequality.
svn path=/trunk/mcs/; revision=26202
GAC. This is the quick and dirty version of this method that
doesnt take into account versions and just takes the first
canidate found. Will be good enough for now as we will not have more
then one version installed into the GAC until I update this
method.
svn path=/trunk/mcs/; revision=26190
* marshal.c (mono_marshal_load_type_info): Calculate the minimum
alignment for the type using the native alignment of its members
instead of using klass->min_align.
svn path=/trunk/mono/; revision=26189
* MethodResponse.cs, ReturnMessage.cs: Handle output parameters in a
different way. The message is constructed from an array that has all
parameters, including input parameters (which will be set to null).
The Args property returns all arguments. OutArgs returns only the
output arguments, which are taken from the provided args list.
svn path=/trunk/mcs/; revision=26186
* typemanager.cs (TypeManager.CheckStructCycles): New public
static method to check for cycles in the struct layout.
* rootcontext.cs (RootContext.PopulateTypes): Call
TypeManager.CheckStructCycles() for each TypeContainer.
[Note: We only need to visit each type once.]
svn path=/trunk/mcs/; revision=26177
* constant.cs (StringConstant.Emit): Emit Ldnull if we're null.
* const.cs (Const.LookupConstantValue): Return a `bool' signalling
success and added `out object value'. Use a `bool resolved' field
to check whether we've already been called rather than
`ConstantValue != null' since this breaks for NullLiterals.
svn path=/trunk/mcs/; revision=26173
* DigestAuthenticationModule.cs: introduces new overridable method
GetUserByName(), which by default works exactly like it used to, but
inherited classes can implement their own version. Patch by Tambet Ingo.
svn path=/trunk/mcs/; revision=26171
* corlib.dll.sources: Added X509ChainStatusFlags, X509CRL, X509Store,
X509StoreManager, X509Stores, BasicConstraintsExtension,
KeyUsageExtension and SubjectKeyIdentifierExtension to the build.
Removed ITrustAnchors.cs, TestAnchors.cs and TrustAnchors from the
build.
svn path=/trunk/mcs/; revision=26165
* BasicConstaintExtension.cs: New in corlib. In sync with
Mono.Security.dll version.
* KeyUsageExtension.cs: New in corlib. In sync with Mono.Security.dll
version.
* SubjectKeyIdentifierExtension.cs: New in corlib. In sync with
Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26163
* X501Name.cs: In sync with Mono.Security.dll version.
* X509CRL.cs: New in corlib. In sync with Mono.Security.dll version.
* X509Certificate.cs: In sync with Mono.Security.dll version.
* X509CertificateCollection.cs: In sync with Mono.Security.dll version.
* X509Chain.cs: In sync with Mono.Security.dll version.
* X509ChainStatusFlag.cs: New in corlib. In sync with Mono.Security.dll
version.
* X509Extension.cs: In sync with Mono.Security.dll version.
* X509Extensions.cs: In sync with Mono.Security.dll version.
* X509Store.cs: New in corlib. In sync with Mono.Security.dll version.
* X509StoreManager.cs: New in corlib. In sync with Mono.Security.dll version.
* X509Stores.cs: New in corlib. In sync with Mono.Security.dll version.
* X520Attributes.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26162
* CryptoConvert.cs: In sync with Mono.Security.dll version.
* CryptoTools.cs: In sync with Mono.Security.dll version.
* DSAManaged.cs: Changed delegate to please FxCop.
* PKCS1.cs: In sync with Mono.Security.dll version.
* RSAManaged.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26161
* ASN1.cs: In sync with Mono.Security.dll version.
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* PKCS7.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26159
* NextPrimeFinder.cs: In sync with Mono.Security.dll version.
* PrimeGeneratorBase.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26158
* AssemblyInfo.cs: Uncommented assembly key file attribute as MCS can
now strongname assembly. This makes Mono.Http compile with CSC (now
that Mono.Http is also strongnamed).
svn path=/trunk/mcs/; revision=26147
* error.[ch]: added _wapi_get_win32_file_error...
* io.c: ... which was _wapi_get_win32_error here.
* sockets.c: rename the function calls here too.
svn path=/trunk/mono/; revision=26146
ColorTranslator.cs, StringFormat.cs, SystemIcons.cs,ToolboxBitmapAttribute.cs:
Converted to unix format from dos format
svn path=/trunk/mcs/; revision=26144
* DESCryptoServiceProviderTest.cs: New. Completes coverage for
DESCryptoServiceProvider class. Calls the FIPS 81 tests for this
implementation.
* DESTest.cs: Added test vectors from FIPS 81.
svn path=/trunk/mcs/; revision=26142
* Makefile.am mini.h mini-exceptions.c mini-x86.h mini-sparc.h exceptions-sparc.c: Move parts of the sparc exception handling code to XP code.
svn path=/trunk/mono/; revision=26140
* SymmetricTransform.cs: Fixed a bug when offset > 0 in destination
buffer. Changed Array.Copy to Buffer.BlockCopy.
svn path=/trunk/mcs/; revision=26138
* DSA.cs: Moved XML comments to monodoc. Added globalization to
exceptions. Already had 100% coverage.
* DSAParameters.cs: Moved XML comments to monodoc.
* DSASignatureDeformetter.cs: Added globalization to exceptions.
Limited catch to expected exception. Already had 100% coverage.
* DSASignatureFormatter.cs: Added globalization to exceptions. Limited
catch to expected exception. Already had 100% coverage.
svn path=/trunk/mcs/; revision=26135
* daemon-messages.c: Avoid a deadlock when a thread is killed while
waiting for the daemon by using a recursive mutex. Helps bug 56699.
svn path=/trunk/mono/; revision=26130
setting of this flag, since the 'set' method may be non-public.
** Quick fix for breaking mcs/ build: mcs/errors/CS3013-module.cs
See corlib/System.Reflection/ChangeLog
2004-04-27 Lluis Sanchez Gual <[email protected]>
svn path=/trunk/mcs/; revision=26128
* mini-exceptions.c: New file.
* mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
Move some parts of the x86 exception handling code to an
arch-independent file so it can be shared with other ports.
svn path=/trunk/mono/; revision=26126
- Perfomance fixes:
- Added using of list of autoIncrement columns
- SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
- Fix in CheckNullConstraints
- Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
- Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
- Added onColumnRemoved() method to threat column removal accurately.
* DataRowCollection.cs :
- Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
- Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
* DataTable.cs :
- Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
* DataColumnCollection.cs :
- Perfomance fixes :
- collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
- collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
- automatic creation of column names rewrited (bug fixes + perfomance improvement)
* DataColumn.cs :
- Uses autoincrement list of a table
svn path=/trunk/mcs/; revision=26118
* io-layer/io.c: fixed leak in async_notifier().
* io-layer/sockets.[ch]: added AIO support for sockets and fixed
WSAIoctl declaration.
* io-layer/threads.c: removed old comment.
* metadata/icall.c: added 2 new async calls for Socket.
* metadata/socket-io.[ch]: fixed some warnings. Added support for
asynchronous IO on *nix systems.
* metadata/threadpool.c: removed unused variable.
svn path=/trunk/mono/; revision=26111
* Socket.cs: added support for unmanaged asynchronous IO. Speed up
error checking.
* UdpClient.cs: fixed Dispose so that it only closes the socket when
called explicitly.
svn path=/trunk/mcs/; revision=26110
* System.Runtime.InteropServices.CustomMarshalers.dll.sources:
Added Assembly/AssemblyInfo.cs, Locale.cs and TODO to the build.
svn path=/trunk/mcs/; revision=26105
* ecore.cs (PropertyExpr.DoResolve/DoResolveLValue): Check whether
we're not attempting to use an indexer. Fixes#52154.
svn path=/trunk/mcs/; revision=26094
* statement.cs (Return): Don't create a return label if we don't
need it; reverts my change from January 20th. Thanks to Ben
Maurer for this.
svn path=/trunk/mcs/; revision=26090
According to the spec, `goto' can only leave a nested scope, but
never enter it.
* statement.cs (Block.LookupLabel): Only lookup in the current
block, don't recurse into parent or child blocks.
(Block.AddLabel): Check in parent and child blocks, report
CS0140/CS0158 if we find a duplicate.
(Block): Removed this indexer for label lookups.
(Goto.Resolve): Call LookupLabel() on our current FlowBranching;
this already does the error reporting for us.
* flowanalysis.cs
(FlowBranching.UsageVector.Block): New public variable; may be null.
(FlowBranching.CreateSibling): Added `Block' argument.
(FlowBranching.LookupLabel): New public virtual method. Lookup a
label for the target of a `goto' and check whether we're not
leaving a `finally'.
svn path=/trunk/mcs/; revision=26089
* flowanalysis.cs (FlowBranching.UsageVector.MergeChild): If we're
a finite loop block, also do the ALWAYS->SOMETIMES for throws (not
just for returns).
svn path=/trunk/mcs/; revision=26086
* XmlSchemaComplexType.cs : Set basetype as ur-type for such complex
type that has an immediate Particle (W3C specified as restriction
of ur-type).
svn path=/trunk/mcs/; revision=26084
* XmlDataLoader.cs : Even when it should ignore schema, it was
infering schema.
* XmlSchemaDataImporter.cs : DataRelation creation support.
Improved "DataSet" element handing. When attributes are on the
element, it is not a "DataSet" element.
Fixed parent key column name.
Unique name creation is not required. Just raise an error.
Fill facet also for attribute types.
svn path=/trunk/mcs/; revision=26082
* flowanalysis.cs (FlowBranchingLoop): New class.
(FlowBranching.UsageVector.MergeJumpOrigins): Take a list of
UsageVector's instead of an ArrayList.
(FlowBranching.Label): Likewise.
(FlowBranching.UsageVector.MergeBreakOrigins): New method.
(FlowBranching.AddBreakVector): New method.
svn path=/trunk/mcs/; revision=26075
* attribute.cs (Attribute.Resolve): If we have a constant value
for a named field or property, implicity convert it to the correct
type.
svn path=/trunk/mcs/; revision=26069
* DataRow.cs : Null check for CheckReadOnlyStatus() and
CheckNullConstraints(), with some coding guideline fixes.
Type check should be done by Type instance comparison.
svn path=/trunk/mcs/; revision=26068
* XmlSchemaAttribute.cs : When type was inline simple type, it is not
validated correctly.
* XmlSchemaSimpleType.cs : When Content was restriction, DataType was
not indicating base type's Datatype correctly.
svn path=/trunk/mcs/; revision=26050
* Delegate.cs: GetObjectData should be virtual.
* IntegerFormatter.cs: Method factorization. I don't want to fix bugs in
30 methods almost identical.
* MulticastDelegate.cs: Implemented GetObjectData.
svn path=/trunk/mcs/; revision=26046
in interpreter
* interp.h: remove comma from end of enumeration constants
declarations
in io-layer
* daemon-messages.h:
* daemon-private.h
* error.h:
* io.h:
* processes.h:
* shared.h:
* thread-private.h:
* wapi-private.h: remove comma from end of enumeration declarations
* status.h: cast unsigned int types to int for enum assignment
in metadata
* file-io.h:
* socket-io.h:
* threads.h:
* unicode.h: remove comma from end of enumeration declarations
in mini
* driver.c: remove comma from end of enumeration declaration
in utils
* mono-logger.h: remove comma from end of enumeration declaration
svn path=/trunk/mono/; revision=26035
'child_variable_names' fields with parent blocks.
(Block.AddChildVariableNames): Remove.
(Block.AddVariable): Mark variable as "used by a child block" in
every surrounding block.
* ecore.cs (SimpleName.SimpleNameResolve): If the name has already
been used in a child block, complain about violation of "Invariant
meaning in blocks" rule.
* cs-parser.jay (declare_local_variables): Don't use
AddChildVariableNames.
(foreach_statement): Don't create an implicit block: 'foreach'
introduces a scope.
svn path=/trunk/mcs/; revision=26030
in io-layer
* io.c:
* timefuncs.c: Define 64 bit constants as long long types (i.e. 10ULL)
in metadata
* debug-mono-symfile.h:
* decimal.c:
* mono_debug.h:
* sysmath.c: Define 64 bit constants as long long types (i.e. 10ULL)
svn path=/trunk/mono/; revision=26029
* FunctionDeclaration.cs: let's make function name formation
(get_name ()) a little bit less dumb. We cache the prefix now so
we don't have to recalculate it everytime.
svn path=/trunk/mcs/; revision=26027
* DES.cs: Fixes to weak/semi-weak checking to pass new unit tests (it
requires to set odd parity on keys before comparing).
svn path=/trunk/mcs/; revision=26025
* DESTest.cs: New. Unit tests for DES including checks for weak and
semi-weak keys (with and without parity applied on keys). Completes
coverage for DES class.
svn path=/trunk/mcs/; revision=26023
* AsymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Already had 100% coverage.
* AsymmetricKeyExchangeDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricKeyExchangeFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* CryptoAPITransform.cs: Unused by Mono (added note to monodoc).
Class will stay at 0% coverage.
* CryptoConfig.cs: Added globalization to exceptions. 98% coverage.
* CryptographicException.cs: Added globalization to exceptions.
Already had 100% coverage.
* CryptoStream.cs: Added globalization to exceptions. Removed (unused)
field _previousBlock to get 100% coverage.
* CspParameters.cs: Moved XML comments to monodoc. Already had 100%
coverage.
* CspProviderFlags.cs: Moved XML comments to monodoc.
* DeriveBytes.cs: Moved XML comments to monodoc. Already had 100%
coverage.
svn path=/trunk/mcs/; revision=26022
PublicKeyToken is specified, not the hash_value. Free public token
values when free assembly name data. Previously the public key
token was hex decoded, however we are using hex encoded public key
tokens, so this is not neccasary.
* assembly.c: Lookup assemblies in the gac if their public token
value is set. Add function to allow enabling user gac
lookups. Specify whether or not the assembly was loaded from the
GAC. Compare full assembly names when checking the cache for
assemblies (Temporarily disabled see comment in code). Remove
mscorlib -> corlib mapping cruft. Add trace-loading. When a user
specifies trace-loader they get extra info to stdout on the
loading of assemblies.
* image.h: Add a field for an assembly references public token
value to MonoAssemblyname. Add a field to MonoAssembly to specifiy
whether an assembly has been loaded from the GAC.
* image.c: Remove a corlib -> mscorlib name mapping.
* loader.h: Add function to enable/disable the user gac.
* mono-config.c: Check if the usergac is enabled in the config
file.
* icall.c: New icall to determine whether or not an assembly has
been loaded from the GAC. Remove some mscorlib -> corlib mappings.
* tabldefs.h: Add constant for assemblyref flag that specifies a
full public key is used instead of a public token.
* reflection.c: Remove mscorlib -> corlib mappings. Set
PublicTokenValue instead of hash value. This value is a hex
string so it does not need to be expanded.
svn path=/trunk/mono/; revision=26012
* DateAndTime.cs:
Catch FormatException and rethrow as InvalidCastException in:
- public static System.DateTime DateValue (string StringDate) - return only the Date Part
- public static System.DateTime TimeValue (string StringTime) - return only the Time Part
svn path=/trunk/mcs/; revision=25997
Image.cs: Corrected implementation of property RawFormat.
gdipFunctions.cs: Corrected declaration of function GdipGetImageRawFormat.
svn path=/trunk/mcs/; revision=25994
gdipFunctions.cs: Added few linux only function calls.
Image.cs: Changed the implementation of few methods to proceed with
ImageAnimator class.
Bitmap.cs: Resolved a compile time error.
Icon.cs: Removed an unused variable
svn path=/trunk/mcs/; revision=25964
- Reader can have empty results (fo example from UPDATE or DELETE).
- Reader can have results with no rows (SELECT that returns 0 rows but have columns)
- In FillTable - skip rows only once for each table.
svn path=/trunk/mcs/; revision=25961
* CaseInsensitiveHashCodeProvider.cs: Fix the default constructor (needs to
set CurrentCulture, Add null check to other constructor, Call correct function
for invariant case, ensure culture is set to null for invariant case, removed
static constructor, made invariant version available as internal in .Net 1.0
svn path=/trunk/mcs/; revision=25954
* String.cs: Refactored the Invariant ToXXX into its own internal methods
so they are directly callable within corlib (can prevent early
construction of CultureInfo, InvariantCulture and related classes)
svn path=/trunk/mcs/; revision=25947
* String.cs: Managed impl. of Invariant parts of ToLower, ToUpper
* Char.cs: Managed impl. of Invariant parts of ToLower, ToUpper
svn path=/trunk/mcs/; revision=25943
* icall.c: icalls for Char.ToUpper/ToLower are now hooked to
InternalToUpper/InternalToLower.
* locales.c: (ves_icall_System_{Char,String}_InternalTo{Upper,Lower}_Comp)
removed invariant culture shortcut. This is now done in managed code.
* locales.c: (string_invariant_toupper/tolower) removed.
svn path=/trunk/mono/; revision=25942
W3C DOM compliant read-only check support (buggy part in MS.NET).
* XmlAttribute.cs,
XmlCDataSection.cs,
XmlCharacterData.cs,
XmlDocument.cs,
XmlElement.cs,
XmlNode.cs,
XmlSignificantWhitespace.cs,
XmlText.cs
: CloneNode() - set read-only when copied node is read-only.
Check IsReadOnly on attempt to modify value.
* XmlEntity.cs,
XmlEntityReference.cs : Set descendant nodes read-only.
* XmlAttributeCollection.cs,
XmlNode.cs
: Fixed incompatible exception type.
* XmlEntityReference.cs : CloneNode() should not pass an empty string
as its name.
* XmlEntityReference.cs,
XmlProcessingInstruction.cs : Check XML name validity.
* XmlText.cs : CloneNode() does not have to check children.
svn path=/trunk/mcs/; revision=25938
* XmlConvertTests.cs : Commented out locale-dependent tests.
* XmlDocumentTests.cs : Uncommented now-testable lines.
Commented out that should not be allowed, such as non-XML-name node.
svn path=/trunk/mcs/; revision=25936
* Attribute.cs, Compiler.cs, Debug.cs, Emitter.cs,
MSXslScriptCompiler.cs, Outputter.cs, XslAttributeSet.cs,
XslDecimalFormat.cs, XslKey.cs, XslStylesheet.cs, XslTemplate.cs,
XslTransformProcessor.cs : Make extra classes internal.
* XslKey.cs : It should require sorting.
* Debug.cs : Just avoid debug output. Only who want to output should
turn it on.
svn path=/trunk/mcs/; revision=25930
* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
all the attributes, not just DesignerAttribute instances. nGallery
complained.
svn path=/trunk/mcs/; revision=25919
* io-layer/socket-wrappers.h: _wapi_socket == WSASocket now. Added
WSA_FLAG_OVERLAPPED.
* io-layer/sockets.c: new unused parameters for _wapi_socket.
* metadata/icall.c: added GetSupportsAsync for Socket (same as MonoIO).
Added Poll internal call.
* metadata/socket-io.[ch]: _wapi_socket == WSASocket. Added internal
call for Poll. Select was too heavy for polling a single socket.
* metadata/threadpool.[ch]: added mono_threadpool_cleanup.
* metadata/threads.c: use it. Don't use Thread_Abort on windows.
svn path=/trunk/mono/; revision=25915
* Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
when the socket is non-blocking before getting EWOULDBLOCK error.
svn path=/trunk/mcs/; revision=25914
* mini-ppc.c (ppc_patch): Replaced the branch code patching with a
simpler mechanism: we do not care what is encoded initially
(branch absolute or relative), we care about the code and its
target. I kept the old code for reference for now.
The new code tries first to determine if the jump is anywhere in
the -/+32 absolute meg range, if it succeeds, it encodes using the
absolute branch; If not, it tried to find something in the
relative range, if not, it uses the handle_thunk code.
svn path=/trunk/mono/; revision=25908
* icall.c: Registred new icalls for key pair protection and added an
icall for Environment.GetFolderPath on Windows.
* security.c|h: Added new icalls for key pair protection.
svn path=/trunk/mono/; revision=25892
* cert2spc.cs: Updated to match changes in Mono.Security.dll. Better
handling of files.
* certmgr.cs: Updated to match changes in Mono.Security.dll.
* signcode.cs: Updated to match changes in Mono.Security.dll.
svn path=/trunk/mcs/; revision=25873
* timed-thread.c: Replace sem_init with MONO_SEM_INIT to handle
the fact that MacOS X is a piece of junk (sem_init is *defined* in
the libc, but they return `not implemented').
svn path=/trunk/mono/; revision=25870
* GcdBigTest.cs: Ajusted to changes in assembly.
* ModInverseBigTest.cs: Ajusted to changes in assembly.
* PrimeGenerationTest.cs: Ajusted to changes in assembly.
* PrimeTestingTest.cs: Ajusted to changes in assembly.
* SearchGeneratorTest.cs: Ajusted to changes in assembly.
svn path=/trunk/mcs/; revision=25865
* TlsClientCertificateVerify.cs: Use Buffer.BlockCopy instead of
Array.Copy.
* TlsServerCertificate.cs: Changed KeyUsage to KeyUsages and CertType
to CertTypes.
svn path=/trunk/mcs/; revision=25863
* CryptoConvert.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy.
* CryptoTools.cs: FxCop-ized. Sealed KeyBuilder class. Delay creation
of RNG object. Use Buffer.BlockCopy.
* DiffieHellman.cs: FxCop-ized. Removed public constructor.
* DiffieHellmanManaged.cs: FxCop-ized. Actualized with changes from
BigInteger.
* KeyPairPersistance.cs: FxCop-ized. Updated version for management
of keypairs.
* MD2Managed.cs: Use Buffer.BlockCopy instead of Array.Copy.
* PKCS1.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy instead of
Array.Copy. Also includes endian patches from Bernie Solomon.
* PKCS8.cs: FxCop-ized. Sealed class.
* RSAManaged.cs: FxCop-ized. Actualized with changes from BigInteger.
* SymmetricTransform.cs: Use Buffer.BlockCopy instead of Array.Copy.
svn path=/trunk/mcs/; revision=25859
All fixes are to make them pass under MS.NET 1.1.
* ConstraintCollectionTest.cs : Fixed to pass under MS.NET 1.1.
* DataRelationTest.cs : Creation4() never works.
* DataSetInferXmlSchemaTest.cs :
Fixed xml9 test (relation count).
Some mappings were incorrectly specified int.
ConflictColumnTable() test incorrectly tested different columns.
Fixed exception type on ConflictExistingPrimaryKey().
* DataSetReadXmlSchemaTest.cs :
Use fixed current culture.
Fixed exceptoin type on NestedReferenceNotAllowed().
* DataSetReadXmlTest.cs :
InferSchema mode is said as to load rows.
* DataSetTest.cs :
SqlGuid test depends on the runtime version.
In WriteDifferentNamespaceSchema(), we're going to set the same
order for namespaces (just for ease of tests).
Fixed many bugs on SerializeDataSet() test.
* DataTableTest.cs :
Set culture only on NET_1_0. Culture difference causes exception
under .NET 1.1.
Don't depend on error message string (consider localization).
Under .NET 1.1, constraints looks also vanishes on table's Clear().
* ForeignKeyConstraintTest.cs :
Ignore TestCtor5(). That does not work under .NET 1.1.
Fixed some exception type differences.
svn path=/trunk/mcs/; revision=25853
* mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
Raise exception on integer divide by zero by hand since the hw
doesn't support it. Handle NaNs in FP compares.
svn path=/trunk/mono/; revision=25844
* AppDomainSetup.cs: When setting a relative path to ApplicationBase, it
must be relative to the current directory, not the temp directory.
Implemented DynamicBase.
* Convert.cs: No need to create a ToBase64Transform instance at every call
to ToBase64CharArray.
* DateTime.cs: Implemented missing methods FromFileTimeUtc and
ToFileTimeUtc.
* Decimal.cs: Implemented FromOACurrency and ToOACurrency.
* Delegate.cs: Removed class TODO.
* IntegerFormatter.cs: Use Char.IsLetter and Char.IsDigit instead of ad-hoc
methods.
* Type.cs: Removed TODOs for things already implemented.
svn path=/trunk/mcs/; revision=25840
* decl.cs (FindMemberToOverride): Fix wrong warning for case when
derived class hides via 'new' keyword field from base class (test-242.cs).
TODO: Handle this in the more general way.
* class.cs (CheckBase): Ditto.
svn path=/trunk/mcs/; revision=25839
* handles.c:
* handles-private.h: Reference the handle when it is locked, so
that another thread can't blow it away while we're waiting for it
to become signalled.
* wait.c:
* timed-thread.c:
* threads.c:
* sockets.c:
* semaphores.c:
* mutexes.c:
* mono-mutex.c:
* io.c:
* handles.c:
* handles-private.h:
* events.c:
* error.c:
* daemon-messages.c:
* critical-sections.c:
* atomic.c: Added pthreads cleanup handlers and error asserts
* shared.c:
* handles.c: Fixed the gcc "variable might be used uninitialised"
warnings. They can't happen, but gcc doesn't know that
g_assert()s don't return.
Fixed the declaration of _wapi_handle_process_kill() so that it
expects the correct type for the pid.
* threads.c: Removed the TLS_PTHREAD_MUTEX style locking that
hasn't been used in ages and just made the code more complex.
svn path=/trunk/mono/; revision=25834
* exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
code reducing duplication between the platforms and enabled
signal exception handling (on linux for now).
svn path=/trunk/mono/; revision=25831
* Parser.jay: Allow computed expressions on left-hand side of
"like" operator.
Correct ordering for "is null" rule ("NOT IS NULL" => "IS NOT NULL").
svn path=/trunk/mcs/; revision=25826
* DataSet.cs : Data should be read when mode is IgnoreSchema (well,
the support is incomplete yet).
* XmlDataLoader.cs :
Reverted ReadModeSchema() argument change. XmlReadMode would be
useful to handle IgnoreSchema.
Don't overwrite DataSetName when mode is not such kind.
Set Prefix and Namespace as well as DataSetName.
AllowDBNull looks set false by default for element column.
Set unique constraint as primary key when infering the table schema.
svn path=/trunk/mcs/; revision=25821
* decl.cs (caching_flags): New member for storing cached values
as bit flags.
(MemberCore.Flags): New enum where bit flags for caching_flags
are defined.
(MemberCore.cls_compliance): Moved to caching_flags.
(DeclSpace.Created): Moved to caching_flags.
* class.cs: Use caching_flags instead of DeclSpace.Created
svn path=/trunk/mcs/; revision=25816
* socket-io.c: don't display the non-supported family warning for known
families. Now this is not displayed on windows when checking support
for IPv4/IPv6.
svn path=/trunk/mono/; revision=25809
* NewMonoXSD.cs : Added support for (ADO.NET based) xsd inference.
Changed command line usage to require /c for serialization class
generation, or /d for typed dataset generation (not supported yet).
Modified usage message due to the changes above.
* Makefile : Added reference to System.Data.dll.
svn path=/trunk/mcs/; revision=25806
* ecore.cs (PropertyExpr.GetAccesor): Only perform the 1540 check
if we are only a derived class, not a nested class.
* typemanager.cs: Same as above, but do this at the MemberLookup
level (used by field and methods, properties are handled in
PropertyExpr). Allow for the qualified access if we are a nested
method.
svn path=/trunk/mcs/; revision=25802
* Npgsql/NpgsqlDataAdapter.cs: Changed RowUpdated and RowUpdating prefix to Npgsql.
* Npgsql/NpgsqlClosedState.cs: Removed dependency in TlsException. Carlos Guzman will change this excpetion to internal.
* Npgsql/NpgsqlCommand.cs * Npgsql/NpgsqlCommand.resx * Npgsql/NpgsqlConnection.cs * Npgsql/NpgsqlConnection.resx * Npgsql/NpgsqlDataAdapter.cs * Npgsql/NpgsqlError.cs * Npgsql/NpgsqlException.cs * Npgsql/NpgsqlException.resx * Npgsql/NpgsqlMediator.cs * Npgsql/NpgsqlState.cs * Npgsql/NpgsqlState.resx * Npgsql/PGUtil.cs : Added initial error handling code improvements. Thanks Glen Parker ([email protected]) for the patch. NpgsqlException now gives aceess to error collection through the Errors property. This property return a collection of NpgsqlErrors objects. Also it gives access to error message, hint, severity and code. This fixes the feature request 689 in gborg.
svn path=/trunk/mcs/; revision=25786
* DataSet.cs :
Never set null string for Prefix and Namespace.
In InferXmlSchema() when null XmlReader is passed, just do nothing.
In WriteXmlSchema(string), earlier try block.
In BuildSchema(), try to add serialization namespaces for each
namespaces in DataSet/DataTable/DataColumn.
Removed namespace argument from WriteColumnAsElement() and don't
overwrite when namespace is "". This fixes bug #57330.
* DataColumn.cs : For Namespace and Prefix, never set null.
svn path=/trunk/mcs/; revision=25777
* class.cs: Refactoring.
(IMethodData): New inteface; Holds links to parent members
to avoid member duplication (reduced memory allocation).
(Method): Implemented IMethodData interface.
(PropertyBase): New inner classes for get/set methods.
(PropertyBase.PropertyMethod): Implemented IMethodData interface
(Event): New inner classes for add/remove methods.
(Event.DelegateMethod): Implemented IMethodData interface.
* cs-parser.jay: Pass DeclSpace to Event class for creation of valid
EmitContext (related to class.cs refactoring).
svn path=/trunk/mcs/; revision=25773
- CaseSensitive : Additional fix (removed unnesessary assignment).
- CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
svn path=/trunk/mcs/; revision=25766
arguments are the same as the number of parameters, first try to
verify applicability ignoring any 'params' modifier on the last
parameter.
Fixes#56442.
svn path=/trunk/mcs/; revision=25763
interoperability). I also had to make some changes in the implementation:
I added a field _tail that points at the first free position in the array, and
changed the type of growFactor, which is now an int (its value is the old
growFactor * 100).
svn path=/trunk/mcs/; revision=25742
* XmlSchemaImporter.cs: If a map was initially imported as a class, but it
turns out that it is an array, import it again as array. This fixes
bug #57133.
svn path=/trunk/mcs/; revision=25735
- EndLoadData() : perfomance fix in case of null constraint violation during data load (also in DataRow.cs).
- CaseSensitive : If DataTable belongs to DataSet it should always use DataSet.CaseSensitive untill explicitly changed.
- CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
* DataRow.cs :
- Pefromance fix in case of null constraint violation during data load (also in DataTable.cs).
- CollectionChanged() : use correct column number after new DataColumn was added (differs in case some DataColumn was previosly removed).
- EndEdit() - throw away proposed values only after CheckChildRows() complete.
svn path=/trunk/mcs/; revision=25734
* DataSetInferXmlSchema.cs : added more 16 patterns.
(mostly fails as yet).
* DataSetReadXmlTest.cs : Reverted yesterday's incorrect part.
As for XmlReadMode = Auto, data row should be read.
* DataSetTest.cs : Added Namespace and Prefix tests.
Added WriteDifferentNamespaceSchema().
hmm... WriteXmlSchema() also needs more love :(
svn path=/trunk/mcs/; revision=25733
* mono-debug-debugger.c (mono_debugger_lookup_type): Make a copy
of the type name before passing it to mono_reflection_type_from_name().
svn path=/trunk/mono/; revision=25732
in DataColumn.SetTable() the additional creation of constraint in
DataColumnCollection.Add() is redundant and causes exception - fixed.
svn path=/trunk/mcs/; revision=25731
* ConfigXmlDocument.cs: fixed overloaded Load and added a new one that
sets the file name.
* ConfigurationSettings.cs: use the new Load in ConfigXmlDocument when
loading sections.
* NameValueFileSectionHandler.cs: don't fails if the path for the 'file'
attribute doesn't have a directory.
Closes bug #57244.
svn path=/trunk/mcs/; revision=25728
* XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
only an EntityReference (not navigatable) child. Bug #57248 fixed.
* XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
instead of WriteAttributes() only for MS.NET behavior compatibility.
This change makes SgmlReader usable (due to SgmlReader bug).
svn path=/trunk/mcs/; revision=25718
* WindowsIdentityTest.cs: Don't fail on Windows for some contructor
tests (in NET_1_1). Checking for Windows 2003 Server isn't enough as
the domain must also be Windows 2003 Server based to work. Also skip
the GetRolesViaReflection when running os POSIX systems.
svn path=/trunk/mcs/; revision=25716
* Makefile.am:
* interp.h:
* interp.c: now interprets different VM code
* mintops.h:
* mintops.def:
* mintops.c: definition of new VM code
* transform.c: convert CIL to new VM code
svn path=/trunk/mono/; revision=25712
stream header in the case of unrecognised names
* metadata.c: mono_metadata_encode_value changed to correctly handle
a value of exactly 16k. Also, the expression is changed to use the
same comparison and hex values for easier comprehension.
svn path=/trunk/mono/; revision=25695
* Array.cs: Removed some TODOs in CreateInstance and IndexOf.
* BadImageFormatException.cs: TODO reformat.
* DateTime.cs: Implemented GetDateTimeFormats and GetDateTimeFormats.
* DelegateSerializationHolder.cs: Made class internal.
* Enum.cs: Removed TODO for localization, since this is something that has
to be done for all classes.
* Environment.cs: Removed TODO.
* Exception.cs: Changed ToString to use StringBuilder.
* MonoDummy.cs: Made class internal.
* UnitySerializationHolder.cs: Added support for modules.
svn path=/trunk/mcs/; revision=25692
* XmlDataLoader.cs : Added "never add data rows" mode.
Removed unused code. However, it is temporary fixes to unify
ReadXml() and InferXmlSchema().
* DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
I'll create another XmlDataLoader since there are many problems
such that 1) it is too waste to read the entire xml into an
XmlDocument, 2) it does not handle attributes correctly, and 3) it
must handle "ignored namespaces".
svn path=/trunk/mcs/; revision=25681
* Added DataSetInferXmlSchemaTest.cs.
* DataSetReadXmlTest.cs : Fixed test bogus. When ReadMode is
InferSchema, it should not load any data rows.
* DataSetAssertion.cs : Added AssertDataSet() overroad that takes
relation count.
svn path=/trunk/mcs/; revision=25680
* region.xsd : To make sure that "msdata" prefix has nothing to do
with the actual "msdata namespace", modified namespace URI string.
(This modification never affects on the results under MS.NET.)
* XmlDataDocumentTest.cs : Make sure Read2() loaded the table just fine.
svn path=/trunk/mcs/; revision=25679
* Added XmlSchemaDataImporter.cs (new schema reader).
* DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
for ReadXmlSchema().
Let schema reading work to ReadXmlSchema().
Don't return ReadSchema when argument read mode was DiffGram.
svn path=/trunk/mcs/; revision=25673
* Added missing ChangeLog entry.
* ConstraintCollectionTest.cs :
Ignore some tests that should fail (They also fail under MS.NET).
* DataSetReadXmlSchemaTest.cs :
- Added SingleElementTreatmentDifference() and PrefixedTargetNS().
- Modified UnusedComplexTypesInored() to make sure DataSetName is set.
- Renamed DataSetElementCannotBeReferenced() to
NestedReferenceNotAllowed().
- Modified ReadElemAttrPattern() to LocaleOnRootWithoutIsDataSet()
to test msdata:Locale.
* DataSetTest.cs : Due to mcs bug #57200, csc does not allow
System.Type.GetType(), so modified them all.
svn path=/trunk/mcs/; revision=25672
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage):
fix test on strstr result not that I can see anything that
relies on the result.
svn path=/trunk/mono/; revision=25667
* marshal.c (mono_marshal_get_string_encoding): New helper function.
* marshal.c (mono_marshal_get_native_wrapper): Use the new helper
function to determine which marshalling to use for strings. Fixes
#56965.
* marshal.c (mono_marshal_string_array_to_unicode): Fix warning.
svn path=/trunk/mono/; revision=25662
The change in DataSource prevents throwing ArgumentException while
setting property value to null.
The change in InstantiateItem() prevents NullReferenceException.
svn path=/trunk/mcs/; revision=25658
* Statement.cs (class if): reimplemented Emit based on fall_false.
* Equality.cs: added code generation for != and emit jumping code
only in the case we are at a global expression not statement.
* CodeGenerator.cs (fall_true, fall_false): Check if convertion to
boolean needed. Made emit_to_boolean internal. Added need_convert_to_boolean.
svn path=/trunk/mcs/; revision=25649
* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo through
GetPropertyInfo(). Take into account that a component may not be sited or
not have some services.
* TypeDescriptor.cs: GetTypeFromName(): Added null check for Site property.
Other minor fixes.
2004-04-16 Joerg Rosenkranz <[email protected]>
* TypeDescriptor.cs: Fixed implementation of GetConverter.
This fixes#57137.
svn path=/trunk/mcs/; revision=25616
* threads.c (Sleep): Using div(3) with a negative (when signed)
numerator causes the quotient to be 0 and the remainder to be the
numerator. This feeds a small negative value to nanosleep(3),
which will return immediately and cause a busy wait. Fixes bug
56351.
svn path=/trunk/mono/; revision=25603
'ExplicitInterfaceName' to determine if interface name was
explicitly specified. 'InterfaceType' is not initialized at this time.
(TypeContainer.DefineIndexers): Remove use of temporary list. The
Indexers array is already in the required order. Initialize
'IndexerName' only if there are normal indexers.
(TypeContainer.DoDefineMembers): Don't initialize IndexerName.
(TypeContainer.Emit): Emit DefaultMember attribute only if
IndexerName is initialized.
Fixes#56300.
svn path=/trunk/mcs/; revision=25598
* FileStream.cs: only pass the async flag set to true when opening the
file and AIO is supported by the underlying system. Fixes bug #56883.
svn path=/trunk/mcs/; revision=25597
* exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
original stack trace if an exception is rethrown. Fixes#56782. Oh,
the beauty of fixing the same thing in 5 different files...
svn path=/trunk/mono/; revision=25592
* DecimalFormatter.cs: Don't append a decimal point after the
end of a number. ((decimal)1).ToString("P0") should be "100 %", not
"100. %"
svn path=/trunk/mcs/; revision=25591
Checked delaration of Types, fields, methods as Protected if they are member of Module type
* const.cs: Checked delaration of constructor as Protected if it is member of Module type
* driver.cs: exception number is changed for "Entry point does not exist" exception
svn path=/trunk/mcs/; revision=25589
* HttpUtility.cs: return null in HtmlDecode for null input instead of
throwing an exception. Patch by Jan Jaros (bug #57083).
svn path=/trunk/mcs/; revision=25586
* SoapFormatter.cs, SoapWriter.cs, SoapReader.cs, SoapTypeMapper.cs:
Some parts of the code have been rewritten to make it easier
to understand and maintain.
AssemblyFormat and TypeFormat are implemented.
* ISoapParser.cs, ISoapReader.cs, ISoapWriter.cs, SoapCommon.cs,
ObjectReader.cs, ObjectWriter.cs, SoapParser.cs, SoapTypeMapping.cs:
Removed for the same reasons as above.
* SerializationTest.cs:
New unit test.
svn path=/trunk/mcs/; revision=25570
don't use type name for array types, since we can have different classes
that represent the same array type (for example StringCollection and
string[]).
svn path=/trunk/mcs/; revision=25557
* io-private.h:
* io.c: Rewrite FindFirstFile and FindNextFile using scandir(3)
and fnmatch(3) instead of glob(3). glob() can't cope with being
given filenames containing metachars. This fixes bug 40557.
svn path=/trunk/mono/; revision=25553
* assembly.c: load per-assembly config files.
* icall.c: decrapified code to get the config dir and moved to
mono-config.c.
* image.h, loader.c, loader.h, mono-config.c, mono-config.h: allow
per-assembly config files. When doing a dll map lookup give precedence
to the per-assembly data.
svn path=/trunk/mono/; revision=25541
* XmlSchemaMapper.cs : set parent key and foreign key info to
DataRelation when reading refkey constraints.
Supply constraint name for fkey.
svn path=/trunk/mcs/; revision=25535
attributes.
Fix for #56456.
* attribute.cs (Attribute.Resolve): Check for duplicate named
attributes.
Fix for #56463.
svn path=/trunk/mcs/; revision=25532
* iterators.cs (MarkYield): track whether we are in an exception,
and generate code accordingly. Use a temporary value to store the
result for our state.
I had ignored a bit the interaction of try/catch with iterators
since their behavior was not entirely obvious, but now it is
possible to verify that our behavior is the same as MS .NET 2.0
Fixes 54814
svn path=/trunk/mcs/; revision=25530
* iterators.cs: Avoid creating temporaries if there is no work to
do.
* expression.cs (ArrayAccess.EmitLoadOpcode): If dealing with
Enumerations, use TypeManager.EnumToUnderlying and call
recursively.
svn path=/trunk/mcs/; revision=25529
* XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
mode is Auto, just ignore the schema if there is already schema info.
* DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
svn path=/trunk/mcs/; revision=25528
* DataSetReadXmlTest.cs : Tests were incorrect. They should be done
against new dataset. So just added another sequential read tests.
svn path=/trunk/mcs/; revision=25527
* mono-debug-debugger.h (MonoDebuggerEvent): Removed
MONO_DEBUGGER_EVENT_TYPE_ADDED and MONO_DEBUGGER_EVENT_METHOD_ADDED
and added MONO_DEBUGGER_EVENT_RELOAD_SYMTABS.
* mono-debugger-debugger.c: While the debugger is locked, remember
whether the symbol tables have changes and send one single
MONO_DEBUGGER_EVENT_RELOAD_SYMTABS when releasing the lock.
svn path=/trunk/mono/; revision=25526
* expression.cs (Binary.Emit): treat boolean operator
specially. Added emit_jumping_code.
* CodeGenerator.cs: Added emit_to_boolean. Added fall_true and
fall_false, which will express all boolean expressions and control
flow conditions.
svn path=/trunk/mcs/; revision=25514
support. What started as an innocent 10-line patch turned into a big
witch hunt.
2004-04-14 Miguel de Icaza <[email protected]>
* expression.cs (This.Emit): Use EmitContext.EmitThis to emit our
instance variable.
(This.EmitAssign): Ditto.
* ecore.cs (FieldExpr.Emit): Remove RemapToProxy special
codepaths, we will move all the functionality into
Mono.CSharp.This
(FieldExpr.EmitAssign): Ditto.
This fixes several hidden bugs that I uncovered while doing a code
review of this today.
* codegen.cs (EmitThis): reworked so the semantics are more clear
and also support value types "this" instances.
* iterators.cs: Changed so that for iterators in value types, we
do not pass the value type as a parameter.
Initialization of the enumerator helpers is now done in the caller
instead of passing the parameters to the constructors and having
the constructor set the fields.
The fields have now `assembly' visibility instead of private.
svn path=/trunk/mcs/; revision=25513
* win32structs: made members internal
* FileDialog.cs
* OpenFileDialog.cs
* SaveFileDialog.cs: made methods pure internal
svn path=/trunk/mcs/; revision=25506
* DataSet.cs :
- In MS output, XML declaration looks to have standalone decl (yes).
- ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
- ReadXml(reader, mode)
1) return originally specified mode, instead of (always) Auto.
2) Check empty reader.
3) Check diffgram schema and content separately.
4) When diffgram exists, remaining (the same-level) contents
won't be consumed.
5) Similar fact should be applied, but somewhat different.
InferSchema and IgnoreSchema just skips, Fragment reads both
schema and content, others just reads schema.
- Removed unused code.
* XmlDataLoader.cs :
- Read() should skip in some ReadMode.
- Don't compare schema element name as case-insensitive (well,
should schemas be checked here?)
- Avoided BuildDocument() not to create confusing DataSet
document element.
- Don't add any tables when reader has single element.
* XmlDiffLoader.cs :
When target table was not found, MS.NET doesn't raise an error.
* XmlSchemaMapper.cs :
When XmlSchema.Read() left xml reader at </xs:schema>, read once.
svn path=/trunk/mcs/; revision=25494
* UTF8EncodingTest.cs: Ajusted test 3.3.6 and 3.3.7 because MS accept
invalid UTF8 (when it shouldn't) and Mono doesn't. Both case are now
accepted by the unit tests.
svn path=/trunk/mcs/; revision=25486
* UTF8EncodingTest.cs: Added 70 new unit tests from UTF-8-test.txt
(available from http://www.cl.cam.ac.uk/~mgk25/). Tests are adapted
so MS implementation pass them all.
svn path=/trunk/mcs/; revision=25476
* DesignerAttribute.cs: Fixed property TypeId.
* EventDescriptorCollection.cs: Added internal constructor. Added new
method Filter that removes events that do not have the specified
attributes.
* MemberDescriptor.cs: Minor fixes.
* PropertyDescriptor.cs: Implemented some missing methods.
* PropertyDescriptorCollection.cs: Added internal constructor. Implemented
Sort methods.
* ReferenceConverter.cs: Removed some TODOs.
* SyntaxCheck.cs: Implemented CheckMachineName and CheckPath.
* TypeDescriptor.cs: Implemented most of missing methods.
svn path=/trunk/mcs/; revision=25473
* monoburg.c, monoburg.h, monoburg.y: changed the grammar so that
the same emit code can be easily associated with multiple rules.
Coalesce identical emit functions to reduce code size (10 KB - 10 % -
with the current unchanged x86 JIT rules).
svn path=/trunk/mono/; revision=25460
* DataSet.cs :
- InferXmlSchema(): Throw explicit NotImplementedException now.
- Don't put XML declaration everywhere. Write just for filename arg.
- xmlns="" should not be written. Maybe WebService problem is
because default namespace is overwritten. This patch will keep
the WS problem away and actually fixes some unit tests (i.e. use
explicit String.Empty for null namespace in WriteStartElement()).
- MoveToContent() should always be called, not only when
LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
- Even XmlReadMode is DiffGram, reader might not be "diffgram"
element. As to MSDN, diffgram does not contain schema.
svn path=/trunk/mcs/; revision=25448
* security.c|h: Removed GetUserName as glib g_get_user_name does a
better (portability) job. Added ImpersonateLoggedOnUser and
RevertToSelf.
svn path=/trunk/mono/; revision=25444
* Console.cs: Use new codepage setup.
2004-04-13 Miguel de Icaza <[email protected]>
* Encoding.cs: Use new internal codepage setup.
svn path=/trunk/mcs/; revision=25434
* appdomain.c: Pass arguments to the bootstraping exceptions to
minimize JITed methods at boot
* metadata.c (mono_exception_from_name_two_strings): Allow for the
second string to be null.
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage):
Change the protocol to minimize the JIT methods at startup. Now
it Returns the internal codepage, if the value of "int_code_page"
is 1 at entry, and we can not compute a suitable code page
number, returns the code page as a string.
2004-04-13 Miguel de Icaza <[email protected]>
* inssel-x86.brg (reg): Add new rules for add, sub and mul that
can use the memory directly.
* cpu-pentium.md: Update documentation from a post from Zoltan.
add x86_add_membase, x86_sub_membase, x86_mul_membase
svn path=/trunk/mono/; revision=25433
* mini-ppc.c: Remove unused definitions FLOAT_REGS and
GENERAL_REGS they were also hardcoded for all PPC ports.
(add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
Remove hard-coded limit for floating point registers, use
PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
Notice that in MacOS X calling conventions you can fit a lot more
floating point values in registers, so I should update the PInvoke
test to excercise the passing of floating point values on the
stack (currently broken).
svn path=/trunk/mono/; revision=25429
* CapiContext.cs: Better support to create key container (when non
existing). Added machine key container support. FxCop-ized.
* CapiHash.cs: FxCop-ized for CLS compliance and GC awareness.
* CapiRandomNumberGenerator.cs: Now use properties (not fields).
* CryptoAPI.cs: Changed some uint to int for easier CLS compliance.
svn path=/trunk/mcs/; revision=25426
* ThreadTest.cs: Removed [Ignore] on WindowsPrincipal test. Adjusted
CurrentPrincipal tests to work on both Windows and Linux.
svn path=/trunk/mcs/; revision=25400
* WindowsIdentityTest.cs: Adjusted unit tests to run on both Windows
and Linux (or any POSIX compliant OS).
* WindowsPrincipalTest.cs: Removed [Ignore] from some tests.
svn path=/trunk/mcs/; revision=25398
* WindowsIdentity.cs: Implemented for both Windows and Linux. Fix bug
#52532. Class is only missing serialization bits.
* WindowsImpersonationContext.cs: Implemented for both Windows and
Linux. Fix bug #52532.
* WindowsPrincipal.cs: Implemented for both Windows and Linux. Fix
bug #52532.
svn path=/trunk/mcs/; revision=25395
* icall.c (ves_icall_Type_GetPropertiesByName): Avoid duplicate
properties when only the set accessor is overriden. Fixes#55874.
svn path=/trunk/mono/; revision=25394
if the thread already has the lock. Added readyWaitingReaders variable to
keep track of threads ready to get the reader lock.
svn path=/trunk/mcs/; revision=25390
* ConstraintCollectionTest.cs - Added Testcase for UniqueConstraint constructor
to be used with the AddRange method
svn path=/trunk/mcs/; revision=25384
* Modified UniqueConstraint.cs, ConstraintCollection.cs, DataTable.cs for
* special constructor in UniqueConstraint.cs
svn path=/trunk/mcs/; revision=25382
* Makefile.am (mcs_topdir): New variable.
(mcs-tree-safe-build,mcs-rest,remove-binaries): Work in non-srcdir
build.
(xinstall-runtime): Likewise. Use $(libgc_dir) directly, don't
grep for 'libgc'.
(fullbuild): Make ordering dependencies explicit.
svn path=/trunk/mono/; revision=25380
* XmlDataDocument.cs:
Load() should not read xml multiple time nor expect BaseURI (and it
indicates the resource location is readable).
Simplified event handling logic, and fixed missing event removal.
Quick hack to avoid new XmlDataDocument(DataSet ds).Load ().
Enabled CreateNavigator() that was commented out.
svn path=/trunk/mcs/; revision=25376
* BinaryReaderTest.cs: Changed series of bytes in
ReadDecimal to be a cleaner representation of a real
decimal, as was not a technically correct decimal.
Do we need to add some more tests for what we do with values such as those
in the old test case? With the old code, you could get a single value that
was not equal to its lexical representation. Not ideal.
> d is -18295873486192640
> d != -18295873486192640
svn path=/trunk/mcs/; revision=25372
* TimeZoneTest.cs: Make pass when in "GMT".
This probably isn't the same as MS.NET, but the CET doesn't look like it will
be either. Where does one alter the strings/dates we see?
svn path=/trunk/mcs/; revision=25371
* Compiler.cs : When BaseURI is an empty string, it should not try to
create Uri instance. This will fix bug #56832, but not sure.
* XslFunctions.cs : for XsltDocument.Resolve(), did the same.
* HtmlEmitter.cs : Environment.NewLine was incorrectly used (it
should be the TextReader's NewLine).
* MSXslScriptManager.cs : Should raise an error when the prefix which
was specified by "implements-prefix" was not found.
svn path=/trunk/mcs/; revision=25365
* SqlBoolean.cs : Allow "0" and "1" on Parse(). Allow SqlString.Null
in conversion.
* SqlString.cs : CompareOption should not be None.
svn path=/trunk/mcs/; revision=25352
lock(this) when entering the rwlock to avoid a deadlock.
* ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
is not empty (even if state==0).
svn path=/trunk/mcs/; revision=25332
* expression.cs (Argument.Resolve): Check if fields passed as ref
or out are contained in a MarshalByRefObject.
* typemanager.cs, rootcontext.cs: Add System.Marshalbyrefobject as
another compiler type.
svn path=/trunk/mcs/; revision=25331
* NumberFormatInfo.cs : All GetXXXGroupSizes() should not return
internal array. Return clone as MS.NET does.
There still looks somewhere breaking CurrentInfo.
svn path=/trunk/mcs/; revision=25326
* class.cs (Indexer.Define): use the new name checking method.
Also, return false on an error.
* cs-tokenizer.cs (IsValidIdentifier): Checks for a valid identifier.
(is_identifier_[start/part]_character): make static.
svn path=/trunk/mcs/; revision=25307
* expression.cs (Binary.ResolveOperator): Do no append strings
twice: since we can be invoked more than once (array evaluation)
on the same concatenation, take care of this here. Based on a fix
from Ben (bug #56454)
svn path=/trunk/mcs/; revision=25306
Fixes for bug 56744
* System/Convert.cs: Allow + signs in strings for ToInt32, and
- if it is base 10.
* ConvertTest.cs: Tests for Convert.ToInt32(string, base), with
signs on the strings.
svn path=/trunk/mcs/; revision=25254
* chktrust.1: Added some details and documented the CAB format
restriction (not supported).
* makecert.1: Added missing options, details for existing options and
removed duplicate options.
* setreg.1: Minor changes.
* signcode.1: Added some details and documented the CAB format
restriction (not supported). Also added a warning when using both a
strongname and an Authenticode signature on a assembly.
svn path=/trunk/mono/; revision=25253
* Npgsql/NpgsqlDataAdapter.cs: Fixed DataAdapter to raise the RowUpdatin
g and RowUpdated events. This also fixes some issues in gborg 710 bug. This modi
fication may have broken CommandBuilder support. Working on that.
svn path=/trunk/mcs/; revision=25251
* certmgr.1: Update the man file to specifiy the current location and
format of the certificate files. Also added a WARNING that this info
can change anytime and that the only safe way to manipulate the stores
are by using the certmgr tool.
svn path=/trunk/mono/; revision=25249
* BitConverterLE.cs: added which always does
little endian conversion
* StrongName.cs: Use BitConverterLE
* ASN1Convert.cs: Use BitConverterLE
svn path=/trunk/mcs/; revision=25235
thread, not the one of the thread that created the instance.
* Comparer.cs: Added DefaultInvariant property and missing constructor.
Use the specified culture info to compare strings.
svn path=/trunk/mcs/; revision=25233
Removed unneded TODOs.
* ComponentResourceManager.cs: Implemented ApplyResources.
* EventDescriptorCollection.cs: Implemented several missing methods.
* LicFileLicenseProvider.cs: Implemented.
* MemberDescriptor.cs: Implemented some missing methods. Handle correctly
the creation of the Attribute list.
* TypeConverter.cs: Use null as default value for attribute array parameter.
svn path=/trunk/mcs/; revision=25229
* locales.c:
ves_icall_System_Globalization_CultureInfo_construct_number_format
Fix g_assert so it compiles on fussier compilers re int/ptr
mismatch
svn path=/trunk/mono/; revision=25225
* tramp-ppc.c (create_trampoline_code): Added
JUMP_TRAMPOLINE_SIZE.
(ppc_magic_trampoline): Follow the pattern from
x86_magic_trampoline: if code is set to zero, return.
(create_trampoline_code): Always pass MonoMethod to the jump
trampoline, before it was passing a null.
(mono_arch_create_jump_trampoline): Implement the jump stub, could
share the code with mono_arch_create_jit_trampoline.
* mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
implemented.
(mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
implemented.
* cpu-g4.md: Added length for jmp instruction, the worst case
scenario is 92 bytes (4 mandatory bytes, potential 19 registers
for save_lmf).
svn path=/trunk/mono/; revision=25224
* codegen.cs: Fix another case where CS1548 must be reported (when
delay-sign isn't specified and no private is available #56564). Fix
loading the ECMA "key" to delay-sign an assembly. Report a CS1548
error when MCS is used on the MS runtime and we need to delay-sign
(which seems unsupported by AssemblyBuilder - see #56621).
svn path=/trunk/mcs/; revision=25220
Made those serializable-compatible with MS.NET: modified fields names to
match MS.NET ones, and in CultureInfo added a flag to control when a
deserialized instance need to be initialized.
svn path=/trunk/mcs/; revision=25218
* socket-io.h:
* socket-io.c: Don't set SO_REUSEADDR on windows. Fixes bug
53992. Also rearrange the code so that the internal calls return
an error value and exceptions are thrown from managed code.
* icall.c: Add type info to the socket icalls.
svn path=/trunk/mono/; revision=25216
* expression.cs (Binary.ResolveOperator): Added special case for
Equality/Inequality between a type parameter and a null literal.
svn path=/trunk/mcs/; revision=25188
* reflection.h
(MonoReflectionGenericParam): Added `has_reference_type' and
`has_value_type' fields.
* reflection.c (mono_image_get_generic_param_info): Encode the
correct flags if we have the `class' or `struct' constraint.
svn path=/trunk/mono/; revision=25174
* GenericTypeParameterBuilder.cs
(Mono_SetReferenceTypeConstraint): New public method.
(Mono_SetValueTypeConstraint): New public method.
svn path=/trunk/mcs/; revision=25173
* generic.cs (SpecialConstraint): New public enum.
(Constraints.Resolve): Added support for the `class' and `struct'
constraints.
* cs-parser.jay (type_parameter_constraint): Added support for the
`class' and `struct' constraints.
svn path=/trunk/mcs/; revision=25172
* CompareInfo.cs: Get ICU name from a cultureinfo object instead
of looking it up in the culture map.
* RegionInfo.cs: Dont check if the LCID is neutral unless its not
found in the switch. Avoids an icall.
svn path=/trunk/mcs/; revision=25160
* icall.c: Add new icalls for contructing locales.
* locales.c: Construct CultureInfo objects from lookup tables instead of using ICU.
* locales.h: Declare new culture info construction methods.
* object.h: Add new fields used to avoid the CultureMap to
MonoCultureInfo.
* culture-info.h: Definition of structs used in the culture info
tables.
* culture-info-tables.h: Autogenerated tables that contain culture
info data. This file was generated with the locale-builder tool.
* appdomain.c: Incement corlib version number.
svn path=/trunk/mono/; revision=25159
* appdomain.c: (mono_runtime_init) move mono_thread_init
to before mono_object_new calls so critical sections
are initialized before use.
svn path=/trunk/mono/; revision=25158
* mini.c: Only set bblock->real_offset when adding a new bblock, and
before each IL instruction.
* mini.c (CEE_BOX): Fix warnings.
svn path=/trunk/mono/; revision=25154
* cs1606.pub: New file. ECMA key.
* cs1606.cs: New file. This is the same problem as cs1548-3.cs but CSC
report a different error number when the ECMA key is being used.
svn path=/trunk/mcs/; revision=25152
* System/Environment.cs:
(ExpandEnvironmentVariables): on windows, env. vars. are case
insensitive.
* Test/System/EnvironmentTest.cs: use uppercase for PATH. Added test
to check the expected substitutions.
svn path=/trunk/mcs/; revision=25151
* generic.cs
(Constraints.InterfaceConstraints): New public property.
(Constraints.Types): Make this property public
(TypeParameter): Implement IMemberContainer.
(TypeParameter.Define): Take a `GenericTypeParameterBuilder'
instead of a TypeBuilder/MethodBuilder; pass the interface
constraints to TypeManager.AddTypeParameter().
(TypeParameter.DefineType): Just take an EmitContext and no
TypeBuilder/MethodBuilder. Use the new public API.
* typemanager.cs (TypeManager.AddTypeParameter): Added
`TypeExpr[]' argument; add the interfaces to the
`builder_to_ifaces' hash.
(TypeManager.LookupMemberContainer): For
GenericTypeParameterBuilders, get the TypeParameter from the
`builder_to_type_param'.
svn path=/trunk/mcs/; revision=25144
* icall.c
(ves_icall_TypeBuilder_define_generic_parameter): Removed.
(ves_icall_MethodBuilder_define_generic_parameter): Removed.
(ves_icall_MonoGenericParam_initialize): Removed.
(monogenericparam_icalls): Removed.
(generictypeparambuilder_icalls): Added new table for
System.Reflection.Emit.GenericTypeParameterBuilder.
* reflection.c
(mono_reflection_define_generic_parameter): Removed.
(mono_reflection_initialize_generic_parameter): This is now called
from GenericTypeParameterBuilder's .ctor.
svn path=/trunk/mono/; revision=25143
* rootcontext.cs: Add new types to the boot resolution.
* ecore.cs (TypeExpr.CanInheritFrom): Inheriting from
MulticastDelegate is not allowed.
svn path=/trunk/mcs/; revision=25138
* typemanager.cs: Add new types to lookup: System.TypedReference
and ArgIterator.
* paramter.cs (Parameter.Resolve): if we are an out/ref parameter,
check for TypedReference or ArgIterator, they are not allowed.
* ecore.cs (BoxedCast): Set the eclass to ExprClass.Value, this
makes us properly catch 1510 in some conditions (see bug 56016 for
details).
svn path=/trunk/mcs/; revision=25136
* class.c (mono_class_init): Don't inflate nested classes in a
generic instance.
(mono_type_get_name_recurse): Include the generic arguments for
generic instances and generic type declarations.
(inflate_generic_type): Correctly inflate MONO_TYPE_SZARRAY.
(_mono_class_get_instantiation_name): Removed.
(mono_class_create_generic): Always use `gklass->name' as our name.
* class.h (MonoGenericInst): Removed `nested_in', and `nested'.
* icall.c (ves_icall_MonoGenericInst_GetDeclaringType): Removed.
(ves_icall_MonoGenericInst_GetNestedTypes): Removed.
(ves_icall_MonoMethod_GetGenericParameters): Renamed to
ves_icall_MonoMethod_GetGenericArguments() and correctly handle
closed generic methods here.
* reflection.c
(mono_reflection_generic_inst_get_nested_types): Removed.
(inflate_mono_method): Copy the generic parameters from the
MonoMethodHeader into out MonoGenericMethod.
svn path=/trunk/mono/; revision=25132
* MethodBase.cs
(MethodBase.GetGenericParameters): Renamed to GetGenericArguments().
* MonoGenericInst.cs (MonoGenericInst.DeclaringType): Removed.
(MonoGenericInst.GetNestedTypes): Just call
`generic_type.GetNestedTypes (bf)' here.
* MonoMethod.cs (MonoMethod.ToString): If we're a generic method,
include the type arguments.
svn path=/trunk/mcs/; revision=25131
* class.cs
(MethodCore.GenericMethod): Moved this field here from Method.
(MethodCore.IsDuplicateImplementation): Take the number of type
parameters into account if we're a generic method.
* expression.cs (Invocation.InferTypeArguments): Don't return true
if `arguments' is null; we still need to check whether we actually
don't need to infer anything in this case.
(MemberAccess): Merged the functionality from GenericMemberAccess
into this class.
* generic.cs (GenericMemberAccess): Removed.
svn path=/trunk/mcs/; revision=25130
constructors.
(ConvertPoints): New helper function. Converts a Point array to a
PointF array.
* gdipFunctions.cs (GdipCreatePath2): Fixed signature.
* pie.cs: Save to PNG, instead of BMP.
svn path=/trunk/mcs/; revision=25125
* row-indexes.h
(MONO_GENERICPARAM_DEPRECATED_CONSTRAINT): Removed.
* metadata.c (GenericParamSchema): Removed "DeprecatedConstraint".
* reflection.c (build_compressed_metadata): If we have any entries
in the GenericParam, MethodSpec or GenericParamConstraint tables,
set the header version to 1.1.
svn path=/trunk/mono/; revision=25123
* CryptoConvert.cs: Add private methods to always
handle data as little endian (GetBytesLE, ToInt32LE, ToUInt32LE).
svn path=/trunk/mcs/; revision=25118
* class.c (mono_class_init): If we're a generic instance,
initialize our nested classes, too.
(_mono_class_get_instantiation_name): Deal with the new `!%d'
suffix.
svn path=/trunk/mono/; revision=25114
* cs1548.pub: New file. Strongname file with only the public key.
* cs1548-3.cs: New file to test signing with a strongname containing
only the public key.
svn path=/trunk/mcs/; revision=25106
constructor that only takes one string as parameter to construct the
listener. The name is set using the Name property, not the constructor.
* TextWriterTraceListener.cs: In Write*, do nothing if no writer was
provided.
svn path=/trunk/mcs/; revision=25105
reading bmp files is not yet implemented, and only png files can be
written. Support for the rest will show up in the next few days.
* gdipFunctions.cs: Added stream delegate helpers for
stream loading/saving on linux
* Image.cs, Bitmap.cs: Converted to call into GDIPlus for
loading/saving image data.
* BitmapData.cs: synced up data structure with libgdiplus
* BmpCodec.cs, JPEGCodec.cs, PNGCodec.cs: Removed codec impls,
left just codecinfo getters; the codecs are in libgdiplus
* ImageCodecInfo.cs: removed encode/decode delegates
svn path=/trunk/mcs/; revision=25083
* DTDReader.cs : In ProcessDTDSubset(), 1)error message was
generated with incorrect stream character, 2)entity nest check
should not depend on line info which might not be supplied, 3)
empty PE should be skipped.
* XmlParserInput.cs : use index for StringBuilder instead of calling
Remove() many times. This highly optimizes DTD parser.
* XmlAttribute.cs : removed commented code.
* XmlEntity.cs : removed unused field.
svn path=/trunk/mcs/; revision=25070
* decl.cs (MemberCore): For generic classes, interfaces and
structs, `Name' now includes the number of type parameters
("Stack!1.Node!1").
(DeclSpace.FindType): Removed the `num_type_args' argument; we now
encode the number of type arguments in the type name.
* expression.cs (Expression.MemberLookup): Removed the
`num_type_args' argument; we now encode the number of type
arguments in the type name.
* ecore.cs (SimpleName): Encode the number of type arguments in
the type name itself.
* generic.cs (ConstructedType): Likewise.
* tree.cs (Tree.RecordDecl): Take a `string' instead of a
`MemberName'; we now include the number of type parameters in the
type name.
* typemanager.cs (TypeManager.CheckGeneric): Removed.
(TypeManager.MemberLookup): Removed the
`num_type_args' argument; we now encode the number of type
arguments in the type name.
svn path=/trunk/mcs/; revision=25067
for a thread, not only whether it has locks or not.
* LockQueue.cs: Added property for checking if a thread is waiting in
the queue. Wait now returns a boolean that set to false on timeout
expiration.
* ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
The main change is that now it keeps a reader lock count for each
thread. This is needed since methods like ReleaseLock or
UpgradeToWriterLock need to return a per-thread status in LockCookie.
Also added support for recursive writer-lock requests.
svn path=/trunk/mcs/; revision=25059
* inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
checks.
(MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
index.
(OP_GETCHR): use the above
(CEE_LDELEMA): use the above.
* inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
version of the generic impl.
(MONO_EMIT_BOUNDS_CHECK_IMM): the same
(CEE_LDELEMA): use the above.
svn path=/trunk/mono/; revision=25058
* attribute.cs (IsClsCompliant): Fixed problem with handling
all three states (compliant, not-compliant, undetected).
svn path=/trunk/mcs/; revision=25039
* decl.cs:
* expression.cs:
* pending.cs:
Several error messages and their numbers are changed in all the above four classes
svn path=/trunk/mcs/; revision=25036
* Tds.cs: Added base implementation for ITds.Reset.
* Tds70.cs: Implemented ITds.Reset().
* TdsConnectionPool.cs: Implemented connection pool that can be reused by
all Tds clients.
svn path=/trunk/mcs/; revision=25028
* DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
only when they are required.
* DTDReader.cs,
XmlParserInput.cs : raw tag string now don't have to be kept, while
it cost so much. Removed unused code. 20% to 30% memory got saved.
* XmlNotation.cs : removed unused code.
* XmlTextReader.cs : Removed unused code. ReadString() now uses
XmlReader's internal method. Fixed BaseURI to be conformant with
W3C XML InfoSet and (subsequently) xml:base specification (i.e.
reflect xml:base attribute correctly).
svn path=/trunk/mcs/; revision=25026
* XmlAttribute.cs : get_Value should return all children's value.
* XmlCharacterData.cs : DOM's substring does not raise an error when
startIndex + count exceeds the length of Data.
* XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
does not replace another named item.
* XmlElement.cs : with related to the XmlNamedNodeMap change,
SetAttributeNode() is required to fix as to return null when it does
not replace existing attribute.
svn path=/trunk/mcs/; revision=25018
Changed default access modifier of method to Public
Bug fixed to get NotOverridable modifier working
* decl.cs: Changed exception messages and numbers
svn path=/trunk/mcs/; revision=25008
* WebConfigurationSettings.cs: "/" is the virtual root directory of
the application. This fixes a bug reported by Vlad that caused
configuration error because files were read twice when there's an
application different from "/" defined.
svn path=/trunk/mcs/; revision=25007
* decl.cs (MemberCore.ctor): Take a MemberName instead of a sting.
(MemberCore.MemberName): Moved here from MemberBase.
(DeclSpace.SetParameterInfo): Just take the constraints as an
ArrayList; we already have the type parameters in our
`MemberName'; also do the CS0080 reporting here.
* cs-parser.jay (struct_declaration): Use `member_name' instead of
`IDENTIFIER opt_type_parameter_list'; when constructing our
`MemberName', it'll already include our type parameters.
(class_declaration, interface_declaration): Likewise.
(delegate_declaration): Likewise.
(MakeName): Take a MemberName and return a MemberName.
The following two changes are required to avoid shift/reduce conflicts:
(member_name): Don't include a TypeName anymore; ie. this is now
just 'IDENTIFIER opt_type_parameter_list'.
(property_declaration, event_declaration): Use a
`namespace_or_type_name' instead of a `member_name'.
svn path=/trunk/mcs/; revision=25001
* decl.cs (MemberName): Renamed to `TypeName' and created a new
`MemberName' class.
(TypeName): Formerly known as MemberName.
* namespace.cs (NamespaceEntry.UsingAlias): Take a `TypeName'
instead of a `MemberName'.
* cs-parser.jay (namespace_or_type_name): Create a TypeName.
(member_name): New rule; create a MemberName.
svn path=/trunk/mcs/; revision=24999
2004-03-31 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Changed DefineChar to allow retrieval of
multibyte characters (i.e. german umlauts).
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
OciDefineHandles are now disposed in the
Dispose function.
svn path=/trunk/mcs/; revision=24996
* ecore.cs (IAlias): New public interface.
(TypeExpr, TypeExpression): Implement IAlias.
(TypeAliasExpression): New public class.
* namespace.cs (Namespace): Implement IAlias.
(Namespace.Lookup): Return an IAlias instead on an object.
(Namespace.DefineName): Take an IAlias instead of an object.
(NamespaceEntry.AliasEntry.Resolve): Return an IAlias instead of
an object.
(NamespaceEntry.UsingAlias): Take a Membername instead of an
Expression.
(NamespaceEntry.LookupAlias): Return an IAlias instead on an
object.
(NamespaceEntry.Lookup): Likewise.
* rootcontext.cs (RootContext.LookupType): Return a TypeExpr
instead of a Type.
* decl.cs (DeclSpace): Implement IAlias.
(DeclSpace.LookupAlias): Return an IAlias instead of a string.
* generic.cs (ConstructedType): Improved error checking.
svn path=/trunk/mcs/; revision=24980
* config.h.in: added HAVE_GETPWUID_R
* configure.in: check for getpwuid_r.
* mono/io-layer/security.c: use getpwuid_r if available. This one is
thread-safe.
svn path=/trunk/mono/; revision=24977
* Makefile.am: Added security.c|h.
* icall.c: Added icall for get_UserName;
* security.c: New file for security related icalls. Added function
get_UserName for System.Environment (fix#56144).
* security.h: New. Header file for security.c
svn path=/trunk/mono/; revision=24971
* Makefile.am: Added security.c|h.
* security.c: New file for security related functions. Added function
GetUserName to fix#56144.
* security.h: New. Header file for security.c
* wapi.h: Added include for security.h
svn path=/trunk/mono/; revision=24970
* icall.c: Deleted the icalls that were obsoleted some time ago
by the ICU string code, and which were mixed into the icall
rearranging. Fixes bug 55969.
* string-icalls.h:
* string-icalls.c: Deleted the code that those icalls reference.
svn path=/trunk/mono/; revision=24969
* Equality.cs: Moved the Emit and Resolve code here.
* jscript-lexer-parser.g: Build a Equality object instead of a
Binary object for equality_expr.
* expression.cs: moved equality oeprators (resolve and IL gen) to
Equality.Emit and Equality.Resolve.
svn path=/trunk/mcs/; revision=24959
* DataTable.cs : Included code to copy extended properties in CopyProperties() method
* DataTable.cs : CaseSensitive and Locale properties cannot be changedif the table belongs to a data relation
* DataTable.cs : Prefix property should not contain any specialcharacters
* DataTable.cs : Added code to BeginLoadData and EndLoadData methods tohandle tables not belonging to any data set
* DataTable.cs : Implemented an private property EnforceConstraints to enforceconstraints in EndLoadData when table is not part of any dataset
* DataTable.cs : Removed TODO tags for Clone (), Copy (), EndLoadData() and GetChanges ()
* DataTable.cs : Clear method should throw a NotSupportedException when the table is part of a DataSet bound to a XmlDataDocument
* DataSet.cs : Clear method should throw a NotSupportedException when DataSet is bound to a XmlDataDocument
* XmlDataDocument.cs : Included code to indicate to the DataSet that it is bound to this particular XmlDataDocument
* DataTableTest.cs: Included tests for the changes made in DatTable.cs
svn path=/trunk/mcs/; revision=24958
* convert.cs: Added type parameter conversions.
* ecore.cs
(UnboxCast.Emit): Emit an `unbox.any' for type params.
(ClassCast.Emit): If the source type is a type parameter, box it.
If the target type is a type parameter, emit an `unbox.any'
instead of a `classcast'.
svn path=/trunk/mcs/; revision=24952
* mini.c (handle_box): New static function; moved the
implementation of CEE_BOX here.
(mono_method_to_ir): Added `constrained_call' variable.
(mono_method_to_ir:CEE_CONSTRAINED_): Set it.
(mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
mono_method_get_constrained() to get the method.
svn path=/trunk/mono/; revision=24939
* loader.c (find_method): Added an optional `MonoClass *ic'
argument to search in a specific interface.
(mono_get_method_constrained): New public function.
svn path=/trunk/mono/; revision=24937
* expression.cs (Invocation.EmitCall): If we're invoking a method
on a type parameter, use the new `Constrained' prefix opcode.
svn path=/trunk/mcs/; revision=24929
* generic.cs (ConstructedType.CheckConstraints): Use
Convert.ImplicitStandardConversionExists(); user-defined implicit
conversions are not allowed according to the spec.
svn path=/trunk/mcs/; revision=24921
* mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
(MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
(mono_method_to_ir): We don't need these macros anymore since
mono_class_get_full() already takes care of it.
svn path=/trunk/mono/; revision=24920
* class.c (mono_class_inflate_generic_type): Moved the
functionality into a new static inflate_generic_type() which
returns NULL if it didn't do anything. Only increment the
`mono_stats.inflated_type_count' if we actually inflated
something.
(mono_class_get_full): Check the classes type to see whether we
need to inflate it; also inflate MONO_TYPE_(M)VAR.
svn path=/trunk/mono/; revision=24919
Patch from Marek Safar, thanks a lot Marek for working so hard in getting
every detail right.
2004-03-30 Marek Safar <[email protected]>
* attribute.cs (Attribute): Location is now public.
(Resolve): Store resolved arguments (pos_values) in attribute class.
Attribute extractors (now GetClsCompliantAttributeValue) can reuse them.
(GetClsCompliantAttributeValue): New method that gets
CLSCompliantAttribute value.
(GetClsCompliantAttribute): Returns CLSCompliantAttribute for DeclSpace
if exists else null.
(AttributeTester): New class for CLS-Compliant verification routines.
* class.cs (Emit): Add CLS-Compliant verification.
(Method.GetSignatureForError): Implemented.
(Constructor.GetSignatureForError): Implemented
(Constructor.HasCompliantArgs): Returns if constructor has
CLS-Compliant arguments.
(Constructor.Emit): Override.
(Construcor.IsIdentifierClsCompliant): New method; For constructors
is needed to test only parameters.
(FieldBase.GetSignatureForError): Implemented.
(TypeContainer): New member for storing base interfaces.
(TypeContainer.FindMembers): Search in base interfaces too.
* codegen.cs (GetClsComplianceAttribute): New method that gets
assembly or module CLSCompliantAttribute value.
(ResolveClsCompliance): New method that resolve CLSCompliantAttribute
for assembly.
(ModuleClass.Emit): Add error 3012 test.
* const.cs (Emit): Override and call base for CLS-Compliant tests.
* decl.cs (ClsComplianceValue): New enum that holds CLS-Compliant
state for all decl types.
(MemberCore.Emit): Emit is now virtual and call VerifyClsCompliance
if CLS-Compliant tests are required.
(IsClsCompliaceRequired): New method. Analyze whether code
must be CLS-Compliant.
(IsExposedFromAssembly): New method. Returns true when MemberCore
is exposed from assembly.
(GetClsCompliantAttributeValue): New method. Resolve CLSCompliantAttribute
value or gets cached value.
(HasClsCompliantAttribute): New method. Returns true if MemberCore
is explicitly marked with CLSCompliantAttribute.
(IsIdentifierClsCompliant): New abstract method. This method is
used to testing error 3005.
(IsIdentifierAndParamClsCompliant): New method. Common helper method
for identifier and parameters CLS-Compliant testing.
(VerifyClsCompliance): New method. The main virtual method for
CLS-Compliant verifications.
(CheckAccessLevel): In one special case (System.Drawing) was TypeBuilder
null. I don't know why is null (too many public members !).
(GetClsCompliantAttributeValue). New method. Goes through class hierarchy
and get value of first CLSCompliantAttribute that found.
delegate.cs (Emit): Override and call base for CLS-Compliant tests.
(VerifyClsCompliance): Override and add extra tests.
* driver.cs (CSCParseOption): New command line options (clscheck[+|-]).
clscheck- disable CLS-Compliant verification event if assembly is has
CLSCompliantAttribute(true).
* enum.cs (Emit): Override and call base for CLS-Compliant tests.
ApllyAttribute is now called in emit section as in the other cases.
Possible future Emit integration.
(IsIdentifierClsCompliant): New override.
(VerifyClsCompliance): New override.
(GetEnumeratorName): Returns full enum name.
* parameter.cs (GetSignatureForError): Implemented.
* report.cs (WarningData): New struct for Warning message information.
(LocationOfPreviousError): New method.
(Warning): New method. Reports warning based on the warning table.
(Error_T): New method. Reports error based on the error table.
* rootcontext.cs (EmitCode): Added new Emit(s) because CLS-Compliant
verifications are done here.
* tree.cs (RecordDecl): Used new LocationOfPreviousError method.
* typemanager.cs (cls_compliant_attribute_type): New member thath holds
CLSCompliantAttribute.
(all_imported_types): New member holds all imported types from other
assemblies.
(LoadAllImportedTypes): New method fills static table with exported types
from all referenced assemblies.
(Modules): New property returns all assembly modules.
svn path=/trunk/mcs/; revision=24916
represented with DBNull instances. Deal with this.
* Mono.Data.SybaseTypes/SybaseNullValueException.cs: Use a more clarifying
error message.
svn path=/trunk/mcs/; revision=24905
classes can override to perform class specific refreshing.
* FileInfo.cs: Refresh existence flag when Refresh is called.
* TextWriter.cs: Applied patch by Benjamin Jemlich for bug #52512.
The method Write(char) should do nothing by default.
svn path=/trunk/mcs/; revision=24901
it so we can set assembly ref attributes.
* ExternTable.cs: Make the ExternAssembly public so that its
attributes can be set.
svn path=/trunk/mcs/; revision=24898
* XslVariable.cs : When evaluated variable was BaseIterator, its
iterated nodes must be collected in prior. Otherwise, it might be
evaluated later with inconsistent level of variable stack in
XslTransformProcessor. This fixes bug #55876.
svn path=/trunk/mcs/; revision=24895
* BitwiseBinary.cs: added constructor for building it according to
JSToken enum. return a new object on EvaluateBitwiseBinary (this
needs a real implementation).
* expression.cs: added code for evaluation of bitwise operators at emit_op_eval.
svn path=/trunk/mcs/; revision=24886
* aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
use @function (as doesn't accept #function here) and check the return
value of system and stop if fails.
svn path=/trunk/mono/; revision=24884
* DataColumn.cs : Setting Caption to null sets it to the empty string
(ms.net behaviour, testcase is in DataColumnTest).
* DataRow.cs : Evaluate DataColumn.Expression when such a column's value is
requested.
svn path=/trunk/mcs/; revision=24879
* StrongName.cs: Update to include new static method that can be
called from the runtime to validate strongname signatures.
Refactored the existing class to reduce code duplication.
svn path=/trunk/mcs/; revision=24868
* StrongName.cs: Update to include new static method that can be
called from the runtime to validate strongname signatures.
Refactored the existing class to reduce code duplication.
* StrongNameManager.cs: New. This class keeps the configuration
required to map a public key token to an alternative public key
(e.g. ECMA public key token -> Mono public key) and to skip
strongname validation for specific assemblies/token/users.
svn path=/trunk/mcs/; revision=24865
* BooleanType.cs, ByteType.cs, CharArrayType.cs, CharType.cs, DateType.cs, IntegerType.cs, LongType.cs, ShortType.cs:
Translated Mainsoft code by Dennis Hayes with additional revisions by me - formatting still a problem
Testing: No regressions, One advance
svn path=/trunk/mcs/; revision=24847
* AssemblyInfo.cs: Bumped version and completed some more infos
* OptionDetails.cs: Incorporated C.J. Collier patch to make help screen more Windows-ish when mode==windows
svn path=/trunk/mcs/; revision=24846
* I18N/CJK/gb2312.table:
* I18N/CJK/Gb2312Convert.cs:
* I18N/CJK/CP936.cs: Rewrote the GB2312 conversion, using the iconv
algorithm as a base. Fixes bug 53841.
svn path=/trunk/mcs/; revision=24840
* expression.cs (New): Added support for type parameters.
* typemanager.cs
(TypeManager.activator_type): New public static field.
(TypeManager.activator_create_instance): Likewise.
svn path=/trunk/mcs/; revision=24829
* generic.cs (ConstructedType.CheckConstraints): Actually follow
the spec here: the argument type must be convertible to the
constraints.
svn path=/trunk/mcs/; revision=24818
* generic.cs
(TypeParameter.Define, TypeParameter.DefineMethod): Call
TypeManager.AddTypeParameter().
(ConstructedType.CheckConstraints): Re-enable this and actually
check whether we have a constructor constraint.
* typemanager.cs
(TypeManager.builder_to_type_param): New static field.
(TypeManager.AddTypeParameter): New static method.
(TypeManager.LookupTypeParameter): New public method.
svn path=/trunk/mcs/; revision=24817
* XmlCanonicalizer.cs: New. Copy of System.Security assembly.
Original by Aleksey Sanin. Modified by Atsushi Enomoto.
svn path=/trunk/mcs/; revision=24814
* XmlDsigExcC14NTransform.cs: Updated to match current System.Security
XmlDSigC14NTransform.
* XmlDSigExcC14NWithCommentsTransform.cs: Updated to match current
System.Security XmlDSigC14NWithCommentsTransform.
svn path=/trunk/mcs/; revision=24813
* generic.cs (TypeParameter.DefineType): Return a boolean and use
the new API to actually define the constructor constraint.
* typemanager.cs
(TypeManager.new_constraint_attr_type): New static field.
(TypeManager.InitCoreTypes): Initialize it.
svn path=/trunk/mcs/; revision=24812
* reflection.c (encode_new_constraint): New static function to add
the constructor constraint attribute to a type parameter.
(encode_constraints): Call encode_new_constraint() if necessary.
* reflection.h
(MonoReflectionGenericParam): Added `guint32 has_ctor_constraint'.
* row-indexes.h: Added CUSTOM_ATTR_GENERICPAR.
svn path=/trunk/mono/; revision=24806
* StrongNameManager.cs: New. Added a check for "*" (any) assembly
when the spcific assembly isn't found for skipping.
svn path=/trunk/mcs/; revision=24789
* ecore.cs (PropertyExpr.GetAccessor): Apply patch from Patrik Reali
which removes the hardcoded get_/set_ prefixes for properties, as
IL allows for the properties to be named something else.
Bug #56013
svn path=/trunk/mcs/; revision=24788
it is an empty string.
* DataSet.cs: Support serialization of byte[] columns.
* XmlDataLoader.cs: Support deserialization of Guid columns.
Set MappingType.Attribute to columns infered from attributes.
svn path=/trunk/mcs/; revision=24783
* Reference.cs: Changed code to use CryptoConfig to create transforms.
This is "the" way to do it (e.g. to allow new transforms to be added)
but cause problems when using VS.NET for debugging. Old code is still
present, but commented, for that cause.
svn path=/trunk/mcs/; revision=24782
* FAMWatcher.cs: support monitoring subdirectories. FAM doesn't do that,
so we have to register the existing directories and add the new ones
that might be created.
* SearchPattern.cs: provide the pattern when it's wrong.
svn path=/trunk/mcs/; revision=24781
XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
Support deserialization of members of type XmlDocument. This fixes#56169.
svn path=/trunk/mcs/; revision=24780
* WebConfigurationSettings.cs: use FileSystemWatcher and really reload
configuration when the file is created or modified.
svn path=/trunk/mcs/; revision=24776
* attribute.cs (DefinePInvokeMethod): Fix 56148; I would like a
better approach for some of that patch, but its failing with the
CharSet enumeration. For now try/catch will do.
svn path=/trunk/mcs/; revision=24756
* delegate.cs (Delegate.VerifyMethod): Infer type arguments.
* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version which takes a `ParameterData pd' instead of an
`ArrayList args'.
svn path=/trunk/mcs/; revision=24744
* MethodBase.cs (MethodBase.Mono_IsInflatedMethod): New public
virtual property.
(MethodBase.HasGenericParameters): Use the "official" behavior
here, ie. return false if we're not a generic method.
svn path=/trunk/mcs/; revision=24740
* icall.c (ves_icall_MonoMethod_get_HasGenericParameters): Show
the "official" behavior here.
(ves_icall_MonoMethod_get_Mono_IsInflatedMethod): New interncall.
svn path=/trunk/mono/; revision=24739
* Console.cs: If we fail to open stdin/stdout/stderr, create
readers with a NullStream. This can happen if our caller does not
setup stdin/stoud/stderr file handles. #56158 exposed this, but
it will happen elsewhere.
svn path=/trunk/mcs/; revision=24734
* loader.c (mono_get_method_from_token): Also call
mono_metadata_load_generic_params () for abstract and interface
methods; replace the type arguments in the method signature with
the ones which are loaded from the metadata.
svn path=/trunk/mono/; revision=24731
* class.cs (MethodBase.CheckGenericOverride): New abstract method.
(MethodCore.CheckGenericOverride): When overriding a generic
method, check whether the constraints match.
* support.cs (GenericConstraints): New public interface.
(ParameterData.GenericConstraints): New public method.
* parameter.cs (Parameter.Resolve): Check whether we're a generic
method parameter and compute our constraints if appropriate.
(Parameter.GenericConstraints): New public property.
* generic.cs (Constraints): Implement GenericConstraints.
svn path=/trunk/mcs/; revision=24728
* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version of this method.
* class.cs (MethodCore.IsDuplicateImplementation): Use
Invocation.InferTypeArguments() to check this.
svn path=/trunk/mcs/; revision=24719
Single.MinValue. MS.NET don't do it. This fixes bug #56005.
* Guid.cs: Added support for guid strings in the "N" and "P" formats in
the constructor. This fixes bug #54019.
svn path=/trunk/mcs/; revision=24713
* convert.cs: Use TypeManager.IsSubclassOf() instead of comparing
types directly to make it work for generic instances.
svn path=/trunk/mcs/; revision=24711
the lock is released in case of exception (for example, a
ThreadAbortException). This also "fixes" bug #52417.
Beware, this requires a runtime update (due to a bug in Monitor.Exit).
* ServicePoint.cs: Changed method from internal to private, since it is not
called from outside the class.
svn path=/trunk/mcs/; revision=24704
of the lock is not the current thread. MS.NET don't do it, in spite of
what the documentation says. See bug #56157.
svn path=/trunk/mono/; revision=24703
* System.Data.dll.sources : added classes in Mono.Data.SqlExpressions
* Makefile : add jay-target for Mono.Data.SqlExpressions/Parser.cs
* ExpressionElements.cs : remove
* DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
Integration of new Mono.Data.SqlExpressions classes used in
DataTable.{Select, Compute}.
Fixes bug #55503 and lots of failures in DataTableTest.cs.
* DataTableTest.cs : add test case for bug #55503,
comment out meaningless test cases.
* Initial implementation of Mono.Data.SqlExpressions.
svn path=/trunk/mcs/; revision=24700
* ecore.cs, typemanager.cs: Correct impl of cs1540 check.
As a regex:
s/
the invocation type may not be a subclass of the tye of the item/
The type of the item must be a subclass of the invocation item.
/g
Fixes bug #50820.
svn path=/trunk/mcs/; revision=24685
* Npgsql/NpgsqlTransaction.cs: Fixed a bug where rollback was being called when disposing NpgsqlTransaction objects even when transaction was sucessfully commited. Fixes bug 725 in gborg. Thanks melkor ([email protected]) for spotting that.
svn path=/trunk/mcs/; revision=24684
* class.c (mono_class_init): Don't call init_properties() and
init_events() for generic instances; set `prop->parent' when
inflating properties.
* reflection.c (mono_generic_inst_get_object): Call
`mono_class_init (ginst->klass)'.
(mono_type_get_object): Only create a MonoGenericInst if your
generic type is a TypeBuilder.
(do_mono_reflection_bind_generic_parameters): Only set
`ginst->is_dynamic' if our generic type is a TypeBuilder.
svn path=/trunk/mono/; revision=24677
* mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
remove unused conv_u4 opcode.
svn path=/trunk/mono/; revision=24671
* ScriptCompilerInfo.cs : #line directive now holds dummy filename
when BaseURI for msxsl:script node is not available. This fixes
bug #56070.
Don't output line number in the error message, when it is 0.
svn path=/trunk/mcs/; revision=24663
* SignedXml.cs : namespace nodes also should be supplied for enveloped
objects.
* KeyInfoRetrievalMethod.cs : Keep input element as well as others.
svn path=/trunk/mcs/; revision=24658
* HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
Now the posted file content does not have the boundaries and headers
included.
svn path=/trunk/mcs/; revision=24652
* OpenModeTypes.cs: Implemented according to the
Mainsoft Java implementation.
* Globals.cs:
* VBFixedArrayAttribute.cs:
* VBFixedStringAttribute: Changes made by Dennis Hayes
<[email protected]> from
studying the Mainsoft implementation.
* Utils.cs (GetResourceString): Added stub for easing the port
from the Mainsoft Java implementation.
svn path=/trunk/mcs/; revision=24651
* Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
This should help us to validate more tests from the Phaos suite.
Note: Microsoft doesn't support this and we only support it for
verification (not signature generation).
* SignedXml.cs: Added support for Manifest, including recursive
manifests. Made some changes to reuse existing code as much as
possible. Better support for local/remote files - but requires
catching an Uri exception for local files :-(.
svn path=/trunk/mcs/; revision=24645
* xmldsig.cs: Reactivated <Manifest> tests as support for them will be
present in Mono. Changed directory for Phaos tests because of some
documents' references.
svn path=/trunk/mcs/; revision=24644
* do-tests.pl: i think this fixes the problem with
tests that have comp options alway passing
* mcs-expect*: update for above.
svn path=/trunk/mcs/; revision=24642
* XmlCanonicalizer.cs :
Don't output 
 for Whitespace node.
To filter every kind of nodes, make sure node.Attributes isnot null.
This makes some phaos tests passed.
svn path=/trunk/mcs/; revision=24637
* SignedXml.cs :
- Use specified (or default) XmlResolver to get external resource,
instead of using WebRequest directly. Also modified it easier.
- ApplyTransform() : Clone only when it is required. Handle
transformation output other than Stream.
- Even if applicable key was not found in GetHash(), don't throw
crypto exception every time and just return false (MS does it).
Throw an exception only when no key was specified as KeyInfo.
* XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
incorrectly set InputTypes internally.
* XmlDsigXPathTransform.cs : Context namespace nodes in loaded
transform parameter (i.e. <XPath>..</XPath>) should be registered
to XsltContext. Otherwise prefix binding error occurs.
Just filter attribute node, instead of filtering attribute children.
svn path=/trunk/mcs/; revision=24636
* inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
* inssel.brg: Fix register allocation in OP_ARGLIST.
* inssel.brg: Fix warnings.
svn path=/trunk/mono/; revision=24633
* daemon.c (rem_fd): On solaris you seem to get an
error even after removing the input source so don't
try and rem_fd it twice.
svn path=/trunk/mono/; revision=24618
* class.c (mono_class_get_full): New public function; does a
mono_class_get(), but also takes a `MonoGenericContext *'.
* loader.c (mono_field_from_memberref): Renamed to
`field_from_memberref', made static and added `MonoGenericContext *'
argument.
(mono_field_from_token): Added `MonoGenericInst *' argument.
(method_from_memberef): Likewise.
(mono_get_method_from_token): Likewise.
(mono_get_method_full): New public function; does a
mono_get_method(), but also takes a `MonoGenericContext *'.
* verify.c (mono_method_verify): Get the method's generic context
and pass it to mono_field_from_token(), mono_get_method_full() and
mono_class_get_full().
svn path=/trunk/mono/; revision=24614
* AssemblyBuilder.cs: Changed strongname support to match MS
implementation (i.e. attributes are used by the compiler - not by
AssemblyBuilder).
svn path=/trunk/mcs/; revision=24610
* attribute.cs: Added methods to get a string and a bool from an
attribute. Required to information from AssemblyKeyFileAttribute,
AttributeKeyNameAttribute (string) and AssemblyDelaySign (bool).
* codegen.cs: Modified AssemblyName creation to include support for
strongnames. Catch additional exceptions to report them as CS1548.
* compiler.csproj: Updated include CryptoConvert.cs.
* compiler.csproj.user: Removed file - user specific configuration.
* CryptoConvert.cs: New. A COPY of the class CryptoConvert from
Mono.Security assembly. The original class is maintained and tested in
/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoConvert.cs.
* drivers.cs: Added support for /keyfile, /keycontainer and /delaysign
like CSC 8.0 (C# v2) supports.
* Makefile: Added CryptoConvert.cs to mcs sources.
* rootcontext.cs: Added new options for strongnames.
svn path=/trunk/mcs/; revision=24609
* class.c (mono_class_inflate_generic_type): Take a
`MonoGenericContext *' instead of a `MonoGenericInst *' and a
`MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24608
* mini.c (mini_get_method): Take a `MonoGenericContext *' instead
of a `MonoGenericMethod *'.
(TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
a new local variable called `generic_context' which holds the
current `MonoGenericContext *'; use it to lookup things.
svn path=/trunk/mono/; revision=24606
* class.h (MonoGenericInst): Added `MonoGenericContext *context';
each time we create a new MonoGenericInst, we also create a new
context which points back to us.
* class.c (inflate_method): Use `ginst->context' instead of
creating a new context.
* loader.c (method_from_memberref): Use
`klass->generic_inst->context' instead of creating a new context.
svn path=/trunk/mono/; revision=24604
* class.h (MonoGenericContext): New struct.
(MonoGenericMethod): Removed `generic_inst'.
* class.c (mono_class_inflate_generic_method): Take a
`MonoGenericContext *' instead of a `MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24602
* loader.h (MonoMethodInflated): New typedef.
* metadata.h (MonoMethodSignature): Removed `gen_method', make
`generic_param_count' consume just 30 bits, added `is_inflated'
and `has_type_parameters' flags (one bit each).
* class.c (mono_class_inflate_generic_method): Create a
MonoMethodInflated instead of a MonoMethodNormal and set
`is_inflated' in the method signature.
* class.h (MonoGenericMethod): Removed `generic_method'.
svn path=/trunk/mono/; revision=24600
* SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
-retrieval-method.xml in the Phaos test suite.
svn path=/trunk/mcs/; revision=24599
* xmldsig.cs: Some of the Phaos test files uses <Manifest> with having
*manifest* in their name. Manually load certificates for Phaos tests
that requires it (as RetrievalMethod isn't support automatically).
svn path=/trunk/mcs/; revision=24598
a direct call to ReadData. In InitBuffer(), if buffering is disabled,
create a buffer of one byte, to be used in ReadByte.
This fixes bug #52361.
svn path=/trunk/mcs/; revision=24589
* xmldsig.cs: Added code to automagically ajust for presence of
HMAC-MD5 and ExC14N in the framework and to manualy skip signatures
containing <Manifest> (not supported).
svn path=/trunk/mcs/; revision=24587
stream after writing the dataset. This fixes bug #52581.
Also added several writer.Close into finally blocks, so writers are properly
closed in case of an exception.
svn path=/trunk/mcs/; revision=24580
* Makefile, do-tests.pl: A new system for testing.
* mcs-expect-no-errors, mcs-expect-wrong-error: a list
of tests that we fail on.
* CONTRIBUTORS_README: update docs.
svn path=/trunk/mcs/; revision=24562
* driver.cs: For --expect-error, report error code `2'
if the program compiled with no errors, error code `1' if
it compiled with an error other than the one expected.
svn path=/trunk/mcs/; revision=24560
* Makefile: Updated sn.exe to include StrongNameManager.cs.
* sn.cs: Updated to use StrongNameManager. This allows remapping a
public key token to another public key (e.g. ECMA key). Also added
support for -Vl.
* StrongNameManager.cs: New. First version. Allows remapping of
public key tokens to alternate public keys (e.g. ECMA) and disabling
strongname verification for specific tokens/assemblies/users combo.
svn path=/trunk/mcs/; revision=24559
* mini.c (mini_get_class): New static method; if we're inside a
generic instance, inflate the class if neccessary.
(mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
svn path=/trunk/mono/; revision=24555
Use a special method to generate default values, since default enum values
will come as integers, so a special cast is needed.
* XmlSerializationReaderInterpreter.cs,
* SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
of SerializationSource. It can't keep and use the XmlAttributeOverride
instances as key values, since those instances can be modified after the
xml map has been generated. Now, SerializationSource generates a unique
string hash from XmlAttributeOverride and uses it for comparisons.
svn path=/trunk/mcs/; revision=24553
* HttpWebRequest.cs: added the exception status to the error message.
* WebConnection.cs: add headers using SetInternal instead of Add to
bypass header name validation. Fixes bug #55994.
* WebHeaderCollection.cs: added SetInternal (string header).
svn path=/trunk/mcs/; revision=24549
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24547
* iltests.il: New regression test for #55976.
* mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
#55976.
svn path=/trunk/mono/; revision=24546
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24545
Minor fixes in Infoset method.
* ComplexDataStructure.cs: New set of tests for testing complex object
serialization.
svn path=/trunk/mcs/; revision=24541
WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
the adequate type. Set the default value of members that do have a default
value. Other minor fixes.
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
from typeof(object) map, even those that have another base class.
* XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
It must serialize the char as number, not as character.
* XmlSerializationReaderInterpreter.cs: Set the default value of members
that do have a default value.
* XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
of members that have a default value.
svn path=/trunk/mcs/; revision=24540
* ReferenceTest.cs : Test for keeping document object identity.
* XmlDsigC14NTransformTest.cs : Fixed LoadInputAsXmlNodeList(). Here,
passed XmlNodeList means filtered (e.g. XPath) nodes, which might
contain parent and children as each node in the list.
Added LoadInputAsXmlNodeList2(), which fails in the meantime.
svn path=/trunk/mcs/; revision=24534
* Reference.cs, Signature.cs : They should keep input element and hence
keep namespace context nodes on LoadXml() as same as SignedInfo.
* SignedXml.cs : Fixed SignedInfoTransformed() to fill context
namespace nodes into the input document (unlike other classes, there
seems no other way to keep ns-nodes here).
Now some of W3C phaos xmldsig test passes.
svn path=/trunk/mcs/; revision=24532
* XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
namespace nodes which has the same name as already-iterated nodes.
Also xmlns='' should not be selected, and once it appeared, default
namespace should not be selected anymore.
svn path=/trunk/mcs/; revision=24531
* SelectNodesTests.cs : Added test for 1) not selecting previously-
selected prefixes, and that 2) default namespace erasure (i.e.
xmlns="") should not be selected.
svn path=/trunk/mcs/; revision=24530
is a directory.
* MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
svn path=/trunk/mcs/; revision=24527
* appdomain.c (ves_icall_System_AppDomain_InternalUnload): Add
MONO_NO_UNLOAD env var as a temporary workaround for unloading
problems.
svn path=/trunk/mono/; revision=24524
* compiler.csproj: Updated for Visual Studio .NET 2003.
* compiler.csproj.user: Updated for Visual Studio .NET 2003.
* compiler.sln: Updated for Visual Studio .NET 2003.
svn path=/trunk/mcs/; revision=24522
* DataColumn.cs - removed the TODOs since I had checkedin earlier
* DataViewRowState.cs - Implemented EditorAttribute
svn path=/trunk/mcs/; revision=24514
* expression.cs: Fix bug #47234. We basically need to apply the
rule that we prefer the conversion of null to a reference type
when faced with a conversion to 'object' (csc behaviour).
svn path=/trunk/mcs/; revision=24513
* XmlCharacterData.cs : ReplaceData() should reject negative integer
value for count argument.
* XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
On RemoveNamedItem(), default attribute value should be restored.
svn path=/trunk/mcs/; revision=24511
* XmlAttributeCollection.cs : Remove() should throw an exception when
target attribute is not included in the collection.
* XmlDocument.cs : ImportNode() should reject null node.
* XmlNode.cs : Fixed type of exception for invalid insertion.
It should throw an exception not only when the owner document of the
reference element is different but its parent element is different.
Some error message improvement.
svn path=/trunk/mcs/; revision=24509
* TypeBuilder.cs (TypeBuilder.GetEvents_internal): New internal
method; this is basically GetEvents(), but see the FIXME in that method.
svn path=/trunk/mcs/; revision=24506
* hppa/hppa-codegen.h: created
* hppa/tramp.c: changed style to be more like
other platforms.
* hppa/Makefile.am: add hppa-codegen.h
svn path=/trunk/mono/; revision=24504
* constant.cs, ecore.cs, literal.cs: New prop IsZeroInteger that
checks if we can use brtrue/brfalse to test for 0.
* expression.cs: use the above in the test for using brtrue/brfalse.
cleanup code a bit.
svn path=/trunk/mcs/; revision=24501
* expression.cs (Invocation.OverloadResolve): Added `bool
may_fail' argument and use it instead of the Location.IsNull() hack.
svn path=/trunk/mcs/; revision=24499
* CryptoConvertTest.cs: Added test case where the public key structure
is inside preceded by an header (like the one produced by "sn -e").
svn path=/trunk/mcs/; revision=24496
* liveness.c: Consider SSA stores as well as loads when making vars
volatile.
* exceptions.cs: New regression tests for register allocation.
svn path=/trunk/mono/; revision=24493
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24491
* CryptoConvert.cs: Added exception for null and bad parameters.
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24486
* ecore.cs (MethodGroupExpr.Name): Use
TypeManager.CSharpSignature() instead of just the name.
* expression.cs (Invocation.OverloadResolve): Provide better error
reporting.
(Invocation.DoResolve): OverloadResolve() never returns null
without reporting an error, so removed the error -6 reporting here.
svn path=/trunk/mcs/; revision=24484
* DateTime.cs: Allow any character for DateSeparator when parsing,
except TimeSeparator, a digit or a letter. Fixes bug 54047. Also
deleted the previous fix for 54721, because this covers it too.
svn path=/trunk/mcs/; revision=24478
internal variables to structures that are moved around methods.
Factorized some common formatting code into FormatNumberInternal.
svn path=/trunk/mcs/; revision=24475
* PrivateKey.cs: Adjusted to catch exceptions from CryptoConvert.
FromCapiPrivateKeyBlob when dealing with weakly encrypted keys.
svn path=/trunk/mcs/; revision=24471
* expression.cs: Emit shorter il code for array init.
newarr
dup
// set 1
// set 2
newarr
stloc.x
ldloc.x
// set 1
ldloc.x
// set 2
svn path=/trunk/mcs/; revision=24467
* SignedInfo.cs : It holds input element and directly returns it
unless the properties are not set.
Throw CryptographicException when Reference is empty *and* GetXml()
is *created*. (when just returning input element, no exception is
thrown).
svn path=/trunk/mcs/; revision=24465
* SignedInfoTest.cs : assure the owner document object equality /
inequality with related to LoadXml() and setting properties.
svn path=/trunk/mcs/; revision=24464
* typemanager.cs : being more carefull with null arguments in some places,
null checking in GetPertinentStandardModules() loop
* namespace.cs : a helper ToString override
* ecore.cs : Dealing with finding more than a pertinent standard module having a global member
* testmbas/WriteOk.vb : Exercising correct standard module resolution
NOTE: Almost there for Bug #52067 - just the semi-qualified case isn't working
svn path=/trunk/mcs/; revision=24463
* ecma.pub: New. ECMA key to be used for strongnaming assemblies.
* msfinal.pub: New. Microsoft public key to be used for strongnaming
assemblies.
svn path=/trunk/mcs/; revision=24460
* DataObject.cs : It now hold element instead of each parameters.
Avoid loading element content to different document unless its
properties were modified (to keep namespace node context).
svn path=/trunk/mcs/; revision=24459
* Npgsql/NpgsqlAsciiRow.cs
* Npgsql/NpgsqlBinaryRow.cs
* Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=24447
* Npgsql/NpgsqlAsciiRow.cs
* Npgsql/NpgsqlBinaryRow.cs
* Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=24446
* class.c: do not insert non-virtual methods in the vtable.
* icall.c, mono-debug-debugger.c, object.c: if method->slot == -1,
that means the method is non-virtual. This never would have
happened before.
svn path=/trunk/mono/; revision=24443
* PublisherIdentityPermission.cs: Now use CryptoConvert for Hexadecimal
convertions.
* PublisherIdentityPermissionAttribute.cs: Now use CryptoConvert for
Hexadecimal convertions.
svn path=/trunk/mcs/; revision=24433
* CryptoConvert.cs: Added new methods to convert [From|To]Hex. Added
new version of FromCapiPublicKeyBlob with an integer offset.
svn path=/trunk/mcs/; revision=24432
* mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
domain lock only to protect puntual access to data structures.
Added access lock for sighash, jit_icall_hash_name,
jit_icall_hash_addr and domain->code_mp.
svn path=/trunk/mono/; revision=24427
* expression.cs (Invocation.InferParamsTypeArguments): New static
method; does type inference for params arguments.
svn path=/trunk/mcs/; revision=24423
* String.cs (System): Use the provider when converting strings to
other types.
* DateTime.cs (System): Add MM-dd-yyyy to the list of standard
date parsing formats. Fixes bug 54721.
2004-03-22 Dick Porter <[email protected]>
* DateTimeTest.cs (System): Test the MM-dd-yyyy date parse format.
svn path=/trunk/mcs/; revision=24420
* CustomAttributeBuilderTest.cs: Call GetCustomAttributes with false
so custom attributes on Object do not screw the results.
svn path=/trunk/mcs/; revision=24416
* ecore.cs : now it gets the correct list of namespaces in scope (either imported or current) Almost there for Bug #52067
svn path=/trunk/mcs/; revision=24415
* ScriptCompilerInfo.cs : Modified compilation processing. Now it uses
CodeDom. Compilation error should be caught. This fixes bug #55875.
svn path=/trunk/mcs/; revision=24398
* typemanager.cs (TypeManager.IsGenericMethod): New public static
method; checks whether a method is a generic method.
* expression.cs (Invocation.InferTypeArguments): New static method;
infer type arguments for generic method invocation.
* ecore.cs (MethodGroupExpr.HasTypeArguments): New public
property; we set this to true if we're resolving a generic method
invocation and the user specified type arguments, ie. we're not
doing type inference.
svn path=/trunk/mcs/; revision=24393
* statement.cs: Before, two switch blocks would be merged if the
total size of the blocks (end_item - begin_item + 1) was less than
two times the combined sizes of the blocks.
Now, it will only merge if after the merge at least half of the
slots are filled.
fixes 55885.
svn path=/trunk/mcs/; revision=24392
* icall.c (ves_icall_MethodInfo_get_IsGenericMethod): Use
`method->method->signature->generic_param_count != 0' to make it
work for interface methods.
svn path=/trunk/mono/; revision=24391
* Socket.cs: when Dispose (bool) is called from the finalizer, always
do the cleanup. Fixes yet another nullref with xsp.
svn path=/trunk/mcs/; revision=24387
* ThreadAbortException.cs: use same HResult as MS.
* Timer.cs: abort the running thread when disposing the Timer. This
fixes NullRefs when finishing xsp.
svn path=/trunk/mcs/; revision=24386
* class.cs (MethodData.DeclaringType): New public property.
(MethodData.Define): Set DeclaringType here.
(Operator.Define): Use OperatorMethod.MethodData.DeclaringType
instead of OperatorMethodBuilder.DeclaringType.
svn path=/trunk/mcs/; revision=24377
* cs-tokenizer.cs (xtoken): Return a special
Token.DEFAULT_OPEN_PARENS for "`default' followed by open parens".
* cs-parser.jay (default_value_expression): Switch to the new
syntax (14.5.13).
svn path=/trunk/mcs/; revision=24372
* decl.cs (MemberName): New class. We use this to "construct"
namespace_or_type_name's.
* generics.cs (TypeArguments.GetDeclarations): New public method;
returns the type arguments as a string[] and reports a CS0081 if
one of them is not an identifier.
* class.cs (MemberBase): The .ctor now takes the name as a
MemberName instead of a string.
(MemberBase.ExplicitInterfaceName): Changed type from string to
Expression.
(MemberBase.DoDefine): If we're an explicit implementation, the
InterfaceType may be a generic instance.
* cs-parser.jay (namespace_or_type_name): Return a MemberName.
(namespace_name): Call MemberName.GetName () to transform the
MemberName into a string and ensure we don't have any type
arguments.
(type_name): Call MemberName.GetTypeExpression() to transfrom the
MemberName into an expression.
(method_header): Use namespace_or_type_name instead of member_name.
svn path=/trunk/mcs/; revision=24369
* expression.cs: Make sure fp comparisons work with NaN.
This fixes bug #54303. Mig approved this patch a long
time ago, but we were not able to test b/c the runtime
had a related bug.
svn path=/trunk/mcs/; revision=24364
* mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
is different from fbxx_un. Fixes#54303. Also use constants instead of
magic numbers in a lot of places.
svn path=/trunk/mono/; revision=24362
* class.cs (MemberCore.IsDuplicateImplementation): Check whether
two overloads may unify for some type parameter substitutions and
report a CS0408 if appropriate.
svn path=/trunk/mcs/; revision=24355
* daemon.c: only call getdtablesize () once.
* processes.c: wait 500 ms to check if execve failed and throw the same
exception as MS on failure. Fixes bug #32809.
svn path=/trunk/mono/; revision=24349
* interface.cs: Completely killed this file.
(Interface): We're now a TypeContainer and live in class.cs.
* class.cs (TypeContainer.GetClassBases): Added `bool is_iface'
argument; we're now also called for interfaces.
(TypeContainer.DefineMembers): Allow this method being called
multiple times.
(TypeContainer.GetMethods): New public method; formerly known as
Interface.GetMethod(). This is used by PendingImplementation.
(TypeContainer.EmitDefaultMemberAttr): Moved here from Interface;
it's now private and non-static.
(Interface): Moved this here; it's now implemented similar to
Class and Struct.
(Method, Property, Event, Indexer): Added `bool is_interface'
argument to their .ctor's.
(MemberBase.IsInterface): New public field.
* cs-parser.jay: Create normal Method, Property, Event, Indexer
instances instead of InterfaceMethod, InterfaceProperty, etc.
(opt_interface_base): Removed; we now use `opt_class_base' instead.
(InterfaceAccessorInfo): Create `Get' and `Set' Accessor's.
svn path=/trunk/mcs/; revision=24345
* class.cs (MethodCore.IsDuplicateImplementation): New private
method which does the CS0111 checking.
(Method.CheckBase, Constructor.CheckBase, PropertyBase.CheckBase):
Use IsDuplicateImplementation().
svn path=/trunk/mcs/; revision=24339
* threads.c:
(mono_threads_manage): don't remove the finalizer thread and self
from the threads hash table so that mono_thread_manage can be called
more than once.
svn path=/trunk/mono/; revision=24335
* TlsClientKeyExchange.cs: Fixed key pair used to encrypt pre-master
secret for exportable ciphers - must use the public key received in
ServerKeyExchange.
svn path=/trunk/mcs/; revision=24331
* CipherSuite.cs: Fixed PRF generation when secret is an odd number of
bytes (section 5 in RFC2246).
* CipherSuiteFactory.cs: Added algorithms RSA_EXPORT_WITH_RC4_40_MD5,
RSA_EXPORT_WITH_RC2_CBC_40_MD5, RSA_EXPORT_WITH_DES40_CBC_SHA,
RSA_EXPORT_WITH_RC4_56_MD5, RSA_EXPORT_WITH_RC2_CBC_56_MD5,
RSA_EXPORT_WITH_DES_CBC_56_SHA and RSA_EXPORT_WITH_RC4_56_SHA to both
SSL3 and TLS1 protocols.
* SslCipherSuite.cs: Fixed key generation for exportable ciphers.
* TlsCipherSuite.cs: Fixed key generation for exportable ciphers.
svn path=/trunk/mcs/; revision=24330
* UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
BOM at the beginning of the range of characters we're interested
in, not at the beginning of the array. Fixes bug 51531.
2004-03-19 Dick Porter <[email protected]>
* UnicodeEncodingTest.cs: Test for character counts on subranges
of arrays with a BOM at the start of the array.
svn path=/trunk/mcs/; revision=24328
* Interaction.cs:
Added MonoTODO attributes
All not implemented members are throwing NotImplementedException
Implemented IIf
Implemented Command
Implemented Environ
svn path=/trunk/mcs/; revision=24325
* ThreadTest.cs: Removed Ignore attributes from
CurrentPrincipal_PrincipalPolicy_NoPrincipal and
CurrentPrincipal_PrincipalPolicy_UnauthenticatedPrincipal
Now that bug 54041 is fixed, and they wont livelock.
svn path=/trunk/mcs/; revision=24321
xsd \- Mono's utility for generating schema or class files
.SH"SYNOPSIS"
.PP
.Bxsd
<schema.xsd> /classes [options]
.PP
.Bxsd
<schema.xsd> /dataset [options]
.PP
.Bxsd
<assembly>.dll|<assembly>.exe [options]
.PP
.Bxsd
<instance.xml> [<instance.xml> ...] [options]
.PP
.SH"DESCRIPTION"
.Ixsd
is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks:
.TP
Generateserializableclasses
From a given XML schema, generate a class that can be used to read and write xml documents that conform that schema (/classes option).
.TP
Generatetypeddatasets
From a given XML schema, generate a typed DataSet class that can be used to read and write xml documents that conform that schema (/dataset option).
.TP
GenerateXMLschemas
From a given assembly and an optional type name, generate an XML schema that can be used to validate the xml documents that can be obtained by serializing objects of that type. If no type is provided, xsd generates a schema for all types in the assembly. When specifying the assembly name do not include the file extension (.dll or .exe). xsd will look for the assembly using the standard assembly loading rules.
.TP
InferXMLschemas
From a given set of XML documents, infer the XML schema that can be used to validate those documents.
.SH"OPTIONS"
The following options are available:
.TP
.I"/element:name""/e:name"
Specifies the name of the XML schema element for which a class or a dataset has to be generated.
.TP
.TP
.I"/namespace:name""/n:name"
Specifies the namespace of the XML schema element for which a class or a dataset has to be generated.
.TP
.I"/language:name""/l:name"
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET).
.TP
.I"/generator:type,assembly""/g:type,assembly"
Indicates xsd.exe to use custom CodeDomProvider to generate code. Type name must be full name. Assembly name is file name that xsd.exe tries to load.
.TP
.I"/outputdir:path""/o:path"
Specifies the directory where to generate the code or schemas.
.TP
.I"/type:name""/t:name"
Specifies the full name of the type (including namespace) for which to generate the XML schema.
Loaded 100 of 3909 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.