* 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
* threads.c: set mono_thread_detach as a cleanup routine for every
thread. This way it's always executed upon thread termination, either
aborted or finished normally. No more xsp hangs!
svn path=/trunk/mono/; revision=24315
* Hashtable.cs: Serialise/Deserialise to two arrays of
keys/values. This will match what MS.NET appears to be
doing.
svn path=/trunk/mcs/; revision=24308
* SoapTypeMapper.cs: Map object to xsd:anyType rather than
SOAP-ENC:anyType so we can deserialise the objects serialised
by MS.NET.
svn path=/trunk/mcs/; revision=24307
* SimpleWorkerRequest.cs: patch from Aleksey Demakov that fixes
MapPath when the virtual directory is the root virtual directory.
svn path=/trunk/mcs/; revision=24298
* decl.cs (FindMemberToOverride): New method to find the correct
method or property to override in the base class.
* class.cs
- Make Method/Property use the above method to find the
version in the base class.
- Remove the InheritableMemberSignatureCompare as it is now
dead code.
This patch makes large code bases much faster to compile, as it is
O(n) rather than O(n^2) to do this validation.
Also, it fixes bug 52458 which is that nested classes are not
taken into account when finding the base class member.
Reviewed/Approved by Martin.
svn path=/trunk/mcs/; revision=24262
* expression.cs (MemberAccess.DoResolve): Take the parent's number
of type arguments into account; use the `real_num_type_args'
approach like in DoResolveAsTypeStep().
* generic.cs (GenericMemberAccess.DoResolve): Make this work for
nested types.
svn path=/trunk/mcs/; revision=24258
* class.h (MonoGenericInst): Replaced the `GList *nested' with an
`int count_nested' and a `MonoType **nested'.
* reflection.c (mono_reflection_bind_generic_parameters): Moved
most of the functionality into a new static
do_mono_reflection_bind_generic_parameters() and don't take a
`MonoType *nested_in' argument any more. Don't compute nested
types here.
(mono_reflection_generic_inst_get_nested_types): New public method
to get nested types.
* class.c (mono_class_create_generic): Set `klass->nested_in' if
we're a nested class.
* icall.c (ves_icall_MonoGenericInst_GetNestedTypes): Call
mono_reflection_generic_inst_get_nested_types() to compute the
nested types.
svn path=/trunk/mono/; revision=24255
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=24254
* syntax.cs, interpreter.cs, quicksearch.cs, regex.cs, compiler.cs :
Revised support for RigthToLeft.
quicksearch has now an reverse option.
This fixes bug #54537
* regex.cs, compiler.cs :
Some code to support CILCompiler.
* regex.cs :
Added some undocumented of MS.
svn path=/trunk/mcs/; revision=24249
* PerlTrials.cs : Added many test for RightToLeft
* PerlTest.cs, RegexTrial : Modified version of regextrial to
be run all the test and to report exception.
svn path=/trunk/mcs/; revision=24248
* mini.c (get_generic_field_inst): Removed, this'll never happen.
(inflate_generic_field): Take the `MonoMethod *' instead of the
`MonoClass *' and added support for generic method.
(mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
have a `field->parent->gen_params', only inflate the field if it's
an open constructed type.
svn path=/trunk/mono/; revision=24245
* Mono.Security.Protocol.Tls.Handshake.Server/TlsClientCertificate.cs:
* Mono.Security.Protocol.Tls.Handshake.Server/TlsServerKeyExchange.cs:
- Initial implementation.
2004-03-16 Carlos Guzman Alvarez <[email protected]>
* Mono.Security.Protocol.Tls/SslCipherSuite.cs:
- Added changes for allow it to work as server or client.
2004-03-15 Carlos Guzman Alvarez <[email protected]>
* Mono.Security.Protocol.Tls/TlsStream.cs:
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsCipherSuite.cs:
* Mono.Security.Protocol.Tls/SslHandshakeHash.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Cryptography/MD5SHA1.cs:
- Use Buffer.BlockCopy instead of System.Array.Copy
svn path=/trunk/mcs/; revision=24233
* io.c (async_notifier): use "union sigval" rather
than sigval_t as Solaris doesn't have sigval_t
(which isn't in IEEE 1003.1 either).
svn path=/trunk/mono/; revision=24231
* PKCS12.cs: Fixed sequence problem in Pkcs8ShroudedKeyBag. Fixed key
bag implementation in GetBytes. Moved key bag implementation in
GetBytes to fit OpenSSL. Added NULL digest in MAC (GetBytes) to fit
OpenSSL. Added SaveToFile method.
svn path=/trunk/mcs/; revision=24224
* exceptions-x86.c (mono_arch_handle_exception): Allocate a new
exception object instead of the preconstructed ones.
svn path=/trunk/mono/; revision=24221
* mini.c:
(mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
running --aot with an old assembly.
svn path=/trunk/mono/; revision=24212
* reflection.c (mono_image_get_fieldref_token): Take a
`MonoReflectionField *' instead of a `MonoClassField *' and a
`MonoClass *'; store the `MonoReflectionField *' in the hash.
svn path=/trunk/mono/; revision=24201
* expression.cs (MemberAccess.DoResolve): If `expr' resolved to a
ConstructedType, call ResolveType() on it to get the type rather
than just using `expr.Type'.
svn path=/trunk/mcs/; revision=24200
* SignedXml.cs : the result from enveloped signature transform should
be canonicalized before getting its hash.
* XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
if the node is Signature itself it is not allowed.
PreserveWhitespace is required.
svn path=/trunk/mcs/; revision=24197
Args class added get_element, Size and made Resolve behave as the
others (collect the differents Resolve's return values from each
of the arguments). Expression class, added default Resolve call
for non-Exp implementers.
svn path=/trunk/mcs/; revision=24189
* generics.cs (ConstructedType.GetMemberAccess): Take the
EmitContext instead on the TypeExpr and use
ec.TypeContainer.CurrentType/ec.ContainerType.
svn path=/trunk/mcs/; revision=24180
* XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
written regardless of document's PreserveWhitespace.
svn path=/trunk/mcs/; revision=24178
* XmlDocumentTests.cs : Added PreserveWhitespace2() (whitespace nodes
should be written regardless of document.PreserveWhitespace.)
svn path=/trunk/mcs/; revision=24177
* typemanager.cs (TypeManager.MayBecomeEqualGenericInstances):
New oublic function; checks whether two generic instances may become
equal under some instantiations (26.3.1).
* class.cs (TypeContainer.Define): Call
TypeManager.MayBecomeEqualGenericInstances() and report CS0695 on
error.
svn path=/trunk/mcs/; revision=24166
* .cvsignore: Ignore temporary files.
* c14n.cs: Canonalization tool. Take any XML document (or part of it)
and output it's C14N form (C14N transformation is user selectable).
* ChangeLog: New.
* Makefile: New. Makefile to download, build and run xmldsig tests
(copied from Atsushi - actually this whoile directory is his idea).
svn path=/trunk/mcs/; revision=24160
* appdomain.c: don't add the culture to the filename we're looking for
if it's neutral or NULL. Fixes bug #53788. Removed redundant memset.
svn path=/trunk/mono/; revision=24159
* SignedXml.cs: Changed (again). This time we use the Stream when
loading the document. We now pass 14 out of 15 of the Merlin's
tests (including one that MS fails). The only failing test is the
one that use the EnvelopedTransform (unfinished).
svn path=/trunk/mcs/; revision=24158
* mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
point values.
* mini-sparc.c: Add support for v9 branches with prediction.
svn path=/trunk/mono/; revision=24154
* class.cs (TypeContainer.GetClassBases): Moved
Error_TypeParameterAsBase() here and also check whether the base
class is not an attribute.
svn path=/trunk/mcs/; revision=24152
2004-03-16 Martin Baulig <[email protected]>
* class.cs (Error_TypeParameterAsBase): Use correct error number
here (CS0689).
svn path=/trunk/mcs/; revision=24151
* marshal.c (mono_marshal_get_native_wrapper): Char arrays are
implicitly marshalled as [Out]. Fixes#55450.
(mono_marshal_get_runtime_invoke): Zero out the result if there is
an exception.
svn path=/trunk/mono/; revision=24146
* Makefile (run-generics-local): New target to run the generics
tests.
* gmcs0246.cs, gmcs0305.cs, gmcs0305-2.cs, gmcs0308.cs,
gmcs0308-2.cs: New tests.
svn path=/trunk/mcs/; revision=24143
* reflection.c (type_get_signature_size): New static function.
Compues the size of the type in a method signature.
(method_get_signature_size): New static function; calls
type_get_signature_size() to compute the actual size of the
method's signature.
(method_encode_signature): Use method_get_signature_size() to get
the signature's size rather than using `nparams * 10'.
svn path=/trunk/mono/; revision=24140
* Test1.vb: corrected mispelling in keyword
* Test.Sources: no misc1.vb or CharacterLiteralsA.vb sources
* ConditionalCompilationC.vb: added some tests with #Const
svn path=/trunk/mcs/; revision=24128
* Contribution from Roopa Wilson - Testcases for AddRange (), CanRemove (), RemoveAt (), Remove (), Exceptions of Remove(), and Clear ()
svn path=/trunk/mcs/; revision=24122
* XmlDsigNodeList.cs : added.
* XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
* XmlDsigEnvelopedSignatureTransform.cs :
Implemented GetOutput(). However, it is totally MS behavior
dependent and not based on the spec (we can reimplement it based on
improved XmlDsigXPathTransform).
* SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
svn path=/trunk/mcs/; revision=24120
* OdbcParameterCollection.cs - Implemented all the remaining methods & attributes
* OdbcParameter.cs - Included a Container property to keep track of the Collection
that it is attached
svn path=/trunk/mcs/; revision=24116
* SqlParameterCollection.cs
Corrected IndexOf method to return -1 if the parametername is not
found in the collection
svn path=/trunk/mcs/; revision=24111
* XmlDocumentNavigator.cs : Value should return concatenated string for
sequential text nodes. Considered detached nodes, the result of
MoveToParent() should be checked.
svn path=/trunk/mcs/; revision=24107
* decl.cs (DefineTypeAndParents): New helper method to define a
type's containers before the type itself is defined; This is a
bug exposed by the recent changes to Windows.Forms when an
implemented interface was defined inside a class that had not been
built yet.
svn path=/trunk/mcs/; revision=24101
* Random.cs: Corrected random value when Next is called with a
negative value. Testing indictae that our results aren't exactly the
same as MS, we have a +/- 1 (probably rounding errors due to
different implementation).
svn path=/trunk/mcs/; revision=24097
* typemanager.cs (TypeManager.GetFullName): New public method.
(TypeManager.MemberLookup): Added `int_num_type_arguments'
argument; only return members with the correct number of type
arguments.
(TypeManager.CheckGeneric): Allow -1 to bypass the check.
(TypeManager.FilterWithClosure): Call CheckGeneric() to check
whether the number of type arguments matches.
* generic.cs (GenericMemberAccess.ResolveAsTypeStep): Allow `expr'
not being a ConstructedType; we can now do "typeof (Foo.Bar<U>)".
* expression.cs (MemberAccess): Added public `NumTypeArguments'
field; it's set by the protected .ctor when we're actually a
GenericMemberAccess.
(MemberAccess.ResolveAsTypeStep): Compute the total number of type
arguments and pass it to MemberLookupFinal ().
* ecore.cs (Expression.MemberLookup): Added `int
num_type_arguments' argument; only return members with the correct
number of type arguments.
(Expression.MemberLookupFailed): Check whether the MemberLookup
failed because we did not have the correct number of type
arguments; report CS0305 in this case.
* decl.cs (DeclSpace.ResolveTypeExpr): Don't report an error if
`e.ResolveAsTypeTerminal()' already did so.
svn path=/trunk/mcs/; revision=24083
* libtest.c (mono_test_marshal_time_t): fix
for current code on 64 bit machines with 64bit time
* marshal9.cs marshal10.cs: Do arithmetic on
pointers as 64bits.
svn path=/trunk/mono/; revision=24078
* modifiers.cs (Check): Loop correctly to report errors modifiers
(UNSAFE was not in the loop, since it was the same as TOP).
* interface.cs: Every interface member now takes a ModFlags,
instead of a "is_new" bool, which we set on the base MemberCore.
Every place where we called "UnsafeOk" in the interface, now we
call the proper member (InterfaceMethod.UnsafeOK) instead to get
the unsafe settings from the member declaration instead of the
container interface.
* cs-parser.jay (opt_new): Allow unsafe here per the spec.
svn path=/trunk/mcs/; revision=24074
* ecore.cs (Expression.ResolveLValue): Allow e.type being null if
we're a ConstructedType; in this case, the caller must report an
error (for instance CS0131).
* generic.cs (TypeArguments): Added Location argument to the .ctor.
(TypeArguments.Resolve): Actually report errors here.
svn path=/trunk/mcs/; revision=24072
* corlib.dll.sources: added StreamAsyncResult and FileStreamAsyncResult.
* System/Environment.cs: updated corlib version.
* System.IO/FileStream.cs: added support for asynchronous I/O without
using the OS native libraries if available.
* System.IO/FileStreamAsyncResult.cs: IAsyncResult for asynch. I/O.
* System.IO/MonoIO.cs: added BeginRead/Write, GetSupportsAsync. Open
has now a new parameter to tell ifthe file will be used for asynch.
operations.
* System.IO/Stream.cs: BeginRead/Write do not use delegates. They just
are actually synchronous.
* System.IO/StreamAsyncResult.cs: IAsyncResult for Stream.
* System.Threading/NativeOverlapped.cs: added 2 new internal fields.
* System.Threading/Overlapped.cs: implemented, but it's not used.
* System.Threading/ThreadPool.cs: implemented BindHandle.
svn path=/trunk/mcs/; revision=24069
* System.dll.sources: added ProcessStringDictionary.
* System.Collections.Specialized/ProcessStringDictionary.cs: the same
as StringDictionary, but doesn't turn keys into lowercase.
* System.Diagnostics/Process.cs: added environment variables setting
support and also send useShellExecute to the runtime.
* System.Diagnostics/ProcessStartInfo.cs: support EnvironmentVariables.
MS uses StringDictionary, which turns keys into lowercase. We don't
do that.
svn path=/trunk/mcs/; revision=24068
* io-layer/io-private.h: added new fields for file structure. Declare
_wapi_io_add_callback.
* io-layer/io.c: added _wapi_get_win32_error, support aio_read/write
in file_read/write. Implemented _wapi_io_add_callback, which is where
BindHandle ends up.
* io-layer/io.h: added new fields for WapiOverlapped and typedef for
the callback.
* io-layer/processes.c: fixed off-by-one bug when handling environment
variables passed in.
* io-layer/threads.[ch]: implemented BindIoCompletionCallback.
* io-layer/uglify.h: added typedef for LPOVERLAPPED_COMPLETION_ROUTINE.
* metadata/appdomain.c: upgraded corlib version.
* metadata/file-io.c: implemented new icalls: GetSupportsAIO, BeginRead
and BeginWrite. Allow opening files for asynchrnous operations.
* metadata/file-io.h: new struct that maps FileStreamAsyncResult.
* metadata/icall.c: added new icalls.
* metadata/process.[ch]: support setting child process environment
variables and use the SHELL or COMSPEC when UseShellExecute is true.
* metadata/threadpool.[ch]: fixed warnings, moved ThreadPool icalls
here. The callback for async. IO is here and also BindHandle.
* metadata/threads.[ch]: added mono_thread_detach and removed
ThreadPool icalls from here.
svn path=/trunk/mono/; revision=24067
* SignedXml.cs: Now use the original Signature element before applying
the C14N transformation. Added a check for null in LoadXml.
svn path=/trunk/mcs/; revision=24066
* support.cs (SeekableStreamReader): Keep track of stream byte
positions and don't mix them with character offsets to the buffer.
Patch from Gustavo Gir�ldez
svn path=/trunk/mcs/; revision=24063
2004-03-15 Miguel de Icaza <[email protected]>
* pending.cs (TypeAndMethods): Add `get_indexer_name' and
`set_indexer_name' to the pending bits (one per type).
We fixed a bug today that was picking the wrong method to
override, since for properties the existing InterfaceMethod code
basically ignored the method name. Now we make sure that the
method name is one of the valid indexer names.
svn path=/trunk/mcs/; revision=24059
* pending.cs (TypeAndMethods): Add `get_indexer_name' and
`set_indexer_name' to the pending bits (one per type).
We fixed a bug today that was picking the wrong method to
override, since for properties the existing InterfaceMethod code
basically ignored the method name. Now we make sure that the
method name is one of the valid indexer names.
svn path=/trunk/mcs/; revision=24056
SByte.cs, Single.cs, UInt16.cs, UInt32.cs, UInt64.cs: Renamed internal
field "value" to "m_value", so it is interoperable with MS.NET when
serializing and deserializing data. Based on the patch from Daniel Keep.
svn path=/trunk/mcs/; revision=24055
* AssemblyInfo.cs: Deleted
* Control.cs: Hopefully satisfies corecompare a little more than now
* UnsafeNativeMethods.cs: Added for above
svn path=/trunk/mcs/; revision=24052
* CustomAttributeBuilderTest.cs: Force test to pass if we are running
on version 1.1 of the CLR. That version does not throw the exception.
svn path=/trunk/mcs/; revision=24045
* DataRow.cs
- Added code to set Default values in the constructor
- Removed TODO tags from HasErrors, ItemArray, SetParentRow
after adding testcases
svn path=/trunk/mcs/; revision=24044
* ConstraintCollection.cs
- Implemented EditorAttribute, AddRange and
- Removed TODO tag from Clear method after updating comments
(thanks to Roopa ([email protected]))
svn path=/trunk/mcs/; revision=24043
* XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
the reader is on EndElement. Patch by Jean-Marc Andre.
svn path=/trunk/mcs/; revision=24032
* DbDataAdapter.cs : Refactoring of Fill. New private method
FillTable does most of the work now. Use int[] instead of
hashtable for mapping. Move creation of tableArray[] outside
of loop.
svn path=/trunk/mcs/; revision=24031
* XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
to return attribute node. It affects on IHasXmlNode.GetNode() and
SelectNodes()/SelectSingleNode().
svn path=/trunk/mcs/; revision=24020
* mini-ops.h: Add sparcv9 compare and branch instructions.
* inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
v9 instructions if we have a v9 cpu.
* mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
registers for global allocation.
* exceptions-sparc.c: Fixes.
svn path=/trunk/mono/; revision=24015
* class.cs (TypeContainer.DefineType): Call
TypeManager.AddUserType() immediately after creating the
TypeBuilder; pass all type parameters when creating the
CurrentType.
* decl.cs (DeclSpace.FindNestedType): New public method.
(DeclSpace.FindType): Added `int num_type_args' argument; only
return types with the correct number of type parameters.
(DeclSpace.CountTypeParams): New public property.
* ecore.cs (SimpleName.ctor): Added overloaded version which takes
the number of type parameters; defaults to zero.
* generic.cs (TypeArguments.Count): New public property.
(ConstructedType.DoResolveAsTypeStep): First call
ds.FindNestedType() to find out whether we're nested in the
current generic type; in this case, we inherit all type parameters
from the current class.
* rootcontext.cs (RootContext.NamespaceLookup): Added `int
num_type_args' argument.
(RootContext.LookupType): Added overloaded version which takes the
number of type arguments; only return types with the correct
number of type arguments.
* typemanager.cs (TypeManager.CheckGeneric): New public function;
checks whether `Type t' has `int num_type_args'.
svn path=/trunk/mcs/; revision=24012
* convert.cs (ExplicitConversion): We were reporting an error on
certain conversions (object_type source to a value type, when the
expression was `null') before we had a chance to pass it through
the user defined conversions.
svn path=/trunk/mcs/; revision=24007
* generic.cs (GenericMethod.DefineType): New method; calls
DefineType() on all the type parameters.
* class.cs (MethodData.ctor): Added `GenericMethod generic' argument.
(MethodData.Define): If we're a generic method, call
GenericMethod.DefineType() to define the type parameters.
svn path=/trunk/mcs/; revision=24003
* class.h (MonoGenericInst): Added `int count_ifaces'.
* iclass.c (ves_icall_MonoGenericInst_GetInterfaces): Use
`ginst->count_ifaces' instead `klass->interface_count' since we
may get called before the vtable is created.
* loader.c (mono_method_get_param_names): If we're a generic
instance, return and don't initialize the class.
* reflection.c (mono_reflection_setup_generic_class): Don't call
ensure_runtime_vtable().
(mono_reflection_bind_generic_parameters): Set
`ginst->count_ifaces'.
svn path=/trunk/mono/; revision=24001
* main.c (create_file_names): Try a few temp directories, since
Windows uses a different directory naming scheme apparently: #47696
svn path=/trunk/mcs/; revision=23994
* XmlDsigC14NWithCommentsTransformTest,cs : world.txt causes FileShare
Win32Error so it should be added only when it does not exist.
* XmlDsigXsltTransformTest.cs : embedded stylesheet should have
version attribute. EmbeddedStylesheet() should also load input doc.
svn path=/trunk/mcs/; revision=23984
* XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
and LoadInput() should just load transformed document.
Transformation should be done in GetOutput() because either of the
stylesheet or input can be loaded in prior. Adjusted code format.
svn path=/trunk/mcs/; revision=23983
* xmltest.cs : timestamps are only put in my box (while it is
documented as to be written, in my standalone_tests description).
svn path=/trunk/mcs/; revision=23981
* Compiler.cs,
XslStylesheet.cs : Reject xsl element other than stylesheet and
transform. Check mandatory version attribute (only for existence).
svn path=/trunk/mcs/; revision=23980
* Npgsql/NpgsqlConnection.cs:
* Npgsql/NpgsqlClosedState.cs: Added support for SSL callbacks points. Now, client applications can provide the callbacks. Npgsql provide a default callback implementation which always assumes the certificate is ok. This allows easy use as client don't need to provide callback to use ssl connections. This also fixes bug 705 in gborg.
* NpgsqlTypes/NpgsqlTypesHelper: Applied patch to correctly parse datetimes values with timezone information. Thanks Glen Parker <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23978
* XmlReflectionImporterTests.cs: Switched the AssertEquals around
the other way, so that the expecteed value was the first parameter.
This makes the error messages you get out of it better.
svn path=/trunk/mcs/; revision=23971
* XmlTextAttribute.cs: Initialise dataType with zero-length string.
fixes test case that tests for this directly
(XmlAttributesTests/XmlTextAttribute).
* TypeTranslator.cs: Check for new zero-length dataType so we don't reject
it. Treat it as null.
svn path=/trunk/mcs/; revision=23970
* Signature.cs: KeyInfo isn't required in schema.
* SignedInfo.cs: Added support for missing HMACOutputLength.
* SignedXml.cs: Added support to download a reference (experimental).
Now throw exception for unknown hash algorithm or canonicalization
methods. Changed GetPublicKey to iterate all available keys (not just
the first one).
svn path=/trunk/mcs/; revision=23968
* Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
* ColumnTypeConverter.cs: Added stub
* DefaultValueTypeConverter: Added stub
* ConstraintConverter.cs: Added stub
svn path=/trunk/mcs/; revision=23962
* DbDataPermissionAttribute.cs: Added .Net 1.1 marks
* DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataColumnMappingConverter: Added stub
* DataTableMappingConverter: Added stub
svn path=/trunk/mcs/; revision=23961
* MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
Generate types using GetDomType, so if the type is an array, it creates
the correct combination of types.
* SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
an enum, if the string is empty and the enum has [Flags], then return 0
as value. This fixes bug #55509.
* XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
are not supported. Another check: a simple type cannot be enum if it does
not have any enum facet.
And another fix: use string as default type for attribtues.
* XmlSchemas.cs: Fixed search for schema elements. An schema may import
other schemas. An imported schema would not be in the table, but its
elements (although from another namespace) would be in the schema that
imported it. So, we need know to check for every schema in the table.
* XmlSerializer.cs: Added environment variable to help debugging code
generator output.
svn path=/trunk/mcs/; revision=23957
* DataColumn.cs - Implemented TypeConverterAttribute
- Removed MonoTODO tag from ToString
- Expression set - checked for null value
svn path=/trunk/mcs/; revision=23954
* Syscall.cs: Removed argument to getgid that shouldn't be there.
Added getusername, getgroupname which wrap getpwuid, getgrgid
without dealing with pointers to structures.
Removed duplicate FileMode enum nested in Syscall class.
Added stat and lstat, which use StatMode enumeration
(like FileMode but nicer and complete) and Stat struct.
* macros.c: Helper functions for getpwuid, getgrgid, stat, lstat.
svn path=/trunk/mcs/; revision=23941
* statement.cs (Switch.SimpleSwitchEmit): Deal with default labels
that are in the middle of the statements, not only at the end.
Fixes#54987
svn path=/trunk/mcs/; revision=23940
* RdpPatterns.cs : Fixed TextDeriv() to allow whitespace text nodes
except for Data and Value (though they are overridden).
svn path=/trunk/mcs/; revision=23938
* class.cs (TypeContainer.AddField): No longer set the
`HaveStaticConstructor' flag, now we call it
`UserDefineStaticConstructor' to diferentiate the slightly
semantic difference.
The situation is that we were not adding BeforeFieldInit (from
Modifiers.TypeAttr) to classes that could have it.
BeforeFieldInit should be set to classes that have no static
constructor.
See:
http://www.yoda.arachsys.com/csharp/beforefieldinit.html
And most importantly Zoltan's comment:
http://bugzilla.ximian.com/show_bug.cgi?id=44229
"I think beforefieldinit means 'it's ok to initialize the type sometime
before its static fields are used', i.e. initialization does not need
to be triggered by the first access to the type. Setting this flag
helps the JIT to compile better code, since it can run the static
constructor at JIT time, and does not need to generate code to call it
(possibly lots of times) at runtime. Unfortunately, mcs does not set
this flag for lots of classes like String.
csc sets this flag if the type does not have an explicit static
constructor. The reasoning seems to be that if there are only static
initalizers for a type, and no static constructor, then the programmer
does not care when this initialization happens, so beforefieldinit
can be used.
This bug prevents the AOT compiler from being usable, since it
generates so many calls to mono_runtime_class_init that the AOT code
is much slower than the JITted code. The JITted code is faster,
because it does not generate these calls if the vtable is type is
already initialized, which is true in the majority of cases. But the
AOT compiler can't do this."
2004-03-10 Miguel de Icaza <[email protected]>
* class.cs (MethodData.Emit): Refactor the code so symbolic
information is generated for destructors; For some reasons we
were taking a code path that did not generate symbolic information
before.
svn path=/trunk/mcs/; revision=23937
* class.cs: Create a Constructor.CheckBase method that
takes care of all validation type code. The method
contains some code that was moved from Define.
It also includes new code that checks for duplicate ctors.
This fixes bug #55148.
svn path=/trunk/mcs/; revision=23935
* KeyInfo.cs : Attribute Id was not handlded.
* KeyInfoX509Data.cs : all array members return null when there are
no such contents. Just find child elements, not descendants.
* SignedXml.cs : key is not always required when CheckSignature() is
called.
* XmlDsigXsltTransform.cs : LoadInput should allow node list.
* XmlSignature.cs : added GetChildElements().
svn path=/trunk/mcs/; revision=23934
* XmlDsigC14NTransformTest.cs : Stream2String() should consider utf-8
escaping (i.e. it must be the same as with-comments test).
Enabled example6 (encoding test).
* XmlDsigXsltTransformTest.cs :
GetXslDoc() now works (xmlns for dsig was missing).
Added EmptyXslt(), EmbeddedStylesheet() and InvalidXslt().
Activated ignored LoadInputAsXXX() and Load2() by supplying xsl.
svn path=/trunk/mcs/; revision=23933
* Stack.cs, Queue.cs: Just use `Node' for the nested class, not
`Node<T>' (which would create another type parameter `T'
overriding `T' from the outer class).
svn path=/trunk/mcs/; revision=23923
* StringBuilder.cs
(Insert int, char[]): fix by using new string(char[]) instead of
char[].ToString() and simplify.
(Insert int, string, int): add LAMESPEC note.
(Insert int char[], int, int): handle value==null according to spec.
Use a string instead of char array + Array.Copy (gonzalo)
svn path=/trunk/mcs/; revision=23920
* loader.c (mono_lookup_pinvoke_call): Call the Windows.Forms init
code when we P/Invoke the first library in Windows.Forms, instead
of when we first open the assembly.
* assembly.c: Drop the lookup from here.
svn path=/trunk/mono/; revision=23919
* reflection.c (mono_reflection_get_custom_attrs): Use the correct
class for properties, fields and events. Finally fixes#54945.
svn path=/trunk/mono/; revision=23905
* metadata.c (mono_metadata_class_equal): New static function;
checks whether two generic instances or two generic parameters are
equal.
(mono_metadata_type_equal): Use mono_metadata_class_equal() to
compare classes.
svn path=/trunk/mono/; revision=23902
* ecore.cs (FieldExpr.ctor): Use TypeManager.TypeToCoreType().
* support.cs (ParameterData.HasArrayParameter): New property.
(ReflectionParameters.ctor): Take a MethodBase instead of a
ParameterInfo[]. If we have any type parameters, get the generic
method definition and ask it whether we have variable arguments.
svn path=/trunk/mcs/; revision=23898
* Convert.cs: FromBase64 now ignore some characters (tab, LF, CR and
spaces) which fixed#54939. Changed the way that the length is
validated (multiple of 4) because the ignored characters must not be
included in the count.
svn path=/trunk/mcs/; revision=23896
* FromBase64Transform.cs: Now throws ObjectDisposedException and
return true for CanReuseTransform (as MS implementation).
svn path=/trunk/mcs/; revision=23895
* configure.in acconfig.h: Add a --with-sigaltstack option for platforms
where the sigaltstack based exception handling does not work.
svn path=/trunk/mono/; revision=23893
of errors to the base class.
* ContractSearchPattern.cs, DiscoveryDocumentLinksPattern.cs,
DiscoveryDocumentSearchPattern.cs, XmlSchemaSearchPattern.cs: Implemented.
* DiscoveryClientProtocol.cs: Do not throw exceptions in ResolveAll method,
rather add them to the errors list.
* DiscoveryReference.cs: Generate DiscoveryException where needed, so
DiscoveryClientProtocol can get the url for which an exception was thrown.
* DiscoveryExceptionDictionary.cs: Implemented.
svn path=/trunk/mcs/; revision=23892
* mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
stuff if SIGSEGV_ON_ALTSTACK is not defined.
svn path=/trunk/mono/; revision=23890
* FromBase64Transform.cs: Two new unit tests showing that the
transform doesn't care if it's data is invalid base64. Convert class
is on it's own.
svn path=/trunk/mcs/; revision=23889
* ConvertTest.cs: Added another test showing that input length
can't easily be used to check for valid base64 encoding.
svn path=/trunk/mcs/; revision=23888
* DataBinder.cs: allow unquoted string expressions (e.g. "[test]") and
handle single quotes and a few corner cases correctly (see test cases).
svn path=/trunk/mcs/; revision=23886
* FromBase64Transform.cs: Converted to NUnit2 format. New unit tests
for properties, Dispose, Reuse and ignored characters.
svn path=/trunk/mcs/; revision=23883
* ConvertTest.cs: Added a new unit tests for FromBase64String and
FromBase64CharArray to check for ignored characters (tab, lf, cr
and spaces). Splitted existing tests into smaller tests.
svn path=/trunk/mcs/; revision=23881
* PKCS8.cs: Added EncodeRSA, EncodeDSA and completed GetBytes() so it
is now possible to encode PKCS8 files (this is required to encode
PKCS12 files).
svn path=/trunk/mcs/; revision=23872
* MonoEvent.cs (MonoEventInfo): Replaced `parent' with
`declaring_type' and `reflected_type'.
(MonoEvent): Distinguish between declaring and reflected type.
svn path=/trunk/mcs/; revision=23862
ContentEncoding in SoapServerMessage.
* LogicalMethodInfo.cs: Implemented AsyncResultParameter, BeginInvoke and
EndInvoke. Fixed ComputeParameters, so it computes the correct parameters
for async logical methods.
* Methods.cs: Check that client proxies have one and only one
WebServiceBindingAttribute.
* PatternMatcher.cs: Implemented (in fact, just moved code from
TextReturnReader.cs)
* SoapDocumentationHandler.cs: Add soap bindings in the generated
discovery document.
* SoapHttpClientProtocol.cs: Implemented method Discover().
* SoapMessage.cs: Implemented property ContentEncoding.
* TextReturnReader.cs: Moved code to PatternMatcher.cs.
svn path=/trunk/mcs/; revision=23855
bindings) from the discovery documents.
* DiscoveryDocument.cs: Added support for additional discovery information.
* DiscoveryDocumentSerializer.cs: Updated serializer, added support for
soap bindings.
svn path=/trunk/mcs/; revision=23854
* expression.cs (ArrayCreation): Fix: More than 6 nulls in
a { ... }-style array creation invokes EmitStaticInitializers
which is not good for reference-type arrays. String, decimal
and now null constants (NullCast) are not counted toward
static initializers.
svn path=/trunk/mcs/; revision=23845
* mini.c (mono_resolve_patch_target): New function which contains the
arch independent part of the patching process.
svn path=/trunk/mono/; revision=23838
* mini.c (mono_resolve_patch_target): New function which contains the
arch independent part of the patching process.
* mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
patching code to a separate function.
svn path=/trunk/mono/; revision=23837
* AssemblyBuilder.cs: The strong name key file existance will now be
checked in the current compilation directory AND in the assembly
output directory. Fix bugzilla entry #55320.
svn path=/trunk/mcs/; revision=23830
* KeyInfoX509Data.cs,
Reference.cs,
SignedInfo.cs,
XmlSignature.cs : GetElementsByTagName() should be eliminated or
at least should use namespace URI.
svn path=/trunk/mcs/; revision=23829
* loader.c, loader.h (mono_loader_wine_init): Loads the Wine/Lib
library routine if present. Notice that it will still continue
executing even if its missing, for those working on the Gtk#
edition of Windows.Forms.
* assembly.c (do_mono_assembly_open): If loading the
System.Windows.Forms call mono_loader_wini_init.
svn path=/trunk/mono/; revision=23818
* SystemException.cs: Exceptions set the HResult
* TypeLoadException.cs: Exceptions set the HResult, fixed wrong exception usage
* SByte.cs: Implemented two missing methods, fix wrong parameters for ArgumentNullException
svn path=/trunk/mcs/; revision=23816
* mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
the arch specific code can store data during a compilation.
svn path=/trunk/mono/; revision=23804
* mini.c (mini_get_ldelema_ins): Instead of allways calling the same
function, register a separate icall for each arity, so the icalls can
get a wrapper.
* mini.c (mono_print_tree): Print negative offsets in a more readable
form.
* mini.c: Make signal handling work on sparc.
* mini.c (mini_init): Add emulation for lconv_to_r8_un.
svn path=/trunk/mono/; revision=23802
* SqlParameterCollection.cs - Corrected Indenting from previous checkin
* SqlParameter.cs - Implemented TypeConverterAttribute for the class and Value method
svn path=/trunk/mcs/; revision=23795
* VBCodeProviderTest.cs: On windows, do not use mono to execute
assembly. Actually, this should be if running on MS's CLR, but
for now it will do.
svn path=/trunk/mcs/; revision=23790
* Makefile.am: Removed the reference to 'x86-64'. This was the cause
of the missing Mono daily tarballs, 'make dist' wasn't working.
We do have an 'amd64' directory, but it doesn't make it in 'make
dist'.
svn path=/trunk/mono/; revision=23784
assign_exp), we must track if our expressions are at a global
scope, in which case we must pop the last result too.
svn path=/trunk/mcs/; revision=23778
from EmitContext, suffices using only one (more notes about the
change on the Functiondeclaration entry). Imitate jsc behavior for
compiled files names, aggregate the exe or dll extension after last dot.
svn path=/trunk/mcs/; revision=23777
type of the function we are generating (global function, method
from a class, etc) and attach to it the correct custom
attribute. Simplified the code for nested functions:
refactored the code so no code duplication is involved, now we
have only one function that retrieves the name of the function,
now create a new EmitContext for the body of the method.
svn path=/trunk/mcs/; revision=23774
Expression inherits from Exp as we must keep track if we must pop
the last value (this is for the comma operator), track the parent,
at Resolve we take care of the last value of the expression.
svn path=/trunk/mcs/; revision=23770
* MSXslScriptManager.cs : if extension namespace was not found in
the script, just return null. Patch by Joshua Tauberer.
svn path=/trunk/mcs/; revision=23761
* Npgsql/NpgsqlConnectorPool.cs: Fixed bug 706 in gborg. Now Max timeout will be working correctly. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23757
* location.cs (SourceFile.HasLineDirective): New public field;
specifies whether the file contains or is referenced by a "#line"
directive.
(Location.DefineSymbolDocuments): Ignore source files which
either contain or are referenced by a "#line" directive.
svn path=/trunk/mcs/; revision=23747
now in the IRemotingTypeInfo object.
* ServerIdentity.cs: Added object type.
* TypeInfo.cs: Added null check for the class hierarchy.
svn path=/trunk/mcs/; revision=23732
gets the proxy type from the MonoRemoteClass (it can change if the
vtable is upgraded).
Modified GetTransparentProxy(). Now it takes the name of the type.
The name is taken from the IRemotingTypeInfo object.
* RemotingProxy.cs: The class must implement IRemotingTypeInfo.
svn path=/trunk/mcs/; revision=23731
a MarshalByRef type, inline a method that performs the check, taking into
account that the object can be a proxy. Also implemented tow new opcodes:
CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
* inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
svn path=/trunk/mono/; revision=23730
* domain.c: Changed hash function for proxy_vtable_hash. It now uses a
function for MonoStrings.
* icall.c: In GetTransparentProxy, assign a MonoRemoteClass to the proxy.
Added internal call for getting the proxy type.
* marshal.c: Get the type of transparent proxies from its remote_class.
Added methods that generate the IL for type checks and casts:
mono_marshal_get_isinst, mono_marshal_get_castclass,
mono_marshal_get_proxy_cancast.
* marshal.h: Declaration of the previous new methods.
* object.c: Added new moethods for creating and updating MonoRemoteClass
instances: mono_remote_class, mono_upgrade_remote_class,
* object.h: Added MonoRemoteClass reference in MonoTransparentProxy.
* verify.c: FIx transparent_proxy_fields layout.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=23729
(AddPath): Implemented.
* RectangleF.cs: Changed the internal structure from a PointF,
SizeF to floats in order to match the layout from the C API.
svn path=/trunk/mcs/; revision=23725
* KeyInfo.cs :
Fixed LoadXml() to skip text nodes as MS.NET does.
Uncommented out RSAKeyValue.
* Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
that incorrectly acquires descendants. Throw CryptographicException
if required elements were not found.
* Transform.cs : added internal GetResolver().
* XmlDsigXPathTransform.cs,
XmlDsigXsltTransform.cs : use XmlResolver.
svn path=/trunk/mcs/; revision=23711
* appdomain.c (unload_thread_main): Increase unloading timeout to
10 sec as a temporary workaround for Nant problems.
svn path=/trunk/mono/; revision=23707
* Makefile : made "make test" independent of "make" so that extraneous
archive extraction won't be run every time (for automated tests).
svn path=/trunk/mcs/; revision=23706
* io.c:
(GetFileAttributes): set the error depending on errno instead of
setting ERROR_FILE_NOT_FOUND always. See bug #55160.
svn path=/trunk/mono/; revision=23702
* Directory.cs: check if the error returned in Exists is different
from 'path not found' and throw the appropiate exception in that case.
See #55160.
svn path=/trunk/mcs/; revision=23701
* WebConnection.cs:
* WebConnectionGroup.cs: the requests queue is now shared for all the
connections belonging to the same connection group.
svn path=/trunk/mcs/; revision=23695
registry. Patch by Jose Cornado.
* IRegistryApi.cs: New file - Interface to a registry backend
(win32 on windows, no implementation on unix). This interface will
probably change when we write a Linux backend.
* Win32ResultCode.cs: New file - Win32 result codes needed to
check pinvoke. Patch by Jose Cornado.
* Registry.cs: Create the keys. Patch by Jose Cornado.
* RegistryKey.cs: Implement. Patch by Jose Cornado.
svn path=/trunk/mcs/; revision=23666
Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
This changes made for performance improvement.
svn path=/trunk/mcs/; revision=23644
* mini-ppc.c: if a relative branch displacement is too big
but it points to and area reachable with an absolute branch,
avoid the thunks.
svn path=/trunk/mono/; revision=23624
* sourcebeingcompiled.cs : new source/class to hold things previously contained in namespaces.cs
because in C# they were semantically tied to nested namespaces, and in VB.NET
they can occur only once per file.
* mbas.exe.sources: added sourcebeingcompiled.cs
* mb-parser.jay: reference RootContext.Sourcebeingcompiled things
* namespace.cs: move pieces to sourcebeingcompiled
* rootcontext.cs: use SourceBeingCompiled class
* decl.cs: reference RootContext.Sourcebeingcompiled things
svn path=/trunk/mcs/; revision=23621
* sourcebeingcompiled.cs : new source/class to hold things previously contained in namespaces.cs
because in C# they were semantically tied to nested namespaces, and in VB.NET
they can occur only once per file.
* mbas.exe.sources: added sourcebeingcompiled.cs
* mb-parser.jay: reference RootContext.Sourcebeingcompiled things
* namespace.cs: move pieces to sourcebeingcompiled
* rootcontext.cs: use SourceBeingCompiled class
* decl.cs: reference RootContext.Sourcebeingcompiled things
svn path=/trunk/mcs/; revision=23618
* XslLiteralElement.cs : quick fix for ArgumentNullException which
was because of the combination of non-namespaced instances and
exclude-result-prefixes.
svn path=/trunk/mcs/; revision=23603
* mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
negative offsets from %fp. Implement localloc. Fix local register
allocation. Fix the case when the this argument needs to be saved to
the stack. Implement some missing opcodes.
svn path=/trunk/mono/; revision=23593
* mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
negative offsets from %fp. Implement localloc. Fix local register
allocation. Fix the case when the this argument needs to be saved to
the stack. Implement some missing opcodes.
svn path=/trunk/mono/; revision=23591
* class.cs (Method.CheckBase): Avoid using FindMembers, we have
direct access to our parent, so check the method inline there.
svn path=/trunk/mcs/; revision=23585
* Npgsql/NpgsqlConnection.cs: Better handling of connection encoding. Added support for encoding and connection timeout in connection string.
* Npgsql/NpgsqlConnectorPool.cs: Added support for timeout and max connection pool.
svn path=/trunk/mcs/; revision=23583
* Npgsql/NpgsqlConnector.cs: Added support for connection encoding.
* Npgsql/NpgsqlConnection.cs: Better handling of connection encoding.
* Npgsql/NpgsqlCommand.cs: Fixed an Invalid Index error when executing ExecuteScalar() method with an empty resultset. Thanks Lynn A. Roth for the fix. This fixes bug 687 in gborg.
svn path=/trunk/mcs/; revision=23578
- Added loading & initialization code for new Wine patch
- Commented out font selection for DrawText until ToHfont is complete
svn path=/trunk/mcs/; revision=23575
* expression.cs (Invocation.EmitCall): Miguel's last commit
caused a regression. If you had:
T t = null;
t.Foo ();
In Foo the implict this would be null.
svn path=/trunk/mcs/; revision=23554
be done in the transport sink.
* BinaryCore.cs: Added TypeFilterLevel property.
* BinaryServerFormatterSinkProvider.cs: Added missing TypeFilterLevel property.
svn path=/trunk/mcs/; revision=23551
* wstest.cs: New feature: it generates a serviceStatus.xml file that
helps keeping track of services that are not available any more.
* client/localhost/ConvDocEncBarTest.cs, ConvDocEncWraTest.cs:
Improved tests.
* server/ConvDocLitBar.asmx: Removed inheritance from WebService, to make
sure that this works.
svn path=/trunk/mcs/; revision=23544
a generated serializer.
* HttpSoapWebServiceHandler.cs, WebServiceHelper.cs: Use the new static Fault serializer.
* Methods.cs: Include types declared with XmlInclude and SoapInclude to the
reflection importer. Moved Fault and its serializer to Fault.cs
* SoapHttpClientProtocol.cs: Removed unused method.
svn path=/trunk/mcs/; revision=23542
* HttpSimpleProtocolImporter.cs: Assign the correct set of schemas to the
schema importers (do not mix literal schemas with encoded schemas).
* ProtocolImporter.cs: Added LiteralSchemas and EncodedSchemas properties.
Separation between literal and encoded schemas is needed to avoid importing
for example a literal schema as encoded. Also implemented ClasifySchemas,
which separates literal from encoded schemas. I really don't like doing it
in this way, but I haven't found another way.
* SoapProtocolImporter.cs: Add type include attributes to the generated
proxy classes.
svn path=/trunk/mcs/; revision=23541
* MailMessage.cs: patch by John Luke that initialized the fields in
the message and makes Fields return the same as in MS.NET. Fixes bug
#54908.
svn path=/trunk/mcs/; revision=23528
2004-02-26 Miguel de Icaza <[email protected]>
* iterators.cs (IteratorHandler.IsIEnumerator, IsIEnumerable): New
routines to check if a type is an enumerable/enumerator allow
classes that implement the IEnumerable or IEnumerator interfaces.
* class.cs (Property, Operator): Implement IIteratorContainer, and
implement SetYields.
(Property.Define): Do the block swapping for get_methods in the
context of iterators. We need to check if Properties also
include indexers or not.
(Operator): Assign the Block before invoking the
OperatorMethod.Define, so we can trigger the Iterator code
replacement.
* cs-parser.jay (SimpleIteratorContainer): new helper class. Both
Property and Operator classes are not created when we parse the
declarator but until we have the block completed, so we use a
singleton SimpleIteratorContainer.Simple to flag whether the
SetYields has been invoked.
We propagate this setting then to the Property or the Operator to
allow the `yield' to function.
2004-02-25 Marek Safar <[email protected]>
* codegen.cs: Implemented attribute support for modules.
New AssemblyClass, ModuleClass and CommonAssemblyModulClass for
Assembly/Module functionality.
* attribute.cs, class.cs, cs-parser.jay, delegate.cs, driver.cs, enum.cs
interface.cs, rootcontext.cs, statement.cs, typemanager.cs:
Updated dependencies on CodeGen.ModuleBuilder and CodeGen.AssemblyBuilder.
2004-02-16 Marek Safar <[email protected]>
* interface.cs (FindMembers): The operation is performed on all base
interfaces and not only on the first. It is required for future CLS Compliance patch.
2004-02-12 Ben Maurer <[email protected]>
* statement.cs, codegen.cs:
This patch deals with patterns such as:
public class List : IEnumerable {
public MyEnumerator GetEnumerator () {
return new MyEnumerator(this);
}
IEnumerator IEnumerable.GetEnumerator () {
...
}
public struct MyEnumerator : IEnumerator {
...
}
}
Before, there were a few things we did wrong:
1) we would emit callvirt on a struct, which is illegal
2) we emited ldarg when we needed to emit ldarga
3) we would mistakenly call the interface methods on an enumerator
type that derived from IEnumerator and was in another assembly. For example:
public class MyEnumerator : IEnumerator
Would have the interface methods called, even if there were public impls of the
method. In a struct, this lead to invalid IL code.
2004-02-11 Marek Safar <[email protected]>
* const.cs: Const is now derived from FieldBase. Method EmitConstant name
renamed to Emit.
* delegate.cs (Define): Fixed crash when delegate type is undefined.
2004-02-11 Miguel de Icaza <[email protected]>
* cs-parser.jay: Fix small regression: we were not testing V2
compiler features correctly.
* interface.cs: If the emit context is null, then create one
2004-02-09 Marek Safar <[email protected]>
* decl.cs (GetSignatureForError): New virtual method to get full name
for error messages.
* attribute.cs (IAttributeSupport): New interface for attribute setting.
Now it is possible to rewrite ApplyAttributes method to be less if/else.
* interface.cs : All InterfaceXXX classes are now derived from MemberCore.
Duplicated members and code in these classes has been removed.
Better encapsulation in these classes.
2004-02-07 Miguel de Icaza <[email protected]>
* assign.cs (Assign.DoResolve): When dealing with compound
assignments, there is a new rule in ECMA C# 2.4 (might have been
there before, but it is documented here) that states that in:
a op= b;
If b is of type int, and the `op' is a shift-operator, then the
above is evaluated as:
a = (int) a op b
* expression.cs (Binary.ResolveOperator): Instead of testing for
int/uint/long/ulong, try to implicitly convert to any of those
types and use that in pointer arithmetic.
* delegate.cs (Error_NoMatchingMethodForDelegate): Compute the
method to print information for from the type, not from the
null-method we were given.
2004-02-01 Duncan Mak <[email protected]>
* cs-tokenizer.cs (get_cmd_arg): Skip over whitespace before
parsing for cmd, fixes bug #53694.
2004-02-04 Marek Safar <[email protected]>
* class.cs, decl.cs: Fixed problem where IndexerName attribute was ignored
in the member name duplication tests. Property and operator name duplication
was missing too (error tests cs0102-{2,3,4,5}.cs, cs0111-{3,4}.cs).
2004-02-03 Marek Safar <[email protected]>
* interface.cs (PopulateMethod): Fixed crash when interface method
returns not existing type (error test cs0246-3.cs).
2004-02-02 Ravi Pratap M <[email protected]>
* cs-parser.jay (interface_accessors): Re-write actions to also
store attributes attached to get and set methods. Fix spelling
while at it.
(inteface_property_declaration): Modify accordingly.
(InterfaceAccessorInfo): New helper class to store information to pass
around between rules that use interface_accessors.
* interface.cs (Emit): Apply attributes on the get and set
accessors of properties and indexers too.
* attribute.cs (ApplyAttributes): Modify accordingly to use the
right MethodBuilder when applying attributes to the get and set accessors.
2004-01-31 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Applied patch from Marek Safar to fix bug 53386
2004-01-26 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Handle #line hidden from PDC bits.
2004-01-25 Miguel de Icaza <[email protected]>
* cs-parser.jay: Remove YIELD token, instead use the new grammar
changes that treat `yield' specially when present before `break'
or `return' tokens.
* cs-tokenizer.cs: yield is no longer a keyword.
2004-01-23 Marek Safar <[email protected]>
* cs-parser.jay, class.cs (DefineDefaultConstructor): Fixed ModFlags
setting for default constructors.
For default constructors are almost every time set wrong Modifier. The
generated IL code has been alright. But inside mcs this values was
wrong and this was reason why several of my CLS Compliance tests
failed.
svn path=/trunk/mcs/; revision=23525
* typemanager.cs (GetFullNameSignature): Improve the method to
cope with ".ctor" and replace it with the type name.
* class.cs (ConstructorInitializer.Resolve): Now the method takes
as an argument the ConstructorBuilder where it is being defined,
to catch the recursive constructor invocations.
svn path=/trunk/mcs/; revision=23524
* iterators.cs (IteratorHandler.IsIEnumerator, IsIEnumerable): New
routines to check if a type is an enumerable/enumerator allow
classes that implement the IEnumerable or IEnumerator interfaces.
* class.cs (Property, Operator): Implement IIteratorContainer, and
implement SetYields.
(Property.Define): Do the block swapping for get_methods in the
context of iterators. We need to check if Properties also
include indexers or not.
(Operator): Assign the Block before invoking the
OperatorMethod.Define, so we can trigger the Iterator code
replacement.
* cs-parser.jay (SimpleIteratorContainer): new helper class. Both
Property and Operator classes are not created when we parse the
declarator but until we have the block completed, so we use a
singleton SimpleIteratorContainer.Simple to flag whether the
SetYields has been invoked.
We propagate this setting then to the Property or the Operator to
allow the `yield' to function.
svn path=/trunk/mcs/; revision=23523
* reflection.c (mono_reflection_bind_generic_parameters): Take a
`MonoReflectionType *' instead of a `MonoType *'.
svn path=/trunk/mono/; revision=23511
of XmlInclude attributes needed for the service class.
IsMapExported: Removed check for object type, since it can now be exported.
SetMapExported: Use the type name as key, since different importers may
be used to create a map for the same type.
GenerateClassInclude: Updated signature.
* SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
Implemented IncludeTypes.
* XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* XmlMemberMapping.cs: Added missing property.
* XmlReflectionImporter.cs: GetReflectionMembers must be private.
Implemented IncludeTypes().
* XmlSchemaExporter.cs: Added support for exporting typeof(object).
* XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
Now, it does a regular import and then assign the required base class to
the imported map. In this way it is possible to assign a base type for a
map that was previously imported without a base type.
* XmlTypeMapping.cs: Added internal method SetRoot().
svn path=/trunk/mcs/; revision=23510
* certmgr.1, setreg.1: New. Man files for new security tools.
* man.xml: updated to include new tools certmgr and setreg.
* Makefile.am: update to include certmgr and setreg.
svn path=/trunk/mono/; revision=23509
* DefaultCertificatePolicy.cs: New. Certificate validation
policy compatible with the documented one present in Fx. It
allows valid certificates and expired certificates to be used
for SSL connections.
* ServicePointManager.cs: Removed the DummyPolicy. Now creates
a DefaultCertificatePolicy to validate certificates.
svn path=/trunk/mcs/; revision=23493
* AssemblyInfo.cs: Ajusted versions, informations and copyrights.
* certmgr.cs: New. Very limited certificate manager. Allow to add new
certificates into the Trusted certificate store.
* Makefile: Added certmgr and setreg to the build.
* README: Updated.
* setreg.cs: New. Allow to add/remove test root certificates from the
trusted certificate store.
svn path=/trunk/mcs/; revision=23489
* X509Store.cs: Changed not to use base64 in filenames as it can
conflict with path separators. Now use plain hex. Now catch
incorrectly encoded certificates / CRL in stores. Added Name property.
svn path=/trunk/mcs/; revision=23488
* liveness.c: Make all variables uses in exception clauses volatile, to
prevent them from being allocated to registers. Fixes#42136.
svn path=/trunk/mono/; revision=23486
* DES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Also ensured that no weak keys
would be generated.
* SymmetricAlgorithm.cs: Return a copy of the key (and IV) so it
doesn't get destroyed when dispose is called (in this case the key
zeroization is the caller's responsability). Match MS implementation.
* TripleDES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Fix bugzilla #54868.
svn path=/trunk/mcs/; revision=23484
* Mono.Security.Protocol.Tls/HandshakeState.cs:
- New file.
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Modified the level of some alerts according to the RFC.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/SslServerStream.cs:
* Mono.Security.Protocol.Tls/Context.cs:
* Mono.Security.Protocol.Tls/ClientContext.cs:
* Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs:
- Added changes for better handling of ClientHelloRequest messages.
svn path=/trunk/mcs/; revision=23482
* ServicePoint.cs: SendContinue is always false for HTTP/1.0
* WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
calling more the ContinueDelegate more than once when we get the
headers in several packets.
* WebConnectionStream.cs: removed call to WaitForContinue.
svn path=/trunk/mcs/; revision=23477
* WebConnection.cs: Update previous patch to use HttpsClientStream
(internal in Mono.Security assembly) in place of SslClientStream.
This will reduce reflection and allow to use ICertificatePolicy.
svn path=/trunk/mcs/; revision=23469
* Mono.Security.dll.sources: Added new internal class HttpsClientStream
in Mono.Security.Protocol.Tls to the build.
svn path=/trunk/mcs/; revision=23468
* HttpsClientStream.cs: New. Internal glue class between System.dll
WebConnection and SslClientStream to reduce reflection.
* SslClientStream.cs: RaiseServerCertificateValidation is now virtual
to allow HttpsClientStream to override it.
svn path=/trunk/mcs/; revision=23467
* Removed
- RngGrammar.cs
- RngNameClass.cs
- RngPattern.cs
- RngPatternType.cs
They are moved to RelaxngXXX.cs and improved
svn path=/trunk/mcs/; revision=23460
* tlstest.cs: Updated to support Basic and Digest authentication. Also
support ICertificatePolicy for WebRequests.
svn path=/trunk/mcs/; revision=23448
* Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
* Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23447
* Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
svn path=/trunk/mcs/; revision=23446
* Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23445
* decl.cs (DeclSpace.CurrentTypeParameters): New protected
property; returns the type parameters just from the current type,
ie. with the ones from outer classes.
(DeclSpace.LookupGeneric): First search in the current class, then
in outer classes.
(DeclSpace.initialize_type_params): When hiding a type parameter
from an outer class, put it into the `type_param_list' anyways.
* expression.cs (MemberAccess.expr): Made this field protected.
* class.cs (TypeContainer.Define): The `CurrentType' just contains
the type parameters from the current class.
* generic.cs (ConstructedType.ResolveType): Support nested generic
types by taking the type parameters which we inherit from outer
classes into account.
(GenericMemberAccess.ResolveAsTypeStep): Override this and added
support for nested generic types.
svn path=/trunk/mcs/; revision=23437
* class.c (_mono_class_get_instantiation_name): Added `int offset'
argument for nested types.
(mono_class_create_generic): Added support for nested generictypes.
* class.h (MonoGenericInst): Added `MonoType *nested_in' and
`GList *nested'.
* icall.c (ves_icall_MonoGenericInst_GetNestedTypes): New icall.
* reflection.c (method_encode_signature): Increase the minimum
value of `size' from 10 to 11.
(mono_reflection_bind_generic_parameters): Take `int type_argc'
and `MonoType **types' arguments instead of the `MonoArray
*types'; added `MonoType *nested_in'. Recursively instantiate
nested classes.
svn path=/trunk/mono/; revision=23435
* codegen.cs: Implemented attribute support for modules.
New AssemblyClass, ModuleClass and CommonAssemblyModulClass for
Assembly/Module functionality.
* attribute.cs, class.cs, cs-parser.jay, delegate.cs, driver.cs, enum.cs
interface.cs, rootcontext.cs, statement.cs, typemanager.cs:
Updated dependencies on CodeGen.ModuleBuilder and CodeGen.AssemblyBuilder.
svn path=/trunk/mcs/; revision=23429
* DigestClient.cs: Fixed issue with Apache server which do not use "
for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
svn path=/trunk/mcs/; revision=23424
* mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
Make the cost of allocating a variable to a register arch dependent.
svn path=/trunk/mono/; revision=23419
* mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
helper function to cut back on the number of #ifdefs needed.
svn path=/trunk/mono/; revision=23417
* mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
* tramp-sparc.c (create_specific_trampoline): Use g5 register instead
of l0 since that is callee saved.
* tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
to virtual calls.
* mini-sparc.c: Ongoing work + flag virtual calls with a special kind
of delay instruction.
svn path=/trunk/mono/; revision=23400
* X509Certificate.cs: Add support for the OID "1.3.14.3.2.29" (SHA1
with RSA). Added a fix for "really" null algorithm parameters.
* X509CertificateCollection.cs: Fixed Contains and IndexOf (worked
on objects but not for the same certificate in a different object).
svn path=/trunk/mcs/; revision=23398
and writers for several maps in a single class. Added support for
XmlMemberMapping. Fixed generation of serializers that use encoded format.
* 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, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
Added InternalEquals method.
* XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
* SoapReflectionImporter.cs: Set SerializationSource to generated maps.
* XmlCustomFormatter.cs: Fixed little bug.
* XmlMapping.cs: Added Source property. This a global identifier of the map.
* XmlReflectionImporter.cs: Set SerializationSource to generated maps.
* XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
mapping members.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
* XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
correctly used.
* XmlSerializer.cs: Added support for generation of serializers.
svn path=/trunk/mcs/; revision=23392
* decl.cs (DeclSpace.IsGeneric): Make this a property instead of a
field and check whether we're nested inside a generic type.
(DeclSpace.ResolveType): If we're resolving to a generic type
definition, create a ConstructedType and return its resolved type.
(DeclSpace.initialize_type_params): New private method;
initializes the `type_param_list' field from the type parameters
from this and all enclosing classes.
(DeclSpace.TypeParameters): Call initialize_type_params() unless
we're already initialized.
svn path=/trunk/mcs/; revision=23382
* TestAnchors.cs: Removed - no need to be hardcoded anymore.
* X509Chain.cs: Updated to use the new store for trusted roots.
svn path=/trunk/mcs/; revision=23379
* X509CRL.cs: New. Certificate Revocation List v1/v2 support.
* X509Store.cs: New. Managed each individual store (with or
without CRL support).
* X509StoreManager.cs: New. Certificate Store Manager to access
user and machine stores and to merge them when required.
* X509Stores.cs: New. Certificate stores group for either the
current user or the local machine.
svn path=/trunk/mcs/; revision=23377
* String.cs (Equals): Speed up this method by avoiding ABC
and by comparing by 32 bit words rather than 16 bit chars.
This gives between 0x (for 1 char) and >2x (for large strings)
factor of improvement.
A big thanks to Miguel, who suggested the integer compares.
svn path=/trunk/mcs/; revision=23369
* Mono.Security.Protocol.Tls/TlsContext.cs:
- Removed file, implementation is now present in:
Context.cs
ClientContext.cs
ServerContext.cs
* Mono.Security.Protocol.Tls/Context.cs:
* Mono.Security.Protocol.Tls/ClientContext.cs:
* Mono.Security.Protocol.Tls/ServerContext.cs:
* Mono.Security.Protocol.Tls/ServerRecordProtocol.cs:
- New classes.
* Mono.Security.Protocol.Tls/SslServerStream.cs:
- Added implementation for properties, and read/write methods
as in SslClientStream.
- doHandshake method is not implemented yet.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/Ciphersuite.cs:
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
* Mono.Security.Protocol.Tls.Alerts/TlsCloseNotifyAlert.cs:
* Mono.Security.Protocol.Tls.Handshake/TlsHandshakeMessage.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/*.cs:
- Added changes for make use of the new Context implementation.
* Mono.Security.Protocol.Tls.Handshake.Server/*.cs:
- New classes with method signatures only for the server handshake
implementation.
svn path=/trunk/mcs/; revision=23363
* appdomain.h (MonoDomain): Add preallocated null_reference_ex and
stack_overflow_ex members which are used by exception handling.
* appdomain.c (mono_runtime_init): Initialize the new members.
svn path=/trunk/mono/; revision=23360
* CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an
inherited field, prefix the name with the class name. This fixes#54439.
Moved check for reflection serialization variable to BinaryCommon.
svn path=/trunk/mcs/; revision=23358
* System.Web.Compilation/AspGenerator.cs: error out when <object> server
tag is not closed. Ignore any content inside it.
* System.Web.UI/ControlBuilder.cs: added SetTagName().
* System.Web.UI/ObjectTagBuilder.cs: use SetTagName so that we can
properly close <object> builders if the closing tag is provided.
svn path=/trunk/mcs/; revision=23351
* Stack.cs, Queue.cs: New files. Hmm, looks like I forgot to add
them to CVS; they're already on my hard disk since December or so.
svn path=/trunk/mcs/; revision=23347
* class.cs (Method.Define): Create the generic method before
calling DoDefine().
(Memberbase.DoDefine): Added DeclSpace argument (in addition to
the TypeContainer one); we use this for generic methods.
* decl.cs (CheckAccessLevel): If we're a GenericMethod, use our
parent's TypeBuilder.
svn path=/trunk/mcs/; revision=23346
* class.c (mono_class_inflate_generic_type): Fixed two bugs.
(mono_class_init): If we're a generic instance and an interface,
compute `class->interface_id'; also create `class->interfaces'
here and inflate them.
* metadata.c (do_mono_metadata_parse_generic_inst): Compute
`ginst->is_open'.
(mono_type_stack_size): Fix for MONO_TYPE_GENERICINST.
* reflection.c (mono_image_create_token): Allow "MonoGenericInst".
svn path=/trunk/mono/; revision=23339
* icall.c: Martin did not do what he said in the ChangeLog for
2004-02-18, but put back the changes for properties and events.
Commenting those changes out again and adding comment to bug #54518.
* process.c: removed warning.
svn path=/trunk/mono/; revision=23322
* System.Xml_test.dll.sources : Removed XmlSchemaAssertion.cs. It does
not seem to be in CVS. This was breaking the build on windows.
svn path=/trunk/mcs/; revision=23315
* TlsServerCertificate.cs: Added code to validate the server X.509
certificate (identity, usage) and it's chain to a trusted root.
Note that the verification is commented for the time being.
svn path=/trunk/mcs/; revision=23299
* mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
low in the address space. Correctly flush memory in thunks where we
output native code.
svn path=/trunk/mono/; revision=23295
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/TlsContext.cs:
- Added changes for handle te SecurityProtocolType enum
as a Flags enum.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs:
- Let the Ssl3 message to be process in the same way as the Tls1.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs:
- Added changes for use the Protocol version send by the server
* Mono.Security.Protocol.Tls/CipherSuite.cs:
- Compute the premaster secret using the protocol version sent in
the ClientHello message instead of the actual protocol version.
svn path=/trunk/mcs/; revision=23293
* X509Chain.cs: Added an option to use a pre-built chain (like TLS
offers) to save time rebuilding it. Added some validations and more
detailled status. Still a LOT to do!
* X509ChainStatusFlags.cs: New. Status code for the results of the
chain building and verification.
svn path=/trunk/mcs/; revision=23290
* marshal.c (emit_struct_conv): Print an error message instead of
asserting when a type does not have the StructLayout attribute.
svn path=/trunk/mono/; revision=23283
* Mono.Security.Protocol.Tls.Alerts/TlsWarningEventAgrs.cs:
- Removed no more needed file.
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Added 4 new properties:
* Message
* IsWarning
* IsFatal
* IsCloseNotify
- Return always the same message when working in release mode
(The authentication or decryption has failed.)
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Changes to the sync code.
- Record protocol stuff moved to the new classes.
- Removed Warning event.
- Added control over the CloseNotify Alert
to BeginRead method.
- Return true in the server certificate validation method
if there are no errors.
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:
- New classes for handle the SSL/TLS record protocol.
svn path=/trunk/mcs/; revision=23278
* HttpWebRequest.cs: arghhh. I used the server response headers instead
of what the client is supposed to send. Thanks to Helge Hess.
svn path=/trunk/mcs/; revision=23275
* reflection.c (mono_type_get_object): Also use the cache for
generic instances.
(mono_reflection_bind_generic_parameters): Always compute
`ginst->ifaces'.
svn path=/trunk/mono/; revision=23270
* mini.c (mini_get_method): New static method; inflate all generic
methods and methods in open generic instances.
(mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
(ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=23269
* image.h (MonoImage): Added `GHashTable *generic_inst_cache'.
* metadata.c (mono_metadata_generic_inst_hash): New method.
(mono_metadata_generic_inst_equal): New method.
* reflection.c (mono_reflection_bind_generic_parameters): Use the
`klass->image->generic_inst_cache' cache to avoid creating
duplicate MonoGenericInst's.
* class.c (mono_class_inflate_generic_type): Use the cache.
svn path=/trunk/mono/; revision=23263
* AuthenticationManager.cs: implemented PreAuthenticate().
* HttpWebRequest.cs: once we know the version of the server, use it if
below the requested one. Remove 'Expect', 'Content-Length' and /or
'Transfer-Encoding' if appropiate due to changes in version. Fixed
'Host' header for non-standard ports. Support preauthentication. Closes
bug #50530.
svn path=/trunk/mcs/; revision=23260
* FileStream.cs: (.ctor) Path.DirectoryName can be empty and make
Path.GetFullPath crash. Fixed it.
* MonoIO.cs: fixed typo.
svn path=/trunk/mcs/; revision=23257
* helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
* mini-sparc.c (flushi mono_arch_output_basic_block): make
it compile using Sun's compiler.
svn path=/trunk/mono/; revision=23255
* io-layer/error.c: fixed mapping for EPROTONOSUPPORT and
ESOCKTNOSUPPORT.
* io-layer/sockets.[ch]: retry creating the socket for AF_INET, SOCK_RAW
using IP protocol with IP over IP. Implemented WSAIoctl UNIX-style.
* metadata/icall.c: added Socket.WSAIoctl icall.
* metadata/socket-io.[ch]: implemented
ves_icall_System_Net_Sockets_Socket_WSAIoctl.
svn path=/trunk/mono/; revision=23252
* HttpWebRequest.cs: check for missing or wrong URI in Location header
when redirecting.
* WebConnection.cs: if the data read does not contain all the headers,
keep it around and read the rest until we get to the response body.
Allow response code with no description. Fixed bug #54543.
svn path=/trunk/mcs/; revision=23244
is used for setting the class or valuetype of a types instance so the class
reference isn't modified. Allows things like 'valuetype
[mscorlib]System.Object'.
svn path=/trunk/mcs/; revision=23234
* SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
Default and Ssl2 to NET_1_2 profile. Enum is now internal for NET_1_0
profile (as we need it for SslClientStream).
* ServicePoint.cs: Added internal SetCertificates(client,server).
* ServicePointManager.cs: Added CheckCertificateRevocationList and
CheckCertificateRevocationList static properties (public in 1.1,
internal for 1.0).
* WebConnection.cs: Dynamically creates a SslClientStream (from
Mono.Security assembly) in case of https. Changed NetworkStream to
Stream everywhere.
svn path=/trunk/mcs/; revision=23225
* HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
don't know the server version or it's 1.0.
* ServicePoint.cs: added SetVersion.
* WebAsyncResult.cs: remove ChunkAsyncResult.
* WebConnection.cs: set the ServicePoint version when getting a response
from the server.
* WebConnectionStream.cs: when posting chunked content, send the head,
body and trailer of the chunk at once instead of doing 3 separate
writes, which may cause troubles.
svn path=/trunk/mcs/; revision=23223
2004-02-18 Urs C Muff <[email protected]>
* debug-mono-symfile.c, mono-debug-debugger.c, mono-debug.c: Make
this work on PPC and other big-endian architectures.
* debug-mono-symfile.h: Prepended the names of all the `guint32'
fields with an underscore to make sure they're only accessed by
the read32() macro.
svn path=/trunk/mono/; revision=23218
* icall.c: Put the klass->refclass changes back for methods and
fields, but not for properties and events. We're currently not
distinguishing between DeclaringType and ReflectedType for
properties and events, that's what caused the regressions.
svn path=/trunk/mono/; revision=23217
* object.c:
(mono_async_result_new): the handle can be NULL.
* threadpool.c: Use an event instead of a semaphore, don't initialize
it until needed. This saves quite a few semaphores from being created
when using the threadpool.
svn path=/trunk/mono/; revision=23216
* SslClientStream.cs: Fixed (inverted) condition for ServerCertificate.
* SecurityProtocolType.cs: Added [Serializable] to enum to match MS
implementation.
svn path=/trunk/mcs/; revision=23207
* WebConnection.cs: if we get a 100 when we're not waiting for it, set
that information in the ServicePoint.
* WebConnectionStream.cs: send headers in the right order for
non-chunked POST.
svn path=/trunk/mcs/; revision=23204
* class.c (mono_class_init): If we're a generic instance and don't
come from a TypeBuilder, inflate our members here.
(mono_class_from_generic): Removed; just use `ginst->klass' instead.
(mono_class_create_generic): New public method.
(mono_class_initialize_generic): Removed.
(get_instantiation_name): Renamed to
_mono_class_get_instantiation_name() and made it public.
svn path=/trunk/mono/; revision=23201
* class.c (mono_class_inflate_generic_type): Clear the new
instance's `nginst->klass' when inflating a generic instance.
(mono_class_is_subclass_of): Added (basic) support for generic
instances.
svn path=/trunk/mono/; revision=23200
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added changes to security properties for check that the handshake is finished.
svn path=/trunk/mcs/; revision=23198
* aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
code.
* mini-ppc.c: handle calls outside of the allowed range with thunks
allocated using the code manager.
* tramp-ppc.c: use the code manager to hold generated native code.
Fixed the magic trampoline to just patch vtable entries.
svn path=/trunk/mono/; revision=23191
* MonoGenericInst.cs (MonoGenericInst.GetMethods): Walk up the
class hierarchy and return members from the parent classes.
(GetConstructors, GetFields): Likewise.
svn path=/trunk/mcs/; revision=23189
* mono-codeman.c, mono-codeman.h: allocate extra room in memory close
to the native code for arch where calls have a limited immediate
displacement.
svn path=/trunk/mono/; revision=23188
* icall.c (ves_icall_Type_GetFields): Renamed to
ves_icall_Type_GetFields_internal() and added a
`MonoReflectionType *rtype' argument; pass it to
mono_field_get_object() to set the field's "reflected" type.
(ves_icall_Type_GetConstructors): Likewise.
(ves_icall_Type_GetEvents): Likewise.
(ves_icall_Type_GetMethodsByName): Added `MonoReflectionType *rtype'
argument; pass it to mono_method_get_object() to set the method's
"reflected" type.
svn path=/trunk/mono/; revision=23187
* MonoType.cs (GetConstructors): Renamed the interncall to
GetConstructors_internal(), made it internal and added a `Type
reflected_type' argument to it.
(GetEvents, GetFields): Likewise.
(GetMethodsByName): Added `Type reflected_type' argument.
(GetPropertiesByName): Likewise.
svn path=/trunk/mcs/; revision=23186
* LocationPathPattern.cs : Optimized Matches(). For non-positional
patterns, it never iterates predicate, just evaluate boolean.
svn path=/trunk/mcs/; revision=23182
* MonoGenericInst.cs (MonoGenericInst.initialize): Don't inflate
all the members here; we only do this for members of the current
class and only when they're actually queried for.
svn path=/trunk/mcs/; revision=23174
* class.h (MonoDynamicGenericInst): New type.
(MonoGenericInst): Added `dynamic_info' and `is_dynamic' fields.
* icall.c (ves_icall_MonoGenericInst_GetMethods): New interncall.
(ves_icall_MonoGenericInst_GetConstructors): New interncall.
(ves_icall_MonoGenericInst_GetFields): New interncall.
* class.c (mono_class_from_generic): Don't call
mono_class_initialize_generic() if this is a dynamic instance;
ie. it's being created from a TypeBuilder.
Use MONO_TYPE_GENERICINST for `class->this_arg.type' and
`class->byval_arg.type'.
* reflection.c (mono_reflection_inflate_method_or_ctor): Renamed
to `inflate_method' and made static.
(mono_reflection_inflate_field): Removed.
(mono_reflection_generic_inst_initialize): New public method.
* reflection.h (MonoReflectionGenericInst): Removed `methods',
`ctors' and `fields'; added `initialized'.
svn path=/trunk/mono/; revision=23173
is now possible to use fast IL generated classes that use direct access
to class fields instead of using reflection.
* CodeGenerator.cs: New file. Has several methods used by ObjectWriter to
generate serialization code.
svn path=/trunk/mcs/; revision=23171
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added changes for bring async methods to work ( Thanks to Sebastien Pouliot )
- Reworked the record fragmentation.
svn path=/trunk/mcs/; revision=23169
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Fix for send the close notify alert in the Close method
only if the Handshake is fully negotiated.
svn path=/trunk/mcs/; revision=23165
* profiles/generics.make: Renamed to `martin-generics.make' and
added a comment to the file. I'll rename this back when it's
ready for public use.
svn path=/trunk/mcs/; revision=23164
if the namespace of the element is defined in the list of namespaces
provided to the XmlSerializer. This fixes bug #54427.
svn path=/trunk/mcs/; revision=23163
* HttpWebRequest.cs: on second and sucesive tries when authenticating,
don't use chunked encoding for POST, as we know the content length and
have the body. Nullify bodyBuffer always in CheckFinalStatus.
* WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
IAsyncResult when writing CRLF at the end of a chunk.
* WebConnectionStream.cs: support sending chunked data.
svn path=/trunk/mcs/; revision=23153
* XslTransformProcessor.cs : Bugfix. Stored keys should be cleared.
* XslKey.cs : Added ExprKeyContainer expression type, which is
designed to be matched at any level.
* Compiler.cs : support for ExprKeyContainer.
svn path=/trunk/mcs/; revision=23145
* XmlSchema.cs,
XmlSchemaAttribute.cs
XmlSchemaAttributeGroup.cs,
XmlSchemaComplexContent.cs,
XmlSchemaComplexType.cs,
XmlSchemaContent.cs,
XmlSchemaDatatype.cs,
XmlSchemaNotation.cs,
XmlSchemaObject.cs,
XmlSchemaParticle.cs : extra TODO removal. foreach elimination.
Moved attribute group recursion check field from XmlSchemaObject
to XmlSchemaAttributeGroup.
Fixed XmlSchemaParticle.EmptyParticle class access modifier.
* XmlSchemaSimpleType.cs,
XmlSchemaSimpleTypeContent.cs,
XmlSchemaSimpleTypeList.cs,
XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs : Removed "actualBaseSchemaType" field
and the owner simpleType should hold the corresponding type info.
Collect base type info in prior to validation.
svn path=/trunk/mcs/; revision=23143
* XslKey.cs : Now it collects key and matching nodes at the first
evaluation time. After that, we can just get them from the table.
* Compiler.cs : Added KeyCompilationMode. It is used to prevent
prohibited key() usage in "match" and "use" attributes in xsl:key.
Modified accessibility of some classes.
* GenericOutputter.cs,
HtmlEmitter.cs,
TextEmitter.cs,
TextOutputter.cs,
XmlWriterEmitter.cs : made classes internal.
* XslOutput.cs : support line info for exception.
* XsltCompiledContext.cs : implemented CompareDocument() - so easily.
svn path=/trunk/mcs/; revision=23141
* mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
if we have a working __thread implementation.
svn path=/trunk/mono/; revision=23137
Those are basically methods to add custom attributes to element and
attribute members.
* SoapCodeExporter.cs: Track changes in MapCodeGenerator.
* XmlCodeExporter.cs: Better support for custom attribute generation for
method parameters.
* XmlCustomFormatter.cs: Added null check.
* XmlSchemaImporter.cs: do not set IsOptionalValueType property to
attributes that are required.
* XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
as attributes.
svn path=/trunk/mcs/; revision=23131
*Npgsql/NpgsqlStartupPacket.cs: Added code to set datestyle to iso when connecting using protocol 3.0 version. Thanks Sami Kuhmonen <[email protected]> for pointing it out.
svn path=/trunk/mcs/; revision=23130
*Npgsql/NpgsqlConnection.cs:
Added support for Unicode encoding. Fix feature request 534 on gborg cvs.
Changed limit setting of max connections from unlimited to 20.
svn path=/trunk/mcs/; revision=23129
* Mono.Security.Protocol.Tls/TlsCipherSuiteFactory.cs:
- Changed ciphersuites order of preference ( Thanks to Sebastien Pouliot for his feedback ).
svn path=/trunk/mcs/; revision=23125
failure, resend the body. This fixes bug #51841.
* WebConnectionStream.cs: Added properties for getting what's been written.
svn path=/trunk/mcs/; revision=23121
* cs3001-{7,8}.cs,
cs3005-(1-22}.cs,
cs3006-{1-6}.cs,
cs3012.cs,
cs3013.cs New error tests for CLS-compliance.
* cs186-2.cs,
cs0579-2.cs New error tests.
* makefile: Added CS3005-16-lib.cs and CS3013-module.cs as helpers for errors cs3005-16.cs and cs3013.cs.
svn path=/trunk/mcs/; revision=23119
* interface.cs (FindMembers): The operation is performed on all base
interfaces and not only on the first. It is required for future CLS Compliance patch.
svn path=/trunk/mcs/; revision=23118
* ARC4Managed.cs: Removed all % 256 (modulo) because typecasting to
byte already ensure the result would be correct (as suggested by
Technoboy). Now use KeyBuilder to create new keys.
svn path=/trunk/mcs/; revision=23111
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added specific control od available data for Network Streams
on Read ( Thanks to Francisco Figueiredo Jr. for his feedback ).
- Removed test code.
svn path=/trunk/mcs/; revision=23110
* DTDValidatingReader.cs: simple optimization. there is only
one string, skip the string builder and just return the string.
svn path=/trunk/mcs/; revision=23103
* XmlDsigC14NTransformTest.cs,
XmlDsigC14NWithCommentsTransformTest.cs:
uncommented some code blocks which should be tested.
svn path=/trunk/mcs/; revision=23098
* XmlCanonicalizer.cs: Use child nodes of entity reference nodes (it
is now correctly supported in XmlEntityReference).
svn path=/trunk/mcs/; revision=23097
* mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
contains a call to the wrapped function.
* mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
OP_<CALL>_IMM opcodes, and use them under X86.
* mini.c (mono_jit_find_compiled_method): Fix warning.
svn path=/trunk/mono/; revision=23094
* NumberFormatInfo.cs : CurrentInfo should not return clone every
time (MS.NET returns the same object; try object.ReferenceEquals()).
svn path=/trunk/mcs/; revision=23093
* Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which retur
n no data. Thanks Morten Mertner <[email protected]> for the fix.
svn path=/trunk/mcs/; revision=23090
* Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which return no data. Thanks Morten Mertner <[email protected]> for the fix.
svn path=/trunk/mcs/; revision=23089
* jit-icalls.c (mono_ldftn_nosync): New JIT icall.
* tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
functionality to mini.c.
* mini.c (mono_create_jump_trampoline): New function to create a jump
trampoline. Return a compiled method instead of a trampoline if it
exists. Add a cache for jump trampolines.
* mini.c (mono_jit_find_compiled_method): New function to return a
compiled method if it exists.
* mini-x86.c: Call mono_create_jump_trampoline instead of
mono_arch_create_jit_trampoline.
* jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
a jump trampoline. Fixes#52092.
svn path=/trunk/mono/; revision=23085
* DHKeyGeneration.cs: New. Enumuration of possible key generation for
Diffie-Hellman. Contributed by Pieter Philippaerts (mentalis.org).
* DHParameters.cs: New. Structure to hold the different elements of a
Diffie-Hellman key. Contributed by Pieter Philippaerts (mentalis.org).
* DiffieHellman.cs: New. Astract class as base for all Diffie-Hellman
implementations. Contributed by Pieter Philippaerts (mentalis.org).
* DiffieHellmanManaged.cs: New. Managed implementation of the Diffie-
Hellman key agreement algorithm. Contributed by Pieter Philippaerts.
svn path=/trunk/mcs/; revision=23075
params. Fixes some unit test failures.
* BufferedStream.cs: If the stream is closed (can't read from it
or write to it) throw an ObjectDisposedException.
svn path=/trunk/mcs/; revision=23074
* DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
say goodbye to sys.collections.specialized.
(replaced the classes in that namespace with ArrayList or Hashtable)
svn path=/trunk/mcs/; revision=23073
* Added DTMXPathDocumentWriter.cs. It supports DTMXPathNavigator as
the resulting document tree.
* DTMXPathDocumentBuilder.cs : Code refactory (to get closer to dtm
writer and commonify tasks they both should do). Reduced initial
array size (400 to 200, for attribute 800 to 200), and extending
size from 2x to 4x (to reduce _times_ of allication copy).
* DTMXPathNode.cs : (and all above) added experimental "DTM_CLASS"
switch, which changes nodes from struct to class. (It will reduce
memory consumption by 2/3, but will also reduce speed by 2/3.)
svn path=/trunk/mcs/; revision=23069
* PrimeGeneratorBase.cs: Changed primality test to Rabin Miller to
fix issues #51229 (bug), #54262 (very long in same cases).
svn path=/trunk/mcs/; revision=23066
* PrimeTestingTest.cs: Added well known (and tested) primes from
RFC 2412 (http://www.faqs.org/rfcs/rfc2412.html) as suggested by
Pieter Philippaerts (#51229).
* SearchGeneratorTest.cs: Modified so this still use the (previous)
SmallPrimeSppTest primality test - because RM doesn't work for
small primes.
svn path=/trunk/mcs/; revision=23064
* PrimeGeneratorBase.cs: Changed primality test to Rabin Miller to
fix issues #51229 (bug), #54262 (very long in same cases).
svn path=/trunk/mcs/; revision=23063
gdipFunctions.cs: Added ImageCodecInfo functions and corrected
few Image class functions
Image.cs: Added few methods
svn path=/trunk/mcs/; revision=23057
* statement.cs, codegen.cs:
This patch deals with patterns such as:
public class List : IEnumerable {
public MyEnumerator GetEnumerator () {
return new MyEnumerator(this);
}
IEnumerator IEnumerable.GetEnumerator () {
...
}
public struct MyEnumerator : IEnumerator {
...
}
}
Before, there were a few things we did wrong:
1) we would emit callvirt on a struct, which is illegal
2) we emited ldarg when we needed to emit ldarga
3) we would mistakenly call the interface methods on an enumerator
type that derived from IEnumerator and was in another assembly. For example:
public class MyEnumerator : IEnumerator
Would have the interface methods called, even if there were public impls of the
method. In a struct, this lead to invalid IL code.
svn path=/trunk/mcs/; revision=23048
* XmlReader.cs : For performance reason, XmlTextReader now uses
base ReadInnerXml() and don't store currentTag array unnecessarily.
* XmlTextReader.cs :
- Fixed GetAttribute(int) that might cause index out of range.
- Now it consumes the text reader by reading blocks, as MS.NET does.
Modified GetRemainder(), PeekChar(), ReadChar() and so on.
- Now it doesn't create Value string for linked nodes, unless it
is actually required.
- some code refactory.
svn path=/trunk/mcs/; revision=23041
* metadata.h (MonoMethodHeader, MonoMethodSignature): Moved the
`gen_method' field from MonoMethodHeader to MonoMethodSignature.
* reflection.c (mono_image_get_methodspec_token): Take a
`MonoMethod *' instead of a `MonoReflectionInflatedMethod *'.
(mono_image_create_token): Check whether we have a
`method->signature->gen_method' and call
mono_image_get_methodspec_token() if appropriate.
(inflated_method_get_object): Removed.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionMethod *', not a `MonoReflectionInflatedMethod *'.
(mono_reflection_inflate_method_or_ctor): Likewise.
* reflection.h (MonoReflectionInflatedMethod): Removed.
svn path=/trunk/mono/; revision=23037
* metadata.h (MonoMethodHeader, MonoMethodSignature): Moved the
`gen_method' field from MonoMethodHeader to MonoMethodSignature.
* reflection.c (mono_image_get_methodspec_token): Take a
`MonoMethod *' instead of a `MonoReflectionInflatedMethod *'.
(mono_image_create_token): Check whether we have a
`method->signature->gen_method' and call
mono_image_get_methodspec_token() if appropriate.
(inflated_method_get_object): Removed.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionMethod *', not a `MonoReflectionInflatedMethod *'.
(mono_reflection_inflate_method_or_ctor): Likewise.
* reflection.h (MonoReflectionInflatedMethod): Removed.
svn path=/trunk/mono/; revision=23034
* CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform
(InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
svn path=/trunk/mcs/; revision=23025
* CryptoStream.cs: Remove the _blockSize assumptions because some
Transforms could be different on Input/Output. Added a special case
for cascading CryptoStreams in FlushFinalBlock.
svn path=/trunk/mcs/; revision=23024
* HttpUtility.cs: fixed length check. Closes bug #54201.
Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
decoding.
svn path=/trunk/mcs/; revision=23022
* const.cs: Const is now derived from FieldBase. Method EmitConstant name
renamed to Emit.
* delegate.cs (Define): Fixed crash when delegate type is undefined.
svn path=/trunk/mcs/; revision=23013
* System.Text.RegularExpressions/parser.cs: an opening brace without a
quantifier do not cause a parse error. Fixes bug #52924.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test from
bug #52924.
svn path=/trunk/mcs/; revision=23008
* BasicClient.cs:
* DigestClient.cs: use IndexOf instead of StartsWith to deal with
servers that provide several authentication schemas.
svn path=/trunk/mcs/; revision=23007
* Socket.cs: added locks around waithandle assign and comparison in
class Worker. Handle other exceptions than SocketException for
non-blocking sockets.
svn path=/trunk/mcs/; revision=23005
* ChunkStream.cs: use an array of buffers instead of a MemoryStream for
storing the chunks. This way, we won't miss traling data from the
previous chunk when a new one is received before the other is fully
read.
svn path=/trunk/mcs/; revision=23004
* debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
which is not up-to-date. Add check_corlib_version () instead.
svn path=/trunk/mono/; revision=22989
* Reference.cs: Added LoadInnerXml to transforms. Removed unused
variable.
* Transform.cs: Import GetInnerXml in GetXml.
* XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
allocations.
* XmlDsigC14NTransform.cs: Added Stream support to LoadInput
* XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
expression and LoadInput. It nows match MS implementation but doesn't
work like I think it should (but neither is MS implementation).
svn path=/trunk/mcs/; revision=22985
* ReferenceTest.cs: Tests fixed if XML is different (but equivalent)
to MS implementation.
* SignatureTest.cs: Tests fixed if XML is different (but equivalent)
to MS implementation.
* XmlDsigBase64TransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. No more convertion to arrays.
* XmlDsigC14NTransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. Fixed input/output typo. Tests
fixed if XML is different (but equivalent) to MS implementation.
* XmlDsigC14NWithCommentsTransformTest.cs: New UnprotectedGetInnerXml
class to get results from the protected GetInnerXml. Fixed input/output
typo.
* XmlDsigXPathTransformTest.cs: New. Unit tests XmlDsigXPathTransform.
* XmlDsigXsltTransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. Fixed input/output typo.
svn path=/trunk/mcs/; revision=22984
* README: update to describe better how to use the doc/web stuff
* index: change layout, move old news to oldnews page, rewrite
content, add new headings, decrease size of other headings.
* jit-debug: change link to martin's page; now it points to the
dir holding the debugger files. Fix grammar in one sentence.
* oldnews: erase very old news, add slightly old news removed from
index
* web/htmlify: shrink size of newsitem headings.
svn path=/trunk/mono/; revision=22978
* threads.c (mono_thread_attach): Allow this to be called multiple
times for a thread.
* threads.c (build_wait_tids): Do not wait for ourselves.
* threads.c (mono_thread_pop_appdomain_ref): Avoid crash if the
appdomain list is empty.
svn path=/trunk/mono/; revision=22976
* mini.c (mono_runtime_install_handlers): Remove check for valgrind
since newer valgrind versions do not need it.
svn path=/trunk/mono/; revision=22975
* mini.c (mono_jit_compile_method_with_opt): New helper function to
compile a method with a given set of optimizations.
* mini.c: Compile icall wrappers on-demand instead of at startup.
* mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
wrapper for an icall.
2004-02-10 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
#54063.
svn path=/trunk/mono/; revision=22974
* Makefile.am, mono-codeman.h, mono-codeman.c: new support code
to deal with buffers of native code (handles exec bits and other
details).
svn path=/trunk/mono/; revision=22973
* marshal.c (mono_marshal_get_native_wrapper): Do not free the
memory returned by mono_string_builder_to_utf16, since it points into
managed memory. Thanks to Bernie Solomon for noticing this.
svn path=/trunk/mono/; revision=22972
* reflection.h (MonoReflectionMethodAux): Add 'param_cattr' field.
* reflection.c (mono_custom_attrs_from_param): Add support for dynamic
types.
* reflection.c (reflection_methodbuilder_to_mono_method): Save
custom attributes to the method_aux struct. Also fix array indexes etc.
* loader.c (mono_method_get_param_names): Make dynamic case work again.
svn path=/trunk/mono/; revision=22969
* TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
string, not string[].
* XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
for array parameters. In general, improved generation of schema Form
property.
* XmlMemberMapping.cs: Added Form property.
* XmlReflectionImporter.cs: Types that inherit from other types cannot be
simple types. Added a check for this.
* XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
Form. The key used to determine if a map has been already generated must
include the XmlType, since there can be two xml types with the same CLR
type and namespace (for example, they may differ in the Form property).
* XmlSchemaImporter.cs: When getting the TypeData for a schema element,
also return the corresponding map. There can be two maps that have the
same TypeData, so given a TypeData is not always possible to get the
correct corresponding map (for example two arrays that only differ in the
Form of the item).
* XmlTypeMapping.cs: Added method to set if a map can represent a simple
type or not.
svn path=/trunk/mcs/; revision=22968
* NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen ([email protected]).
svn path=/trunk/mcs/; revision=22965
* Mono.Security.Cryptography/PKCS1.cs:
- Added little change for allow the class to be used with
hash implementations that doesn't have an oid like the MD5SHA1 hash.
svn path=/trunk/mcs/; revision=22951
* icall.c, loader.c: icall cleanup: we save quite a bit of memory
(both static and runtime) and reduce startup time.
svn path=/trunk/mono/; revision=22946
* ChunkStream.cs:
* WebConnection.cs: fixed bug that caused ChunkStream to return 0 on
Read if it have not yet received any byte of the body but is expecting
a body.
svn path=/trunk/mcs/; revision=22944
* XmlNode.cs : ChildNodes should not create XmlNodeListChildren
every time. This fix heavily improved performance.
svn path=/trunk/mcs/; revision=22937
* Iterator.cs : Added overriden Count properties for some iterators
(this fixes the half of #50678).
Added ListIterator class (which can reduce GetEnumerator()).
In some places we can omit clone for Current property, so added
some check logic (It has no effect as yet).
* Expression.cs, DefaultContext.cs :
use ListIterator instead of EnumeratorIterator.
svn path=/trunk/mcs/; revision=22934
* XmlAttributeCollection.cs : set owner element as parent on removal
events (though they are not "parent" in infoset or dom context)
* XmlElement.cs : Don't remove attributes twice (raises extraneous
removal events).
* XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
Added NET_1_2 members.
svn path=/trunk/mcs/; revision=22933
* Mono.Security_test.dll.sources Added Mono.Math BigInteger unit test
to the build (as they cannot be executed with corlib).
svn path=/trunk/mcs/; revision=22926
* CacheDependency.cs: Use FileSystemWatcher instead of custom
Watcher for file dependencies.
* OutputCacheModule.cs: Make the varyby objects dependent on the
cached page.
svn path=/trunk/mcs/; revision=22924
* BigInteger.cs: Added INSIDE_CORLIB to define ModulusRing as
internal. Without this the unit tests for Mono.Math (now in
Mono.Security assembly) wont compile (see bugzilla #44845).
svn path=/trunk/mcs/; revision=22922
* class.h (MonoGenericMethod): Added `MonoMethod *declaring'.
* reflection.h (MonoReflectionInflatedMethod): Removed the
`declaring' field, it's now in the unmanaged MonoGenericMethod.
* reflection.c (method_encode_methodspec): Removed the `method'
argument; we get it from `gmethod->declaring'.
(inflated_method_get_object): Removed the `declaring' argument.
svn path=/trunk/mono/; revision=22920
* class.h (MonoGenericMethod): New type.
(MonoGenericInst): Remove `mtype_argc', `mtype_argv' and
`generic_method'.
* metadata.h (MonoMethodHeader): Replaced the `geninst' field with
a `MonoGenericMethod *gen_method' one.
* class.c (mono_class_inflate_generic_type): Take an additional
`MonoGenericMethod * argument. This is only non-NULL if we're
inflating types for a generic method.
(mono_class_inflate_generic_signature): Renamed to
inflate_generic_signature() and made static; take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(inflate_generic_header): Take a `MonoGenericMethod *' argument
instead of a `MonoGenericInst *' one.
(mono_class_inflate_generic_method): Likewise.
* reflection.c (encode_generic_method_sig): Take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(method_encode_methodspec): Likewise.
(inflated_method_get_object): Likewise.
* reflection.h (MonoReflectionGenericInst): Replaced the `ginst'
field with a `MonoGenericMethod *gmethod' one.
svn path=/trunk/mono/; revision=22919
* SymmetricAlgorithm.cs: Reintroduced the patch from 2003-08-24 to fix
IV length exception for stream ciphers (e.g. RC4). I overwrote it by
accident some time ago :(
svn path=/trunk/mcs/; revision=22915
* Makefile: Added /unsafe to compile BigInteger. Hopefully this will
only be temporary.
* Mono.Security.dll.sources: Added Mono.Math.* and PKCS1 and
RSAManaged copies (from corlib) to support TLS.
svn path=/trunk/mcs/; revision=22914
* NextPrimeFinder.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimeGeneratorBase.cs: New. Copied from corlib. Required for PKCS1
and RSAManaged (which are required for TLS).
* SequentialSearchPrimeGeneratorBase.cs: New. Copied from corlib.
Required for PKCS1 and RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22913
* ConfidenceFactor.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimalityTests.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22912
* PKCS1.cs: New. Copied from corlib. Required for RSAManaged.
* RSAManaged.cs: New. Copied from corlib. Required for TLS - some
parts (MD5SHA1) cannot work with the default RSACryptoServiceProvider.
svn path=/trunk/mcs/; revision=22910
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22909
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22907
* Thread.cs: Add fields added to unmanaged MonoThread here as well.
Fixes random errors caused by memory corruption.
svn path=/trunk/mcs/; revision=22906
* PolicyLevelTest.cs: Ignored test Reset as the functionality isn't
yet present in Mono.
* UrlMembershipConditionTest.cs: Ignored the site related test as the
functionality isn't yet present in Mono.
* UrlTest.cs: Ignored the site related test as the functionality isn't
yet present in Mono.
svn path=/trunk/mcs/; revision=22905
* System.Web/HttpApplication.cs: ApplicationState is inited by the
factory so, return that value in the property. when we use the context
Session, cache it in the instance field.
* System.Web/HttpApplicationFactory.cs: fixed target Type for the
event when hooking application and module events. Initialize application
and session scope objects. Fixes non-aplication events hook up.
* System.Web/HttpStaticObjectsCollection.cs: added StaticItem and delay
the creation of the objects until they are requested.
* System.Web.SessionState/SessionInProcHandler.cs:
* System.Web.SessionState/SessionSQLServerHandler.cs:
* System.Web.SessionState/SessionStateServerHandler.cs: when creating
the HttpSessionStateObjets, use the session objects that we know about
in HttpApplicationFactory.
Fixes bug #53387.
svn path=/trunk/mcs/; revision=22900
* DSACryptoServiceProvider.cs: Fixed support for key pair persistence.
It now requires (like MS) to call Clear to delete an existing
container. PersistKeyInCsp default value also changes if a
CspParameters is supplied (or not) to the constructor.
* RSACryptoServiceProvider.cs: Same fixes as DSA.
svn path=/trunk/mcs/; revision=22899
* DSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
* RSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
svn path=/trunk/mcs/; revision=22898
* decl.cs (GetSignatureForError): New virtual method to get full name
for error messages.
* attribute.cs (IAttributeSupport): New interface for attribute setting.
Now it is possible to rewrite ApplyAttributes method to be less if/else.
* interface.cs : All InterfaceXXX classes are now derived from MemberCore.
Duplicated members and code in these classes has been removed.
Better encapsulation in these classes.
svn path=/trunk/mcs/; revision=22896
* image.h (MonoImage): Removed `generics_cache'.
* class.c (mono_class_from_generic): Take a `MonoGenericInst *'
instead of a `MonoType *' argument; removed the `inflate_methods'
argument. Don't inflate methods here.
* loader.c (find_method): If it's a generic instance, call
mono_class_init() on the `sclass->generic_inst->generic_type'.
* metadata.c (mono_type_size): Make this work on uninitialized
generic instances; call it on the `ginst->generic_type's class.
* reflection.c (mono_reflection_bind_generic_parameters): Call
mono_class_from_generic() to create the `ginst->klass'.
svn path=/trunk/mono/; revision=22892
* NumberFormatInfo.cs: When parsing the percentages, put the data
into PercentDecimalDigits/PercentGroupLengths, rather than trashing
the NumberDecimatDigits etc. This also means that the percent format
info gets set.
svn path=/trunk/mcs/; revision=22882
* HashAlgorithm.cs: Changed the ComputeHash(Stream) method to (a) not
allocate the whole stream memory (big memory saver as suggested by
Peter Williams in bugzilla entry #54022) and (b) to never use Stream.
Length and Stream.Position because they aren't implemented for every
stream class (similar issue to the CryptoStream patch).
* MD5CryptoServiceProvider.cs: Moved a buffer allocation from
ProcessBlock to constructor to reduce memory allocation. Optimization
suggested by Peter Williams in bugzilla entry #54024.
svn path=/trunk/mcs/; revision=22881
* icall.c (ves_icall_Type_BindGenericParameters): Just call
mono_type_get_object(), this is now creating a `MonoGenericInst'
for MONO_TYPE_GENERICINST.
(ves_icall_MonoGenericInst_GetParentType): Likewise.
(ves_icall_MonoGenericInst_GetInterfaces): Likewise.
* reflection.c (mono_type_get_object): Return a `MonoGenericInst'
instead instead of a `MonoType' for MONO_TYPE_GENERICINST.
(inflated_method_get_object): Added `MonoClass *refclass' argument.
(mono_reflection_inflate_method_or_ctor): Correctly set declaring
and reflected type.
* reflection.h (MonoReflectionInflatedMethod): Removed
`declaring_type' and `reflected_type'.
svn path=/trunk/mono/; revision=22877
* MonoGenericInst.cs (MonoGenericInst.GetParentType): New interncall.
(MonoGenericInst.GetInterfaces_internal): New interncall.
(MonoGenericInst): Reflect latest API changes; use GetParentType()
and GetInterfaces_internal() instead of the fields.
svn path=/trunk/mcs/; revision=22869
* assign.cs (Assign.DoResolve): When dealing with compound
assignments, there is a new rule in ECMA C# 2.4 (might have been
there before, but it is documented here) that states that in:
a op= b;
If b is of type int, and the `op' is a shift-operator, then the
above is evaluated as:
a = (int) a op b
svn path=/trunk/mcs/; revision=22854
* expression.cs (Binary.ResolveOperator): Instead of testing for
int/uint/long/ulong, try to implicitly convert to any of those
types and use that in pointer arithmetic.
svn path=/trunk/mcs/; revision=22853
* delegate.cs (Error_NoMatchingMethodForDelegate): Compute the
method to print information for from the type, not from the
null-method we were given.
svn path=/trunk/mcs/; revision=22851
* DSAManaged.cs: Added an event after key generation (so that
DSACryptoServiceProvider can persist the keypair if required). Added
PublicOnly property (like 1.2) so we do not have to catch an exception
to know if a private key is present or not. Added a Random property so
we do not always have to create a RNG instance (not always required).
* RSAManaged.cs: Added an event after key generation (so that
DSACryptoServiceProvider can persist the keypair if required). Added
PublicOnly property (like 1.2) so we do not have to catch an exception
to know if a private key is present or not.
svn path=/trunk/mcs/; revision=22843
method is taken from System.Web.Utils.UrlUtils.
* UriBuilder.cs: Do not escape fragments or queries, but do a utf8
switch on them. Do not prepend a "/" to Paths. Do not use
IPEndPoint to determine if a port is valid, UriBuilder allows
ports to be any positive integer, IPEndPoint does not. Use the
ToString () method for generate a uri in get_Uri. Only set the
port in ToString () if it is greater then 0.
svn path=/trunk/mcs/; revision=22840
* CryptoTools.cs: New. Copied from corlib to offer the sames services
to symmetric algorithms in Mono.Security assembly.
* SymmetricTransform.cs: New. Copied from corlib to offer the sames
services to symmetric algorithms in Mono.Security assembly.
svn path=/trunk/mcs/; revision=22838
* corlib.dll.sources: Moved SymmetricTransform class from System.
Security.Cryptography (SymmetricAlgorithm) to Mono.Security.
Cryptography.
svn path=/trunk/mcs/; revision=22836
* SymmetricAlgorithm.cs: Removed class SymmetricTransform from file
and moved it to Mono.Security.Cryptography namespace. The transform
class will also be included in Mono.Security assembly.
svn path=/trunk/mcs/; revision=22835
* SymmetricTransform.cs: This class was split from S.S.C.
SymmetricAlgorithm.cs so it could be reused in Mono.Security
assembly for other symmetric algorithms transforms.
svn path=/trunk/mcs/; revision=22834
* Mono.Security.dll.sources: Added KeyPairPersistence and it's
dependencies in Mono.Xml (MiniParser and SecurityParser).
* Mono.Security_test.dll.sources: Added unit tests for
KeyPairPersistence.
svn path=/trunk/mcs/; revision=22831
* KeyPairPersistance.cs: Provides a similar to CryptoAPI persistence
mechanism for keypairs (based on CspParameters).
svn path=/trunk/mcs/; revision=22829
FontCollection.cs: Used CheckStatus() method
InstalledFontCollection.cs: Used CheckStatus() method
PrivateFontCollection.cs: Used CheckStatus() method
svn path=/trunk/mcs/; revision=22823
* object.h (MonoThread): Add 'name' and 'name_len' fields.
* threads.h threads.c icall.c: New icalls for getting and setting the
threads name.
svn path=/trunk/mono/; revision=22822
* corlib_test.dll.sources: Added AppDomain unit tests in System.
Some tests are currently ignored because they produce lots of GC
Warning failures but they seems to work (nunit finishes).
svn path=/trunk/mcs/; revision=22818
* ecore.cs (FieldExpr.DoResolveLValue): If we have an
`ec.TypeContainer.CurrentType', use it instead of
`ec.ContainerType' to check whether we're in the type's ctor.
svn path=/trunk/mcs/; revision=22808
* DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
IsDefault and Depth.
* XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
checkNamespace = false.
* XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
* XmlAttributeCollection.cs : Reimplemented InsertAfter to use
InsertBefore() (similar to XmlNode).
* XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
as recursive, to make event order compatible.
* XmlDocumentType.cs : Use SetNamedItem() (to raise events).
* XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
string name to block prefixed name.
* XmlEntity.cs : Don't raise events on setting contents.
* XmlNode.cs : Some refactory. Added raiseEvent argument to internal
InsertBefore().
* XmlEntityReference.cs : related fix for XmlNode change.
* XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
doctype, Depth 1 lower than usual attribute. Split large function.
svn path=/trunk/mcs/; revision=22799
* appdomain.c (ves_icall_System_AppDomain_InternalPushDomainRefByID):
Raise an exception when the domain is not found.
svn path=/trunk/mono/; revision=22787
expressions. Throw ArgumentException if the expression type is not
handled.
* CodeGenerator.cs (GenerateStatement): Add line pragmas if they
are set. Throw ArgumentException if the expression type is not
handled.
svn path=/trunk/mcs/; revision=22776
* CryptoStreamTest.cs: Added many more tests for every problem found
with CryptoStream using code samples from the internet.
svn path=/trunk/mcs/; revision=22771
* CryptoStream.cs: New implementation - should fix all known issues
with the class (Read/WriteByte, reading by non-multiple of the
block size, using Stream.Length and Stream.Position ...).
* SymmetricAlgorithm.cs: Return an empty array when there's nothing
to return (required for CryptoStream to work).
svn path=/trunk/mcs/; revision=22770
* DTDObjectModel.cs : Never expand entity on ScanEntityValue().
* DTDValidatingReader.cs : XmlDeclaration node requires attributes
to be movable.
* XmlAttribute.cs,
XmlDocument.cs,
XmlDocumentFragment.cs,
XmlElement.cs,
XmlEntity.cs,
XmlLinkedNode.cs,
XmlNode.cs,
XmlNotation.cs :
Added namespace checking flag (required for such xml readers
that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
* XmlDocumentType.cs,
XmlEntity.cs,
XmlEntityReference.cs : The children of Entity and EntityReference
became correct. They now holds parsed nodes, but it is only when
they are appended to the document.
* XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
boolean checkNodeType argument. This method also tries to create
Entity's and EntityReference's child nodes. Also added internal
RemoveChild() with boolean checkNodeType argument.
* XmlNodeReader.cs : Quick hack for ResolveEntity() that became
broken with these changes. use InnerXml as input to entityReader.
* XmlTextReader.cs : XmlDeclaration's value LocalName should be the
same as Name. The names of DTD's pseudo attributes should be empty.
Fixed DTD node's Depth (was regarded as attribute value's depth).
svn path=/trunk/mcs/; revision=22767
* XsdValidatingReader.cs : When the reader points at XmlDeclaration,
AttributeCount counts its values (version, encoding, standalone).
svn path=/trunk/mcs/; revision=22766
* class.cs, decl.cs: Fixed problem where IndexerName attribute was ignored
in the member name duplication tests. Property and operator name duplication
was missing too (error tests cs0102-{2,3,4,5}.cs, cs0111-{3,4}.cs).
svn path=/trunk/mcs/; revision=22759
better performance.
DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
when all column are attributes (elements count is 0), we still want to add the relations. No relations
can be on simple contents.
(AddUniqueConstraints) Check that the column of the constraint are not hidden.
(AddForeignKeys) Check that the relation has constraints attach to it.
XmlConstants.cs : Added constant.
svn path=/trunk/mcs/; revision=22758
value of a column.
* DataRowCollection.cs: In InsertAt(), perform the correct checks and
attach the row.
* DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
also be added to the dataset.
In WriteTable(), do not write unchanged rows when writing the original
version of the table.
Added WriteIndividualTableContent(), for writing the contents of a single
table.
Changed BuildSchema and related methods, so it can generate a schema for
any set of tables, not just the tables of the dataset (needed for
single datatable serialization).
* DataTable.cs: Implemented serialization constructor and GetObjectData method.
Also implemented some ReadXmlSchema methods.
* XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
instead of loading the full dataset in an XmlDocument. It is faster and
saves memory. Also fixed several problems when generating the changes.
* XmlSchemaMapper.cs: Support reading schemas for single tables (used by
table serialization).
svn path=/trunk/mcs/; revision=22755
* XmlSerializationWriterInterpreter.cs: Removed unneeded code.
A member with the Any attribute can also contain text. Support this.
* XmlTypeMapMemberElement.cs: Added CanBeText property.
svn path=/trunk/mcs/; revision=22750
* ChangeLog : Fixed incorrect description that should be written for
DTDValidatingReader.cs but written for DTDReader.cs.
* DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
* XmlChar.cs,
XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
replaced XmlChar with XmlConstruts, renaming "XmlChar" to
"XmlCharCompact" and "XmlConstructs" to "XmlChar".
(XmlChar will be used for compact framework.)
* DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
XmlChar related changes. Support for surrogate pair.
It cannot use TextReader's peek anymore (for surrogate pair).
Character range check for PI value, attribute value, text
* XmlTextWriter.cs : Change openElements from Stack to ArrayList.
(It calls ToArray() every time.)
svn path=/trunk/mcs/; revision=22741
* interface.cs (PopulateMethod): Fixed crash when interface method
returns not existing type (error test cs0246-3.cs).
svn path=/trunk/mcs/; revision=22739
* BuiltInDatatype.cs : Fixed some Parse() for token based datatypes.
* XmlSchemaAny.cs : set properties for cloned particle. This will fix
bugzilla #53668.
* XmlSchemaParticle.cs : copy occurence string after computation of
validated min/max occurence. This will fix bug #53667.
svn path=/trunk/mcs/; revision=22731
* XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
predefined entity names.
* DTDObjectModel.cs : DTDxxxCollection now derives from
- DTDCollectionBase that derives from DictionaryBase.
- "Literal value" and "replacement text" are handled differently.
- Throw XmlException when external entity could not be resolved.
- Return ReplacementText for EntityValue.
* DTDReader.cs :
- Support IXmlLineInfo.
- Fixed IGNORE section handling to be more strict.
- Compute replacement text on reading entity declarations.
- Don't expand char references before getting literal entity value.
- Check not allowed parameter entity inside internal subset.
- Added ValidateWhitespaceNode() to check whitespace's Validity
Constraints on external elementdecl and standalone document.
- When invalid data against its datatype was found, don't throw
parse error.
- Other code refactory.
* XmlTextReader.cs :
- Check for invalid Text pattern "]]>" should not depend on line
info since it might not be supported.
- Check referenced character's validity (WFC).
svn path=/trunk/mcs/; revision=22730
* XsdValidatingReader.cs : schemaLocation is not NMTOKENS. It is list
of anyURI. Just split names and handle as anyURI.
svn path=/trunk/mcs/; revision=22729
* cs-parser.jay (interface_accessors): Re-write actions to also
store attributes attached to get and set methods. Fix spelling
while at it.
(inteface_property_declaration): Modify accordingly.
(InterfaceAccessorInfo): New helper class to store information to pass
around between rules that use interface_accessors.
* interface.cs (Emit): Apply attributes on the get and set
accessors of properties and indexers too.
* attribute.cs (ApplyAttributes): Modify accordingly to use the
right MethodBuilder when applying attributes to the get and set accessors.
svn path=/trunk/mcs/; revision=22721
# echo "This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
# for i in `cat pending-classes.in`; do x=`echo $$i | sed s/\\\.//g`; link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`; echo " <a href=\"$$link\">$$i</a><br>" >> pending-classes; done
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&component=System.Web&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries&component=System.Web">[Add]</a> ASP.NET WebForms
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&component=System.Web.Services&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries&component=System.Web.Services">[Add]</a> ASP.NET Web Services
The Mono C# compiler is considered feature complete at this
point and relatively mature. MCS is able to compile itself
and many more C# programs (there is a test suite included that
you can use). It is routinely used to compile Mono, roughly
half a million lines of C# code.
* Pending tasks
There are a few known bugs in the Mono C# compiler, but
they are very very few at this point,
you can also browse the MCS <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">bugs</a> from Bugzilla.
A test suite is maintained to track the progress of
the compiler and various programs are routinely compiled and
ran.
** Slides
Slides for the Mono C# Compiler presentation at .NET ONE are
The <b>educational</b> way is an interesting one, because you
pick a technology you are interested in, and work on that
technology to learn the technology.
Those are just broad things that need to be worked on, but
something that would help tremendously would be to help with
small duties in the project that need to be addressed.
You can see what needs to be done in the class libraries <a href="class-status.html">here</a>
* IRC Channel
Many developers get together on the <b>#mono</b> irc channel
on the <b>irc.gnome.org</b> server.
** To start contributing
As a programmer, you can contribute in three different scenarios to Mono:
<ul>
* If you only have Linux/Unix.
* If you only have Windows.
* If you have both Linux and Windows.
</ul>
You might also want to check our <a href="#setup">common
setups</a> section that describes some common setups that people
use while working on Mono.
*** Contributing to the class library, regression tests or the compiler
This only requires Windows currently.
To start developing classes or to contribute to the compiler,
you only need Windows and the .NET Framework 1.0 SDK. Please notice
that you do not need Visual Studio (although you can use it if
you want). The .NET Framework SDK requires some version of
Windows XP or Windows NT. If you are running Windows 98, 95
or Me, you could use instead the <a
href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml">.NET Redist package</a>, but it
lacks the documentation browser and the ildasm program (C#, VB, JScript and IL
assembler are included).
You can get it <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
If you are new to .NET, writing regression tests is a good way
of starting to contribute: it will help you get used to C# as
well as getting comfortable with the .NET APIs.
This helps because at this point you might be the best
qualified person to fix a problem found by the regression
test, or you might have a new class to implement in the .NET
world that only has a test suite.
To get started writing tests see the <a href="testing.html">Test Suite</a>
section. <a href="mono-contribution-howto.html">Here</a> there is a good All-In-One introduction to the art of writing tests.
*** Contributing to the runtime engine
This only requires Linux, currently some tasks are easier if you
have access to Windows as well.
Here are a few things you can do:
<ul>
* Port the runtime to other architectures.
* Port the runtime to other operating systems.
* Finish the IL code verifier in the runtime.
* Hack the JIT, improve the code generator, add new
pattern rules, improve the register allocator.
* Implement the debugging interfaaces
</ul>
** Bug reporting
If you find bugs in Mono, please make sure you enter a bug
report so we can keep track of problems in Mono.
To enter bug reports go to <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> and enter bug reports against
your favorite component (Mono, Runtime, C# compiler).
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
Check our <a href="bugs.html">Bugs</a> that contains links to
easily add a bug report, or to query the existing bugs.
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
** Small tasks
A few smaller tasks are here, dropped in no particular order:
<ul>
* <b>Mono/doc and web site:</b> They need to be
packaged up in the official `distribution'
* Adding serialization support to all the classes.
We have many classes, but we have not implemented in
many cases the serialization and re-incarnation support in
them (this is pretty straight forward code, and simple,
This namespace implements the <a href="http://www.w3.org/TR/xmldsig-core/">
XML Digital Signature</a> specification from
<a href="http://www.w3.org/">W3C</a>.
**** Status
<ul>
* All classes are present but some Transforms are only stubbed.
* We now have a fully managed C14N implementation.
* Most classes have their unit tests.
</ul>
**** TODO
<ul>
* Complete all Transform derived classes.
</ul>
<hr>
** Assembly: Mono.Security
<b>Rational: </b>
This assembly provides the missing pieces to .NET security. On Windows
CryptoAPI is often used to provide much needed functionalities (like
some cryptographic algorithms, code signing, X.509 certificates). Mono,
for platform independance, implements these functionalities in 100%
managed code.
*** Namespace: Mono.Security
<ul>
* Structures (ASN1, PKCS7) and primitives (PKCS1).
</ul>
*** Namespace: Mono.Security.Authenticode
<ul>
* Code signing and verification.
* Support for SPC (Software Publisher Certificate) files and
PVK (Private Key) files.
</ul>
*** Namespace: Mono.Security.Cryptography
<ul>
* Additional algorithms: MD2, MD4, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.Protocol.*
<ul>
* Tls: An 100% managed TLS implementation from Carlos Guzman
Alvarez.
* Ntlm: NTLM authentication (used for HTTP and SQL Server).
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
* PKCS#12 decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* A big part of this assembly is also included inside Mono's
corlib. The classes are duplicated in this assembly so the
functionalities can be used without a dependency on Mono's
corlib (which depends on Mono's runtime).
* Unit test coverage isn't (yet) complete.
</ul>
<hr>
** Assembly: Mono.Security.Win32
<b>Rational: </b>
This assembly goal is to provide maximum compatibility with CryptoAPI
to application running with Mono's runtime on the Windows operating
system.
<b>This assembly should NEVER be used directly by any application</b>
(e.g. referecing the assembly from a project).
The classes should only be used by modifying the <code>machine.config
</code> configuration file (and then only if this increased
compatibility is required by an application).
See the file <code><a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/~checkout~/mcs/class/Mono.Security.Win32/README?rev=1.1&content-type=text/plain&cvsroot=mono">/mcs/class/Mono.Security.Win32/README</a></code>
for complete instructions.
*** Namespace: Mono.Security.Cryptography
**** Status
<ul>
* A RNGCryptoServiceProvider built on top of CryptoAPI. This
allows Windows users to get around the limitation of the
<li><a href="http://primates.ximian.com/~atsushi/mono-jp/">Mono Japanese Translation</a>:
Mono site Japanese translation pages. Translated sources are maintained at <a href="http://forge.novell.com/modules/xfmod/project/?mono-jp">Novell Forge</a>.
</ul>
* User sites
<ul>
<li>Alp Toker's <a
href="http://www.atoker.com/mono/">site</a>: He is an
active Mono developer (gsirc, platano) and produces
When it comes to Mono and PostgreSQL, there are many ways
you can handle your data. You have many Mono Data Providers which can be used
to access data from a application written for Mono.
Then there is the future goal of having the ability to host Mono within PostgreSQL to
have the applications run on the server which makes things much faster.
* Hosting Mono in PostgreSQL
There is a project to <a href="http://gborg.postgresql.org/project/plmono/projdisplay.php">host Mono within PostgreSQL</a>.
plMono is a PostgreSQL language using the embedded Mono runtime. It provides support for writing functions in C#, or any other language that supports .NET.
* Data Providers
There are many ADO.NET data providers for <a href="http://www.postgresql.org/">PostgreSQL</a>:
There are two providers created specifically for PostgreSQL included with Mono:
<li>a .NET Managed Data Provider for PostgreSQL</li>
<li>Written in 100% C#</li>
<li>does not require a client library</li>
<li>works on Mono and Microsoft .NET</li>
<li>created by Francisco Figueiredo jr. and has many developers working on it
<li>works in the SQL# (command-line and GTK# GUI versions)</li>
<li>in namespace Npgsql and assembly Npgsql and is found in mcs
at mcs/class/Npgsql</li>
</ul>
</li>
<li>Mono.Data.PostgreSQL (deprecated)
<ul>
<li>included with Mono</li>
<li>Deprecated in favor of Npgsql</li>
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql</li>
<li>Is a Mono Data Provider for the <a href="http://www.postgresql.org/">PostgreSQL</a>
client/server database management system.</li>
<li>Written in C# and has C# bindings to the PostgreSQL C Client library pq.dll on Windows
and libpq.so on Linux.</li>
</ul>
</li>
<li><a href="http://sourceforge.net/projects/mysqlnet/">ByteFX.Data</a> has a provider for PostgreSQL too, but I do not know how well it works with Mono.</li>
<li>There is another .NET data provider for PostgreSQL named <a href="http://sourceforge.net/projects/pgsqlclient/">PgSqlClient</a>, but I do not know if it works with Mono.</li>
<li>If none of the above providers meet your needs. There is the ODBC and OLEDB providers included with Mono.</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
Below, see separate Testing sections for Npgsql and Mono.Data.PostgreSqlClient.
** Current Status
<ul>
<li>Npgsql
<ul>
<li>Builds and Runs on both Microsoft .NET and Mono.</li>
<li>Works using SQL# (command-line and GTK# versions)</li>
<li>You can send insert, update, delete queries
through NpgsqlCommand.ExecuteNonQuery() method.</li>
<li>You can send queries like, select count(*) from table, select version()
with NpgsqlCommand.ExecuteScalar() method.</li>
<li>There is logging support. (Thanks Dave Page)
To use it, place code like that in your program:</li>
DataSet ds=DataTools.FillDataSet(conn, "select * from author");
</pre>
<p>Here's some sample code on displaying a list <br>
of configured ADO.NET providers:
<pre>
Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);
</pre>
<p>A Super lazy overload to the FillDataSet method (in <br>
DataTools.cs) that will fill a dataset in one line of code.
<pre>
DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");
</pre>
** About Configuration Files
<p>Information about <a href="http://msdn.microsoft.com/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp?frame=true">app.config</a> files
can be found at <a href="http://msdn.microsoft.com/">MSDN</a>.
<p>See the mcs/class/Mono.Data/app.config for sample configuration file in<br>
mcs source. Basically, if your application is named blah.exe, <br>
you would create an app.config file named blah.exe.config
<p>Here's a sample app.config file showing the provider <br>
declarations along with sample connection strings:
The new JIT engines uses three intermediate representations:
the source is the CIL which is transformed into a forest of
trees; This is fed into a BURS instruction selector that
generates the final low-level intermediate representation.
The instruction selector is documented in the following
papers:
<ul>
* <a href="http://research.microsoft.com/copyright/accept.asp?path=http://www.research.microsoft.com/~drh/pubs/interface.pdf&pub=wiley">A code generation interface for ANSI C</a>
* <a href="http://research.microsoft.com/copyright/accept.asp?path=http://www.research.microsoft.com/~drh/pubs/iburg.pdf&pub=ACM">Engineering efficient code generators using tree matching and dynamic programming.</a>
</ul>
** Garbage Collection
We are using the Boehm conservative GC. We might consider
adopting other GC engines in the future, like the Intel ORP GC
engine. The Intel ORP GC engine as it provides a precise
garbage collector engine, similar to what is available on the
Loaded 100 of 4873 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.