* System.Web.Compilation/PageCompiler.cs: assign LCID, Culture and/or
UICulture in FrameworInitialize() if provided in @Page.
* System.Web.UI/Page.cs: fixed UICulture, LCID and Culture. Set the
thread [UI]Culture before processing the request.
* System.Web.UI/PageParser.cs: read Culture, UICulture and LCID
attributes. Added properties for these. Partially contributed by
Mohammad Damt.
Fixes bug #51511.
svn path=/trunk/mcs/; revision=20633
* expression.cs: Added new field to Call class, so it can handle more arguments.
* StringLiteral.cs (Emit) : Load the string value.
* Literal.cs: BooleanLiteral, Resolve always return true. Emit the value and box it to Boolean.
svn path=/trunk/mcs/; revision=20630
* jscript-lexer-grammar.g: define new rule 'arguments' instead of
repeating hand written rule all around. Change "." for DOT, dumb
mistake by myself. Added rule new_expr. Now we handle properly the
call_expr rule (as defined on the spec), and added a new
argument. Added subrule new_expr to left_hand_side_expr rule.
svn path=/trunk/mcs/; revision=20616
* Mono.Cairo/Object.cs:
* Mono.Cairo/Surface.cs (LookupSurface): New method, it took me a
while to find out why Cairo applications would crash sometimes.
The problem was that Cairo.Object:TargetSurface get property would
create a Surface from an IntPtr, leading to having two managed
objects owning the same unmanaged Surface.
(Surface..ctor): Make private, so only this module can create
surfaces.
(Surface.Dispose): Add disposable pattern, finalizer.
* Mono.Cairo/Object.cs: Add disposable pattern, finalizer.
svn path=/trunk/mcs/; revision=20606
* statement.cs (Block.Resolve, Block.Emit): Avoid foreach on
ArrayLists, use for loops with bounds.
* flowanalysis.cs (FlowBranching.Merge): Avoid foreach on
arraylist.
* expression.cs (Invocation.OverloadResolve): Avoid foreach on
arraylists, use for loop with bounds.
The above three changes give us a 0.071 second performance
improvement out of 3.294 seconds down to 3.223. On my machine
the above changes reduced the memory usage by 1,387 KB during
compiler bootstrap.
* cs-parser.jay (QualifiedIdentifier): New class used to represent
QualifiedIdentifiers. Before we created a new string through
concatenation, and mostly later on, the result would be
manipulated by DecomposeQI through string manipulation.
This reduced the compiler memory usage for bootstrapping from
59380 KB to 59007 KB on my machine, 373 KB, and also reduced the
compile times in 0.05 seconds.
svn path=/trunk/mcs/; revision=20605
* XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
shouldn't expect non-empty element content. This will fix bug #48287.
svn path=/trunk/mcs/; revision=20591
ion `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.
A star (*) next to a name means that the command is disabled.
%[DIGITS | WORD] [&] (( expression ))
. filename :
[ arg... ] [[ expression ]]
alias [-p] [name[=value] ... ] bg [job_spec]
bind [-lpvsPVS] [-m keymap] [-f fi break [n]
builtin [shell-builtin [arg ...]] case WORD in [PATTERN [| PATTERN].
cd [-L|-P] [dir] command [-pVv] command [arg ...]
compgen [-abcdefgjksuv] [-o option complete [-abcdefgjksuv] [-pr] [-o
continue [n] declare [-afFirtx] [-p] name[=valu
dirs [-clpv] [+N] [-N] disown [-h] [-ar] [jobspec ...]
echo [-neE] [arg ...] enable [-pnds] [-a] [-f filename]
eval [arg ...] exec [-cl] [-a name] file [redirec
exit [n] export [-nf] [name[=value] ...] or
false fc [-e ename] [-nlr] [first] [last
fg [job_spec] for NAME [in WORDS ... ;] do COMMA
for (( exp1; exp2; exp3 )); do COM function NAME { COMMANDS ; } or NA
getopts optstring name [arg] hash [-lr] [-p pathname] [-dt] [na
help [-s] [pattern ...] history [-c] [-d offset] [n] or hi
if COMMANDS; then COMMANDS; [ elif jobs [-lnprs] [jobspec ...] or job
kill [-s sigspec | -n signum | -si let arg [arg ...]
local name[=value] ... logout
popd [+N | -N] [-n] printf format [arguments]
pushd [dir | +N | -N] [-n] pwd [-PL]
read [-ers] [-u fd] [-t timeout] [ readonly [-anf] [name[=value] ...]
return [n] select NAME [in WORDS ... ;] do CO
set [--abefhkmnptuvxBCHP] [-o opti shift [n]
shopt [-pqsu] [-o long-option] opt source filename
suspend [-f] test [expr]
time [-p] PIPELINE times
trap [arg] [signal_spec ...] or tr true
type [-afptP] name [name ...] typeset [-afFirtx] [-p] name[=valu
ulimit [-SHacdflmnpstuv] [limit] umask [-p] [-S] [mode]
unalias [-a] [name ...] unset [-f] [-v] [name ...]
until COMMANDS; do COMMANDS; done variables - Some variable names an
wait [n] while COMMANDS; do COMMANDS; done
{ COMMANDS ; }
VBCodeGenerator: CreateNameSpace creates Namespace after Imports
svn path=/trunk/mcs/; revision=20585
*NpgsqlCommand.cs: Fixed a problem with prepare commands in 7.3 server versions. The command was being incorrectly interpreted as needing an explicit cast.
svn path=/trunk/mcs/; revision=20584
specific brushes based on the internal (GDI+ C API) BrushType
enum.
(Brush (IntPtr)): new internal constructor.
* Pen.cs: Removed all the C# fields. We are using GDI+ completely
now.
(Pen (IntPtr)): new internal constructor.
(Pen (Brush, float)): Use GdipCreateBrush2.
(Clone): Implemented using GdipClonePen.
(Alignment, Brush, Color, Width): Use GDI+ implementations
instead.
(CompoundArray, DashCap, DashOffset, DashPattern, DashStyle):
Implemented these properties.
(CustomStartCap, CustomEndCap, StartCap, EndCap, SetLineCap): Stubbed.
(MultiplyTransform, ResetTransform, RotateTransform):
(ScaleTransform, TranslateTransform): Implemented these methods.
* SolidBrush.cs (SolidBrush (IntPtr)): new internal constructor.
* gdipEnums.cs (BrushType): Added new GDI+ enum.
* gdipFunctions.cs: Imported new Brush and Pen functions.
* brush.c (gdip_brush_setup): Check on the type of the brush and
delegate the implementation to the concrete Brushes,
(GdipCloneBrush, GdipDeleteBrush, GdipGetBrushType): Implemented.
* gdip.h (DashStyle): Fixed typo.
(PenAlignment, BrushType): Added new enumerations.
(GpBrush): Added new type field.
(GpPen): Added new fields: color, brush, mode, dash_array and
unit. Updated the header file to include new Pen functions.
* pen.c (convert_dash_array): Utitlity function for converting
from a float* from GDI+ to a double* for Cairo.
(GdipCreatePen2, GdipClonePen): Implemented.
(PenWidth, BrushFill, Color, PenMode, PenUnit, DashStyle):
(DashOffset, DashCount, DashArray): Implemented the Get/Set
function pairs for these properties.
(GdipGetPenCompoundArray, GdipSetPenCompoundArray):
(GdipGetPenCompoundArrayCount): Stubbed.
* solidbrush.c (gdip_solidfill_init): Utility for initializing a
SolidBrush. Sets type as BrushTypeSolidColor.
(gdip_solidfill_setup): Moved from gdip_brush_setup.
(gdip_solidfill_clone): Implementation for GdipCloneBrush for a
GpSolidFill.
(GdipSetSolidFillColor, GdipGetSolidFillColor): Implemented.
svn path=/trunk/mcs/; revision=20575
* System.Data.ObjectSpaces.Query/ObjectExpressionTests.cs:
* SupportFiles/osd.xml:
* SupportFiles/rsd.xml:
New classes added for test
svn path=/trunk/mcs/; revision=20571
* Mono.Security.dll.sources: Added MD4, MD4Managed and PKCS8 to build.
* Mono.Security_test.dll.sources: Added unit tests for MD4, MD4Managed
and PKCS8.
svn path=/trunk/mcs/; revision=20570
* MD4Test.cs: New. Contains all the test vectors provided in RFC1320
- but none are executed because MD4 is an abstract class.
* MD4ManagedTest.cs: New. Run the unit tests from MD4Test.cs using
the MD4Managed implementation of MD4.
* PKCS8Test.cs: New. Unit tests for PKCS8.
svn path=/trunk/mcs/; revision=20569
* MD4.cs: New. Asbtract class for all MD4 implementations. WARNING:
The MD4 algorithm is BROKEN (collisions) and SHOULDN'T be used in
NEW designs. However some higher level algorithms (like NTLM) requires
MD4 (and may even be secure using it). YOU'RE WARNED!
* MD4Managed.cs: New. Managed implementation of MD4 (RFC1320).
* PKCS8.cs: New. Added Private-Key Information Syntax Standard as a
building block for PKCS12.
svn path=/trunk/mcs/; revision=20568
* Expression.cs : namespace axis now traversed in reverse order, so it
requires sorting.
* Iterator.cs : UnionIterator.Clone() was incomplete.
NamespaceItarator() should be reverse order (special handling
because of XPathNavigator specification).
svn path=/trunk/mcs/; revision=20565
* XmlTextWriter.cs : When element's namespace should be overwritten by
one of its attribute, if exist as such. This fixes bug #51305.
svn path=/trunk/mcs/; revision=20564
* statement.cs (Foreach.TryType): Use DeclaredOnly to find the
GetEnumerator method.
(ProbeCollectionType): Iterate starting at the most specific type
upwards looking for a GetEnumerator
svn path=/trunk/mcs/; revision=20558
* mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
Also optimize the case when the arguments are the same in the caller
and in the callee.
svn path=/trunk/mono/; revision=20554
* SoapHttpClientProtocol.cs: Changed the method used to check if the
result is a fault. Now the check is done inside
WebServiceHelper.ReadSoapMessage. Removed some debug writelines.
* WebServiceHelper.cs: If the message body is a fault, use the fault
serializer.
svn path=/trunk/mcs/; revision=20539
* System.Text.RegularExpressions/interpreter.cs: when evaluating a
degenerate match, restore the RepeatContext if fail. Fixes bug #42529.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added tests from
bug #42529.
svn path=/trunk/mcs/; revision=20536
* exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
registers from the lmf if the method has save_lmf set.
svn path=/trunk/mono/; revision=20535
properties name. Only add a closing quote to strings if we are
still in a quote. Use BaseType == "System.Void" to determine if a
method is void. This prevents getting As Nothing functions. Many
thanks to Anirban for helping me with VB Syntax.
svn path=/trunk/mcs/; revision=20533
* Implemented DrawMenuGlyph on top of System.Drawing
* Implemented DrawStringDisabled on top of System.Drawing
* Implemented DrawSizeGrip on top of System.Drawing
* Implemented DrawSelectionFrame on top of System.Drawing
* Minor cleanups
svn path=/trunk/mcs/; revision=20532
* statement.cs (Block.LookupLabel): Also look for the label on the
children blocks. Use a hash table to keep track of visited
nodes.
svn path=/trunk/mcs/; revision=20519
* HttpWebRequest.cs: removed unneeded StringBuilder.
* WebConnection.cs: default to keep the connection open for HTTP/1.1
only or HTTP/1.0 + (Proxy-)Connection header. Fixes bug #51208.
svn path=/trunk/mcs/; revision=20513
* cfold.cs (IntConstant to UIntConstant mapping): Only return if
we actually did transform the other operand, otherwise fall back
to the common codepath that casts to long.
* cs-tokenizer.cs: Use the same code pattern as the int case.
Maybe I should do the parsing myself, and avoid depending on the
Parse routines to get this done.
svn path=/trunk/mcs/; revision=20512
* Control.cs: Add DataBindChildren for v2. Implement
glue to make Page.Eval work.
* Page: use a stack to store the current dataitem
for Eval. Implement Eval/XPath/XPathSelect
* DataBinder.cs: implement GetDataItem.
svn path=/trunk/mcs/; revision=20508
code. Fix tabbing.
* CachedVaryBy.cs: Give raw response keys a name, use the
httpmethod in the key, and delimit items with \n so it is easier
to read when debugging.
svn path=/trunk/mcs/; revision=20506
* exception.c (mono_exception_from_name_domain): New helper function.
* appdomain.c (ves_icall_System_AppDomain_createDomain): Create the
exception object in the correct domain.
* appdomain.c (ves_icall_System_AppDomain_LoadAssemblyRaw): Fix
formatting + make a copy a the input data.
svn path=/trunk/mono/; revision=20505
* FunctionDeclaration.cs: Check if values are not null first (at
Resolve). Ignore code generation is at 'Global Code'.
* VariableDeclaration.cs: Now I take care of IL generation when we
are at statements and expressions at global code, 'Global Code'
method is populated with that IL.
* CodeGenerator.cs: Added flag for 'Global Code' method
emittion. Now I call 'Emit' twice. The first for declarations the
follower for statements and expressions at global scope.
svn path=/trunk/mcs/; revision=20504
* tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
of icall wrappers into InvokeInDomain, since these are now per-domain.
svn path=/trunk/mono/; revision=20503
* mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
make some opcode emulation and intrinsic ops enabled/disabled
according to the architecture. More fixes.
svn path=/trunk/mono/; revision=20502
* RemotingConfiguration.cs: Implemented CustomErrorsEnabled().
Added support for soapInterop configuration section.
* SoapServices.cs: Several fixes to match MS behavior.
svn path=/trunk/mcs/; revision=20474
* HttpRuntime.cs: added request queue handling.
* QueueManager.cs: simple request queue.
* TimeoutManager.cs: added some locks to prevent the enumerator used in
CheckTimeouts to be out of synch.
svn path=/trunk/mcs/; revision=20464
* Implemented DrawFocusRectangle on top of System.Drawing
* Implemented DrawGrid on top of System.Drawing
* Implemented DrawImageDisabled on top of System.Drawing
* Implemented DrawLockedFrame on top of System.Drawing
* Removed MonoTODO from undocumented MS methods
svn path=/trunk/mcs/; revision=20453
static objects data.
* SessionDictionary.cs: Remove type serialization methods, these
have been moved to a utility class. Add convenience methods for
converting to/from byte arrays.
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: Save/Restore static objects. Use new
to/from byte array methods.
* StateServerItem.cs: Hold static objects data.
svn path=/trunk/mcs/; revision=20439
* aot.c:
(load_aot_module): free 'info->methods' and 'info' properly. No more
"free(): invalid pointer blah" messages when you have an old aot
compiled assembly.
svn path=/trunk/mono/; revision=20432
* expression.cs: Make TypeOfVoid derive from TypeOf, so code in
attributes for example can not tell the difference between these.
The difference was only a syntax feature of the language.
svn path=/trunk/mcs/; revision=20419
* convert.cs (TryImplicitIntConversion): One line bug fix: we were
comparing 0 vs Byte.MinValue, not the value
(ImplicitConversionRequired): When reporting a conversion error,
use error 31 to print out the constant error instead of the
simpler 29.
* expression.cs: Apply fix from [email protected] (Laurent Morichetti),
which fixes bug 51347.
svn path=/trunk/mcs/; revision=20415
on the server and store session data and ids.
* StateServerItem.cs: Container for session data.
* SessionStateServerHandler.cs: Handler that communicates with the
StateServer so sessions can be stored out of process.
* SessionStateModule.cs: Allow state server mode.
svn path=/trunk/mcs/; revision=20411
* io.c: don't call g_free before testing errno as it may modify it.
If the path exists, return an error if it's not a directory. Fixes
bug #50753.
svn path=/trunk/mono/; revision=20403
* icall.c: Add new icall for creating dynamic methods.
* loader.h debug-helpers.c: Add new wrapper type for dynamic methods.
* reflection.h (MonoReflectionDynamicMethod): Fix type of bool fields.
* reflection.c (mono_reflection_create_dynamic_method): New icall to
create a dynamic method.
* reflection.c (resolve_object): New helper function.
* reflection.c: Generalize ReflectionMethodBuilder and the functions
which manipulate it so they can also work on dynamic methods.
* reflection.c (reflection_method_builder_to_mono_method): Avoid
creating the MonoReflectionMethodAux structure if it is not needed.
svn path=/trunk/mono/; revision=20393
* Parser.jay, Expression.cs, Iterator.cs :
Added ExprParens and ParensIterator classes which is used to handle
precedence of parenthesized expressions.
(e.g. consider "(preceding::*)[3]" and "preceding::[3]" )
* Expression.cs, Iterator.cs :
Added RequireSorting property for each Expr and BaseIterator classes.
SlashIterator.MoveNext() now considers correct sorting. But
considering performance, it separates two logics, sorted and sortless
depending on RequireSorting of left iterator and right expression.
* Iterator.cs :
SimpleIterator.ctor() should consider when nav is null.
FollowingIterator.MoveNext() and PrecedingIterator.MoveNext() should
not return any nodes.
AncestorIterator and AncestorOrSelfIterator copy ctr() should clone
positions.
AncestorIterator.MoveNext() should skip Root if context node is
Root itself.
FollowingIterator.MoveNext() should not handle children of context
itself.
PrecedingIterator.MoveNext() should skip its ancestors.
AxisIterator.ReverseAxis should be dependent on its containing iter.
UnionIterator.MoveNext() should consider comparison of nodes in
different document. The behavior is implementation dependent.
(see XSLT spec 12.1)
svn path=/trunk/mcs/; revision=20389
* XmlTextWriter.cs :
WriteProcessingInstruction() should check name validity.
AddMissingElementXmlns() should allow namespace emission even if it
is identical to existing one.
svn path=/trunk/mcs/; revision=20388
* XslAttribute.cs, XslElement.cs, XslLiteralElement.cs :
More precise namespace handling.
* XslCopy.cs, XslElement.cs, XslLiteralElement.cs :
Added cdata-section-elements support.
* XslNumber.cs :
Cases when value is NodeSet should be allowed.
Default output should be 1,2,3... not exception. see XSLT spec 7.7.1
svn path=/trunk/mcs/; revision=20387
(in general: cdata-section-elements support, correct document()
base uri handling, and so on)
* Compiler.cs : Use XmlSpace.Preserve to parse included stylesheet.
And move to document element. Added XslNameUtil.FromListString().
* Emitter.cs, HtmlEmitter.cs, TextEmitter.cs XmlWriterEmitter.cs :
Added WriteCDataSection().
* Outputter.cs, GenericOutputter.cs, TextOutputter.cs :
Added InsideCDataSection.
* GenericOutputter.cs :
In .ctor(), WriteState should be succeeded from output XmlWriter.
WriteNamespaceDecl() now drops declaration identical to existing one.
Removed obsolete htmlEmulation.
* XslOutput.cs : Added CDataSectionElements support.
* XslStylesheet.cs : Added BaseUri, StyleDocument and PrefixInEffect().
* XslTransformProcessor.cs :
Added Output and CurrentOutputUri. TryStylesheetNamespaceOutput()
now considers xsl:exclude-element-prefixes on literal element.
Added PushCDataState() and PopCDataState().
* XsltCompiledContext.cs : When base uri of document() target is empty,
then it should use stylesheet's BaseURI, not that of current document.
svn path=/trunk/mcs/; revision=20386
* SoapDocumentationHandler.cs: Check that the documentation page exist.
* SoapHttpClientProtocol.cs: Removed cast from WebResponse to
HttpWebResponse. This fixes bug #51281.
svn path=/trunk/mcs/; revision=20385
* ILGenerator.cs MethodBuilder.cs ConstructorBuilder.cs: Retrieve
tokens from a token generator object instead of from the ModuleBuilder,
to support the implementation of DynamicMethod. Also get rid of the
unused 'mbuilder' field.
* ModuleBuilder.cs: Create a token generator object which can be
passed to ILGenerator.
svn path=/trunk/mcs/; revision=20383
* Implemented DrawScrollButton on top of System.Drawing
* Implemented DrawRadioButton on top of System.Drawing
* Implemented DrawCheckBox on top of System.Drawing
* Implemented DrawButton on top of System.Drawing
svn path=/trunk/mcs/; revision=20375
* Npgsql/HashAlgorithm.cs:
* Npgsql/NpgsqlClosedState.cs:
* Npgsql/NpgsqlCommand.cs:
* Npgsql/NpgsqlConnectedState.cs:
* Npgsql/NpgsqlConnection.cs:
* Npgsql/NpgsqlReadyState.cs:
* Npgsql/NpgsqlStartupState.cs:
* Npgsql/NpgsqlState.cs: Apply Disposable pattern, when using
ADO.NET we need to call Dispose after using any Component like
NpgsqlDataAdapter, NpgsqlConnection, etc... Change a few internal
methods to Properties.
svn path=/trunk/mcs/; revision=20356
* DbDataAdapter.cs: Call command dispose in self dispose method. We
need to dispose the connections and other stuff stored in the
commands.
svn path=/trunk/mcs/; revision=20355
math in unmanaged code instead of doing it in C#.
* gdipFunctions.cs
(GdipResetWorldTransform, GdipSetWorldTransform):
(GdipGetWorldTransform, GdipScaleWorldTransform): Imported.
* Graphics.cs: Remove unnecessary TODO, and reformatted the code.
(transform): Removed this field. Always use the
matrix associated in the GpGraphics ptr.
(DrawBeziers): Implemented.
(DrawLine): Don't need to manually invoke the transform now.
(MultiplyTransform, ResetTransform):
(ScaleTransform, TranslateTransform): Use GDI+ implementation.
(Transform): Instead of storing a Matrix in managed code, use
equivalent GDI+ functions.
* matrix.c (GdipCreateMatrix3, GdipCreateMatrix3I): Implemented.
(GdipCloneMatrix): Fixed.
(GdipShearMatrix, set_shear): Implemented.
* graphics.c:
(GdipGetWorldTransform, GdipMultiplyWorldTransform): Implemented.
(GdipRotatePenTransform, GdipTranslatePenTransform): Use GDI+
functions instead.
* gdip.h
(GdipRotatePenTransform, GdipTranslatePenTransform): Fix
signature.
(GdipCreateMatrix3, GdipCreateMatrix3I): Use const appropriately.
svn path=/trunk/mcs/; revision=20344
* Calendar.cs (SaveViewState):
- We were allocating a 11 item array, we only used 10 items,
so only allocate 10.
- We only need to save the selected dates if there are any.
* DataGrid.cs (SaveViewState):
* DataGridColumn.cs (SaveViewState):
* DataGridColumnCollection.cs (SaveViewState):
- Only return the array if there is anything in it
* Style.cs (SaveViewState):
- Only save the bits if there were changes.
* WebControl.cs (SaveViewState), (LoadViewState):
- Don't save Enabled into the viewstate here, we already
do it in the property. This just caused *EVERY* control
to have a non-null state, taking up lots of extra room
in the ViewState.
- The style will always be created with this control's
viewstate, so the style will always return null for the
viewstate. As such, we do not need to store it. We can
also reduce the triplet to a pair because of this.
svn path=/trunk/mcs/; revision=20342
* driver.cs: Applied patch from [email protected] (Gert Driesen)
which fixes the -warnaserror command line option.
svn path=/trunk/mcs/; revision=20339
* Changed line endings to unix format in SSL/TLS sources.
* Mono.Security.CryptographyoHMD5SHA1CryptoServiceProvider.cs:
- Removed file (now it's called MD5SHA1.cs)
* Mono.Security.Protocol.Tls/TlsCipherSuiteFactory.cs:
- Removed comments from AES ciphersuites.
svn path=/trunk/mcs/; revision=20335
cached page. Then store a CachedRawResponse for each combination
of varried parameters for a page.
* CachedRawResponse.cs: Do not need to store param values anymore
those are stored in the CachedVaryBy now. Get the content length
so we dont send back the entire buffer.
* CachedVaryBy.cs: New file - holds the varyby data for a page,
and a method to generate a key based on params. Right now this
only works with VaryByParams. TODO: support VaryByHeaders and
VaryByCustom.
svn path=/trunk/mcs/; revision=20334
cached page. Then store a CachedRawResponse for each combination
of varried parameters for a page.
* CachedRawResponse.cs: Do not need to store param values anymore
those are stored in the CachedVaryBy now. Get the content length
so we dont send back the entire buffer.
* CachedVaryBy.cs: New file - holds the varyby data for a page,
and a method to generate a key based on params. Right now this
only works with VaryByParams. TODO: support VaryByHeaders and
VaryByCustom.
svn path=/trunk/mcs/; revision=20333
cached repsonse so that only that amount will be written back to
the client. Add method to write a range of binary data.
* HttpCacheVaryByParams.cs: Add method to retrieve param
names.
svn path=/trunk/mcs/; revision=20331
* ObjectStateFormatter.cs: v2 file. In v1.x this will be
internal as LosFormatter will eventually use it to save
the view state.
svn path=/trunk/mcs/; revision=20329
* cfold.cs (DoNumericPromotions): During constant folding of
additions on UIntConstant, special case intconstants with
IntConstants like we do on the expression binary operator.
svn path=/trunk/mcs/; revision=20327
* Npgsql/NpgsqlClosedState.cs:
* Npgsql/NpgsqlConnectedState.cs:
* Npgsql/NpgsqlConnection.cs:
* Npgsql/NpgsqlReadyState.cs:
* Npgsql/NpgsqlState.cs: Changes related to the last update of SSL
implementation. Now we're using TcpClient for the connection and
Stream for the abstraction layer to SslClientStream.
svn path=/trunk/mcs/; revision=20325
field to MonoAppContext and renamed thread_static_fields to a more
generic special_static_fields in MonoAppDomain, since it can now contain
context static fields.
* domain.c: Updated hashtable name.
* object.c: Replaced field_is_thread_static() for a more generic
field_is_special_static() which also checks for context static attribute.
In mono_class_vtable(), added support for static context fields.
* threads.c: Changed methods that manage thread static fields to more
generic methods so they can be reused both for thread and context static
data.
* threads.h: Declared some new methods.
svn path=/trunk/mono/; revision=20315
* TypeBuilder.cs FieldBuilder.cs MethodBuilder.cs ConstructorBuilder.cs: Add support for custom modifiers from NET 1.2.
svn path=/trunk/mcs/; revision=20306
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.2003-11-21: Jean-Marc Andre <[email protected]>
* SoapReader.cs:
Bug fixed. SerializationBinder.BindToType was not called
the right way in GetElementInfo() (switched assemblyName
and typeName). Will add a unit test in few days.
svn path=/trunk/mcs/; revision=20302
* Fully implemented all DrawBorder methods on top of System.Drawing
* Replaced the (apparently) broken double-based HLS/RGB formulas with faster integer versions
* Removed MonoTODO tags from verified and complete methods
svn path=/trunk/mcs/; revision=20300
* Mono.Security.Protocol.Tls/SslClientStream.cs:
Removed ReadByte method, use innerStream.ReadByte() method instead.
2003-11-13 Carlos Guzm��n ��lvarez <[email protected]>
* Added implementation of an SslClientStream class similar to the MS .NET Framework 1.2 documentation.
The next files are no more needed:
- TlsSession.cs
- TlsNetworkStream.cs
- TlsSocket.cs
- TlsSessionState.cs
The next files are renamed:
- TlsSessionSettings.cs -> TlsClientSettings.cs
- TlsSessionContext.cs -> TlsContext.cs
The next files are new:
- SslClientStream.cs ( the name is non definitive yet )
The next files where changed to reflect the new canges:
- TlsHandshakeMessage.cs
- TlsClientCertificate.cs
- TlsClientCertificateVerify.cs
- TlsClientFinished.cs
- TlsClientHello.cs
- TlsClientKeyExchange.cs
- TlsServerCertificate.cs
- TlsServerCertificateRequest.cs
- TlsServerFinished.cs
- TlsServerHello.cs
- TlsServerHelloDone.cs
- TlsServerKeyExchange.cs
- TlsAlert.cs
- TlsCloseNotifyAlert.cs
2003-11-12 Carlos Guzm��n ��lvarez <[email protected]>
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Changes for give full error message only in debug mode ( Thanks to Sebasti��n Pouliot. )
* Mono.Security.Protocol.Tls/TlsProtocol.cs:
- Renamed to SecurityProtocolType.cs ( for match .NET 1.2 )
* Mono.Security.Cryptography/MD5SHA1CryptoServiceProvider.cs:
- Renamed to MD5SHA1.cs ( Thanks to Sebasti��n Pouliot. )
* Mono.Security.Cryptography/TlsCompressionMethod.cs:
- Renamed to SecurityCompressionType.
* Mono.Security.Protocol.Tls/CipherAlgorithmType.cs:
* Mono.Security.Protocol.Tls/HashAlgorithmType.cs:
* Mono.Security.Protocol.Tls/ExchangeAlgorithmType.cs:
- New enumerations that matches .NET 1.2 definitions with some minor differences.
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsCipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsSessionContext.cs:
- Added changes for make use of new enumerations.
* Mono.Security.Protocol.Tls/TlsClientStream.cs:
- Added new informative properties that matches .NET 1.2 SslClientStream
( Not all the properties are implemented yet ).
2003-11-10 Carlos Guzm��n ��lvarez <[email protected]>
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Fixed invalid alert message.
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs:
* Mono.Security.Cryptography/HMAC.cs:
* Mono.Security.Cryptography/MD5SHA1CryptoServiceProvider.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs:
- Changed ( Thanks to Sebasti��n Pouliot for his feedback )
SHA1CryptoServiceProvider sha = new SHA1CryptoServiceProvider();
MD5CryptoServiceProvider sha = new MD5CryptoServiceProvider();
to
HashAlgorithm sha = SHA1.Create();
HashAlgorithm md5 = MD5.Create();
2003-11-04 Carlos Guzm��n ��lvarez <[email protected]>
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
- Commented server certificate signature verification.
* Mono.Security.Protocol.Tls/TlsServerSettings.cs:
- Renamed ServerCertificates property to Certificates.
svn path=/trunk/mcs/; revision=20298
* CachedRawResponse.cs: New file - A snapshot of a response that
is stored in the cache and can be used to create a new response.
* OutputCacheModule.cs: Module for inserting and retrieving
responses from the cache.
svn path=/trunk/mcs/; revision=20272
can get the buffer size. Add method to get the buffer.
* HttpResponse.cs: Methods for getting data to cache, and setting
vars from the cache.
* HttpCachePolicy.cs: Expose a pages cache expire time.
svn path=/trunk/mcs/; revision=20268
* TemplateControlCompiler.cs: support for expressions of
System.Drawing.Size type. Allow getting Color from comma separated
numbers, which is not allowed by ColorConverter.
This makes http://www.codeproject.com/aspnet/asppopup.asp work.
svn path=/trunk/mcs/; revision=20263
* HttpSoapWebServiceHandler.cs: WebException is ok here for wrong
content encoding...
* SoapHttpClientProtocol.cs: ... but here, we should throw an
InvalidOperationException including the full response.
* WebServiceHelper.cs:
(GetContentEncoding): now fills an output variable with the name of the
content encoding used.
(InvalidOperation): new method to build the message for
InvalidOperationException.
svn path=/trunk/mcs/; revision=20261
* MailMessageWrapper.cs: fixed typo that made all messages be sent as
html, even when the body is marked as text. Path by Mohammad DAMT.
Closes bug #51177.
svn path=/trunk/mcs/; revision=20256
* XsltCompiledContext.cs : XsltGenerateId.Evaluate() should consider
node type (i.e. attribute and namespace). Removed extraneous Clone().
Fixed XsltKey.Evaluate() to use MoveToNextAttribute to iterate attrs.
svn path=/trunk/mcs/; revision=20242
* DefaultContext.cs : XPathFunctions.ToNumber() should catch overflow.
XPathFunctionId.cs : Exposed Id expression.
* Expression.cs : Added ExprLiteral.Value, and class ExprParens (it
will be used to solve evaluation precedence problem).
svn path=/trunk/mcs/; revision=20225
* Compiler.cs : Changed Keys from ArrayList to Hashtable.
XslStylesheet.cs : Added Keys support here.
* XslTransformProcessor.cs : Should call SetContext() to expressions
before evaluating current nodes.
* XsltCompiledContext.cs : 1) XsltDocument.GetDocument() should use
xsltContext. 2) XsltKey exposes KeyName, Field and NamespaceManager
for KeyPattern. It now uses CompiledStyle.FindKeys().
svn path=/trunk/mcs/; revision=20222
* System_test.dll.sources: added new RegexBugs test.
* System.Text.RegularExpressions/regex.cs:
(Split): include capture groups in the results, if any. Fixes bug
#51146.
* Test/system_linux_test.args: removed. Not needed any more.
svn path=/trunk/mcs/; revision=20219
(EndEdit) : Check that we are not in middle of ChangeEvent.
(AcceptChanges) : Detach the row.
* DataRelation.cs : throw correct exception.
*UniqueConstraint.cs : throw correct exception.
svn path=/trunk/mcs/; revision=20217
* corlib.dll.sources: Added already existing, but not added delegate
Added various classes in System.InteropServices
svn path=/trunk/mcs/; revision=20194
* ParameterCollection.cs: Implemented
* Parameter.cs: Added _owner, SetOwnerCollection and proper handling.
ToString () now matches asp.net
svn path=/trunk/mcs/; revision=20177
* expression.cs (Invocation.VerifyArgumentsCompat): Remove
debugging message.
(SizeOf.DoResolve): assign the `type_queried' field. This gets
corlib to compile.
Martin must have done most of the fixes, because corlib now builds with gmcs
svn path=/trunk/mcs/; revision=20151
* ConfigurationSettings.cs: make the *Mark objects static
because they need to be comparable across instances.
(ReadSectionGroup): You can add an element to a group declared
in the parent config files (MS.net's QuickStarts do this).
svn path=/trunk/mcs/; revision=20145
* StringBuilder.cs (Insert int, char): It is really silly and
wasteful to allocate an array here. We can just copy the value
over.
svn path=/trunk/mcs/; revision=20144
SoapClientFormatterSinkProvider.cs, SoapServerFormatterSinkProvider.cs: Small fix.
* SoapServerFormatterSink.cs: Small fix in AsyncProcessResponse.
* BinaryCore.cs, SoapCore.cs: throw an exception if an unknown property
is found.
svn path=/trunk/mcs/; revision=20131
* Graphics.cs (DrawString): Use GpRectF.
* gdipFunctions.cs: Updated method signatures.
* Graphics.cs (MultiplyTransform): Implemented using
GdipMultiplyWorldTransform from GDI+.
* gdipStructs.cs (GdipRectF, GdipRect): Renamed to GpRectF and
GpRect, to be more consistent with the C naming.
svn path=/trunk/mcs/; revision=20119
* WebConnection.cs: turns out that socket.Connected is not useful until
we actually try to send/receive data, even if the other end has already
closed the socket. Added TryReconnect() and Connected.
* WebConnectionData.cs: default value for StatusCode is 0 now.
* WebConnectionGroup.cs: reuse the connection since the beginning,
instead of opening up to ConnectionLimit and then reusing.
* WebConnectionStream.cs: reopen the socket if we're trying to reuse
one which fails on first write.
svn path=/trunk/mcs/; revision=20117
* appdomain.c (mono_runtime_get_out_of_memory_ex): New function to
return a preallocated out-of-memory exception instance.
* object.c (out_of_memory): Use the new function.
svn path=/trunk/mono/; revision=20116
* metadata.c (mono_metadata_parse_type): Handle the case when the byref
flag is before the custom modifiers. Fixes#49802.
svn path=/trunk/mono/; revision=20114
* GraphicsPathIterator.cs: Do not make this protected.
2003-11-16 Miguel de Icaza <[email protected]>
* Graphics.cs: Implement the other DrawString overloads .
2003-11-16 Miguel de Icaza <[email protected]>
* gdipStructs.cs (GdipRectF): Added utility constructor
svn path=/trunk/mcs/; revision=20092
* SqlParameterCollection.cs (Clear): Clear needs to take
the parameter out of the collection so that it can be used
again.
(Remove):
(RemoveAt): Ditto.
svn path=/trunk/mcs/; revision=20091
* pen.c (GdipResetPenTransform):
(GdipMultiplyPenTransform, GdipTranslatePenTransform):
(GdipScalePenTransform, GdipRotatePenTransform): Implemented..
* matrix.c (set_translate, set_scale, set_rotate): Helper
functions copied from Cairo. We are doing this because you can
specify the order of multiplcation in GDI+, but not in Cairo.
2003-11-15 Duncan Mak <[email protected]>
* graphics.c: Moved PI and GRADTORAD to gdip.h.
* gdip.h: Renamed GRADTORAD to DEGTORAD.
* matrix.c (GdipCloneMatrix): Fix argument order.
* matrix.c
(GdipMultiplyMatrix, GdipTranslateMatrix, GdipScaleMatrix):
(GdipRotateMatrix, GdipInvertMatrix):
(GdipTransformMatrixPoints, GdipVectorTransformMatrixPoints):
(GdipSetMatrixElements, GdipGetMatrixElements):
(GdipIsMatrixInvertible): Implemented.
* matrix.c (GdipIsMatrixIdentity, GdipIsMatrixEqual): Implemented,
but pending commit for cairo_matrix_equals to Cairo.
2003-11-15 Duncan Mak <[email protected]>
* gdipFunctions.cs: Imported matrix functions.
svn path=/trunk/mcs/; revision=20090
context.
* ConstructionCall.cs: Fixed signature of some methods.
* ConstructionResponse.cs: Fixed signature of constructor and added missing
property.
* LogicalCallContext.cs: Removed TODO.
* MethodCall.cs, MethodResponse.cs: Added support for LogicalCallContext in
consturctor.
* MethodReturnMessageWrapper.cs: Removed some unneded methods.
svn path=/trunk/mcs/; revision=20084
BinaryServerFormatterSink.cs, BinaryServerFormatterSinkProvider.cs:
Moved formatter code to BinaryCore. This adds support for the properties
"includeVersion" and "strictBinding" to the binary formatter.
* BinaryCore.cs: New file. Contains some code used by the binary formatter sinks.
* SoapClientFormatterSink.cs, SoapClientFormatterSinkProvider.cs,
SoapServerFormatterSink.cs, SoapServerFormatterSinkProvider.cs
Moved formatter code to BinaryCore. This adds support for the properties
"includeVersion" and "strictBinding" to the soap formatter.
* SoapCore.cs: New file. Contains some code used by the soap formatter sinks.
* ChannelCore.cs: New file. Implements a simple type binder used by the
formatter sinks.
svn path=/trunk/mcs/; revision=20074
* generic.cs (TypeArguments.Resolve):
`Expression.ResolveAsTypeTerminal()' returns a TypeExpr; call
`ResolveType()' on it to get the Type.
svn path=/trunk/mcs/; revision=20072
* Assembly.cs (InternalGetAssemblyName): New icall.
* AssemblyName.cs (GetAssemblyName): Implement this without loading
the assembly in question. Fixes#51035.
svn path=/trunk/mcs/; revision=20067
* assembly.c (mono_assembly_fill_assembly_name): New function to
fill out the MonoAssemblyName structure.
(mono_assembly_open): Use the new function.
* icall.c (fill_reflection_assembly_name): New helper function.
* icall.c (ves_icall_System_Reflection_Assembly_FillName): Use the
new function.
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetAssemblyName): New icall.
svn path=/trunk/mono/; revision=20066
* gacutil.cs: Changed ... + Path.DirSepChar + ... to Path.Combine
Thanks to Ben Maurer. Turns out code marked as potentially not
needed was not needed, now refcounting with /u assemblyname works
as well.
svn path=/trunk/mcs/; revision=20054
* gacutil.cs: Added reference counting for installation and deletion.
An assembly will have a RefCount of 1 if --force is used.
svn path=/trunk/mcs/; revision=20053
* System/Environment.cs: use Directory in CurrentDirectory property.
We were not throwing any exception when setting the directory to an
invalid path.
* System.IO/Directory.cs:
(GetCurrentDirectory):
(SetCurrentDirectory): moved here from Environment. Handle error cases.
* System.IO/MonoIO.cs: add path to the default error message.
svn path=/trunk/mcs/; revision=20032
* class.c (mono_class_is_open_constructed_type): New public
function; checks whether a type is an open constructed type,
ie. whether it still contains type parameters.
(mono_class_inflate_generic_type): If we're a type parameter and
the inflated type is also a MONO_TYPE_(M)VAR, return the original
type.
* class.h (MonoGenericInst): Added `guint32 is_open'.
* loader.c (method_from_methodspec): Check whether we're an open
or closed constructed type and set `ginst->is_open'.
* reflection.c (mono_reflection_bind_generic_parameters): Check
whether we're an open or closed constructed type and set
`ginst->is_open'.
(mono_reflection_inflate_method_or_ctor): Don't inflate methods
from open constructed types.
svn path=/trunk/mono/; revision=20027
* reflection.c (mono_reflection_bind_generic_parameters): If we're
a generic instance (instead of a generic type declaration) with
unbound generic parameters, bind them to our actual types.
svn path=/trunk/mono/; revision=20021
Added handling of foreColor
Added handling of Pushbutton checkboxes
Added handling for three-state checkboxes
Added handling for alignment of checkbox and text
Added (incomplete) support for focus handling
svn path=/trunk/mcs/; revision=20019
* reflection.h (MonoReflectionGenericInst): Added `MonoArray *interfaces'.
* reflection.c (mono_reflection_bind_generic_parameters): If we're
an interface type, populate `res->interfaces' with instantiated
versions of all the interfaces we inherit.
svn path=/trunk/mono/; revision=20009
* MonoGenericInst.cs (MonoGenericInst): Added
`MonoGenericInst[] interfaces' field. This is only used for
interface types.
(MonoGenericInst.inflate): If we're an interface type, add the
methods from all interfaces we inherit.
svn path=/trunk/mcs/; revision=20008
* inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
float rules to inssel-x86.brg: sane architectures with FP registers
don't need to implement these rules.
svn path=/trunk/mono/; revision=20006
cairo_t. We need this because this is used in matrix.c and we only
have cairo_matrix_t there.
* graphics.c: Updated calls to gdip_get_status.
* pen.c
(convert_line_cap, convert_line_join): Added static keyword.
(GdipDeletePen): Implemented.
* matrix.c
(GdipCreateMatrix2, GdipCloneMatrix, GdipInvertMatrix): Use
gdip_get_status instead of just returning Ok.
(GdipRotateMatrix, GdipScaleMatrix, GdipTranslateMatrix):
Implemented.
svn path=/trunk/mcs/; revision=19999
* DateTime.cs: Running tests in different timezones give different
results. Need to change the way these tests work. Disabling some
tests for now.
svn path=/trunk/mcs/; revision=19995
* corlib_test.dll.sources: added new ValueTypeTest.cs
* System/ValueType.cs:
(Equals): compare the fields of structs too.
(GetHashCode): combine the hash code of all the fields.
Fixes bug #50901 (will remove the icall in a couple of days).
* Test/corlib_linux_test.args: Removed file.
* Test/corlib_test.args: Removed file.
* Test/System/ValueTypeTest.cs: New file.
svn path=/trunk/mcs/; revision=19994
* Directory.cs: allow directory names without wildcards in the pattern.
Fixes bug #3 50969.
* SearchPattern.cs: made InvalidChars and WildcardChars internal.
svn path=/trunk/mcs/; revision=19990
* FileStream.cs: use the argument name when throwing exception.
* StreamReader.cs:
* StringReader.cs:
* TextReader.cs: added [In] attribute for the array in Read.
svn path=/trunk/mcs/; revision=19987
* WebConnectionStream.cs: when a callback is passed to BeginRead/Write,
wrap it and do our job before calling it. Fixes bug #48497.
svn path=/trunk/mcs/; revision=19985
* Makefile: Hacked up a bit to allow the assemblies generated to have
'Microsoft.Web.Services' as their AssemblyName.Name instead of
'Microsoft.Web.Services.1' and 'Microsoft.Web.Services.2'.
svn path=/trunk/mcs/; revision=19984
* ProtectedDataTest.cs: New. Unit tests for ProtectedData (1.2).
* ProtectedMemoryTest.cs: New. Unit tests for ProtectedMemory (1.2).
svn path=/trunk/mcs/; revision=19979
set. Add method to set Http response header data
* HttpCacheVaryByParams.cs: Add method to create a response header.
* HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
* HttpResponse.cs: Set cache headers.
svn path=/trunk/mcs/; revision=19971
respective client and server channels. Added implementatoin of the
interface IChannelReceiverHook.
* HttpRemotingHandler.cs: Implemented.
* HttpRemotingHandlerFactory.cs: Implemented.
* HttpServer.cs: In general, use Stream instances instead of Socket. It is
more reusable in this way. Also improved formatting.
* HttpServerChannel.cs: Implemented support for IChannelReceiverHook.
Added new method DispatchRequest in HttpServerTransportSink that can
be reused by HttpRemotingHandler.
svn path=/trunk/mcs/; revision=19943
* mono-api-diff.cs: ensure no nested type gets in as non-nested.
(May be a bug in MS?). Added ptype and params attributes for properties.
* mono-api-info.cs: fixed some cases where there's a name duplication
(multiple attributes, properties). Fixed completion counters.
svn path=/trunk/mcs/; revision=19939
* icall.c:
(ves_icall_Type_GetInterfaces): don't return an interface twice when
it's also implemented in base classes. Fixes bug #50927.
svn path=/trunk/mono/; revision=19933
* gc.c (ves_icall_System_GC_WaitForPendingFinalizers): Avoid deadlocks
if this method is called from a finalizer. Fixes#50913.
svn path=/trunk/mono/; revision=19932
* GenericOutputter.cs : Added HTML output support. Closer xmlns handling
to Xalan tests and MS.NET implementation (only for test convenience).
* XslOutput.cs : Indent holds string rathen than bool. Its default value
varies in the context. When method="html", then default is "yes".
* XslTransformProcessor.cs : Extension element prefixes should not
be written as stylesheet namespaces.
* XsltCompiledContext.cs : Return type of generate-id() is string.
Implemented unparsed-entity-uri().
svn path=/trunk/mcs/; revision=19928
* convert.cs (ImplicitReferenceConversion): We were missing a case
(System.Enum are not value types or class types, so we need to
classify them separatedly).
svn path=/trunk/mcs/; revision=19922
* AssemblyBuilder.cs (DefineDynamicModule): Make internal method
private.
* AssemblyBuilder.cs (Save): Write out the main module at the end.
svn path=/trunk/mcs/; revision=19912
* driver.cs : /imports option now is implemented
* mb-parser.jay: support for pre-imported namespaces (the default Microsoft.VisualBasic and those from /imports)
svn path=/trunk/mcs/; revision=19902
* mb-tokenizer.cs : integer literal (Hex starts with &H not 0x), handle Octal literals (&O)
* handle unicode specialized double-quotes in string literals
* corrected some mishandling of conversions in numeric literals
* implemented support for char literals ("z"c)
* Makefile : verbose target uses verbose argument
* testmbas/WriteOK.vb: many tests for literals implemented
* literal.cs: correcting lack of a ShortLiteral class
* mb-parser.jay: removed support for unsigned int literals, added support for short int literals
svn path=/trunk/mcs/; revision=19900
* ActivatedClientTypeEntry.cs: Set the value of ObjectType in the constructor
* ActivatedServiceTypeEntry.cs, WellKnownClientTypeEntry.cs,
WellKnownServiceTypeEntry.cs: Check that the provided type is valid.
svn path=/trunk/mcs/; revision=19887
* assembly.c (mono_assembly_load_references): Disable check because it
triggers on older corlibs which lots of people have.
svn path=/trunk/mono/; revision=19881
load corlib.dll if mscorlib.dll is not found.
* assembly.h: Remove corlib name define.
* class.c:
* domain.c:
* image.c: Change corlib name to mscorlib.
svn path=/trunk/mono/; revision=19878
system directory. Also use the full file name so users can
libraries names mscorlib-o-tron.dll in a non system dir.
svn path=/trunk/mcs/; revision=19876
* mono-math.h mono-math.c: New file which contains implementations of
math functions/macros which are missing on some platforms.
svn path=/trunk/mono/; revision=19870
* Directory.cs: Adjust for missing PlatformID.Unix.
2003-11-12 Miguel de Icaza <[email protected]>
* PlatformID.cs: Remove Unix platform, we cant expose constants
that are not in the framework.
* OperatingSystem.cs: Adjust for the breakage.
* RuntimeMethodHandle.cs: Fix signature.
* Double.cs: Fix signature of TryParse.
* String.cs (Concat (object, object, object, object)): Add missing method.
* OperatingSystem.cs: Removed Equals, GetHashCode, they were not
in the .NET Framework.
* Enum.cs: Hide constructor.
Fix ToUint16 to be explicitly implemented.
* Console.cs: Add couple of extra missing methods (Write and
WriteLine overloaded)
svn path=/trunk/mcs/; revision=19857
* appdomain.h: Added loader_optimization here to sync with the C#
code, and add disallow_binding_redirects field.
svn path=/trunk/mono/; revision=19845
* Encoding.cs: Use an internal variable to track the parameters of
each encoder, since the .NET API does not expose virtual methods
in the child classes, we should not depend on that.
* ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
Initialize the parameters for base class encoding here.
svn path=/trunk/mcs/; revision=19843
* mono-api-diff.cs: fixed nullref and add warning when class type do not
match.
* mono-api-info.cs: ignore private classes.
svn path=/trunk/mcs/; revision=19838
* reflection.h (MonoMethodInfo): Track changes to the managed structure.
* icall.c (ves_icall_get_method_info): Return callingConvention as
well.
* icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Add
namespaces from the EXPORTEDTYPE table as well.
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes): Merge types
from all modules inside the assembly.
svn path=/trunk/mono/; revision=19831
* CorCompare.exe.sources: not needed now.
* Makefile: updated to build the 3 exes we have now.
* mono-api-info.cs: new program. Given an assembly name, it generates
an xml file with its public data.
* mono-api-diff.cs: compares 2 xml files generated with mono-api-info
and outputs an xml file suitable for building class status pages with
mono-api.xsl.
* mono-api.xsl: small modifications to corcompare.xsl to match the new
file format.
svn path=/trunk/mcs/; revision=19821
* reflection.c (resolution_scope_from_image): Use the assembly table
from the manifest module, since other modules don't have it.
svn path=/trunk/mono/; revision=19818
* debug-helpers.c (mono_type_full_name): New helper function.
* image.h (MonoAssembly): Change 'dynamic' to a boolean.
* image.c (mono_image_load_file_for_image): New public function which
is a replacement for the load_file_for_image in class.c.
* assembly.c (mono_assembly_load_module): A wrapper for the function
above which does assembly association and reference loading too.
* class.c (mono_class_from_name): Call mono_assembly_load_module.
svn path=/trunk/mono/; revision=19817
* appdomain.c: not all of the attributes for the full assembly name
are required and the order doesn't matter. Fixes bug #50787.
svn path=/trunk/mono/; revision=19814
* Npgsql/NpgsqlDataReader.cs: GetSchemaTable has nothing to do with
CanRead because the schema can be readed with or without result
rows.
svn path=/trunk/mcs/; revision=19810
* ContextsTest.cs: Unregister dynamic properties even if there is an exception.
* CrossDomainCalls.cs: New test for the cross-app domain channel.
svn path=/trunk/mcs/; revision=19799
* DataColumnMappingCollection.cs: Fix a missing exception when the
required mapping is not in the collection. MS.NET throws an
exception there.
svn path=/trunk/mcs/; revision=19797
* *.cs, mb-parser.jay: Switched all from defining/using namespace Mono.CSharp to Mono.MonoBASIC
* location.cs: SymbolDocument now returns a SymbolDocumentWriter using the right (SymLanguageType.Basic) GUID
svn path=/trunk/mcs/; revision=19794
* typemanager.cs (TypeManager.ResolveExpressionTypes): Removed.
(TypeManager.InitCoreTypes): Initialize them here, but instead of
calling `ResolveType()' on them, directly assign their `Type'.
svn path=/trunk/mcs/; revision=19791
* metadata.c
(mono_metadata_load_generic_params): Make this actually work.
* reflection.c (mono_reflection_bind_generic_parameters): If our
parent is a generic instance, pass all the `types' to it, no
matter whether it has the same number of type parameters or not.
svn path=/trunk/mono/; revision=19786
* assembly.c (mono_assembly_load_references): Move the image<->assembly
assignment code to this function so it gets called recursively for all
modules.
* image.c (load_modules): Remove the assembly assignment since it is
now done by mono_assembly_load_references.
svn path=/trunk/mono/; revision=19782
* Assembly.cs (InternalGetType): Add a 'module' argument so this
method can be used from Module as well.
* Module.cs (GetType): Implement.
* Module.cs (GetTypes): Implement.
* Module.cs: Remove some [MonoTODO] attributes from implemented methods.
svn path=/trunk/mcs/; revision=19780
* Rfc2898DeriveBytes.cs: Implementation for PKCS5 PBKDF2. It works
except for the Reset() part - which implies some kind of Resume.
svn path=/trunk/mcs/; revision=19774
* DataBoundControl.cs: Implement
* ListControl.cs: inherit from the above.
* Repeater.cs, BaseDataList.cs: should reset whenever we databind.
svn path=/trunk/mcs/; revision=19773
* DataRow.cs: Use RemoveInternal instead of Remove because the last
one uses Delete and AcceptChanges.
* DataRowCollection.cs: When removing, Delete and AcceptChanges
method from the row are called. Added an internal method that will
be used by DataRow to "physically" remove the row from the list.
svn path=/trunk/mcs/; revision=19768
* Npgsql/NpgsqlDataAdapter.cs: Do not assing the result of the
CommandBuilder to the local data. Local data should be null if the
client doesn't set them.
* Npgsql/NpgsqlCommandBuilder.cs: Mistake in param name fixed.
svn path=/trunk/mcs/; revision=19767
* XslAttribute.cs : namespace should be String.Empty if no specification
exists.
* XslNumber.cs : default format string is "1". See XSLT spec. 7.7.1.
svn path=/trunk/mcs/; revision=19765
* DataRow.cs (this[]) : First check if row is deleted.
(ItemArray) : First check if row is deleted.
(SetColumnValue) : Initiate error message when null violation happens. Check for array type when
setting the value of the row.
(EndEdit) : Check that the table's row is not in loading before validating constrains.
(CheckNullConstraints) : new method for validating null constraint violations.
* DataRowCollection.cs (ValidateDataRowInternal) : Adding validation of null constraint violation.
* DataSet.cs (CaseSensitive) : After changing the value - check constrains.
(EnforceConstraints) : When changing the value to true assert all constraints.
* UniqueConstraint.cs (AssertConstraint,CalcHashValue, RowsComparer) : Adding support for case insensitive comparison.
svn path=/trunk/mcs/; revision=19764
* corlib.dll.sources: Added new 1.2 classes for System.Security.Cryptography.
* corlib_test.dll.sources: Added unit tests for some HMAC (new in 1.2).
svn path=/trunk/mcs/; revision=19763
* HMACMD5Test.cs: New. Unit test for HMAC-MD5 with test vectors from
RFC2104.
* HMACRIPEMD160Test.cs: New. Unit test for HMAC-RIPEMD160 with test
vectors from http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html.
* HMACSHA256Test.cs: New. Unit test for HMAC-SHA256.
svn path=/trunk/mcs/; revision=19762
* CryptoConfig.cs: Updated for RIPEMD160 and HMAC.
* CspKeyContainerInfo.cs: New (1.2). Information about CSP based key
containers.
* DataProtectionScope.cs: New (1.2). Enumeration for ProtectedData.
* HMAC.cs: New (1.2). Base class for all HMAC. Code is mostly copied
from internal Mono.Security.Cryptography.HMACAlgorith.cs.
* HMACMD5.cs: New (1.2). HMAC implementation using MD5.
* HMACRIPEMD160.cs: New (1.2). HMAC implementation using RIPEMD160.
* HMACSHA1.cs: Modified to derive from HMAC for .NET 1.2.
* HMACSHA256.cs: New (1.2). HMAC implementation using SHA256.
* HMACSHA384.cs: New (1.2). HMAC implementation using SHA384.
* HMACSHA512.cs: New (1.2). HMAC implementation using SHA512.
* ICspAsymmetricAlgorithm.cs: New (1.2). Interface for CSP based
asymmetric algorithm.
* KeyNumber.cs: New (1.2). Enumeration for CspKeyContainerInfo.
* MemoryProtectionScope.cs: New (1.2). Enumeration for ProtectedMemory.
* PaddingMode.cs: Added two new padding modes to enumeration (for 1.2).
* ProtectedData.cs: New (1.2). ProtectedData without protection (TODO).
* ProtectedMemory.cs: New (1.2). Stub for ProtectedMemory.
* Rfc2898DeriveBytes.cs: New (1.2). Stub for PKCS5 PBKDF2.
svn path=/trunk/mcs/; revision=19761
* class.c (mono_class_inflate_generic_method): Interface method
don't have a header.
* reflection.c (mono_image_get_methodspec_token): Take an
additional `MonoGenericInst *' argument instead of reading it from
the header; this is necessary to support interfaces.
(mono_image_create_token): Pass the `MonoGenericInst *' from the
MonoReflectionInflatedMethod to mono_image_get_methodspec_token().
(inflated_method_get_object): Take an additional `MonoGenericInst *'
argument.
* reflection.h (MonoReflectionInflatedMethod): Added
`MonoGenericInst *ginst'.
svn path=/trunk/mono/; revision=19759
* jscript-lexer-parser.g: Allow the building of numeric_literal and DECIMAL_LITERAL,
this is temporal in order to get Factorial compiled by mjs (must
build the types according to Ecma-262 spec).
* Literal.cs: Added NumericLiteral class.
2003-11-06 cesar lopez nataren <[email protected]>
svn path=/trunk/mcs/; revision=19757
* DataRowCollection.cs: To follow the specification: Remove and
RemoveAt should remove the row. But needed to call DeletingDataRow
to prepare the deleting.
* DataRow.cs: Don't call DeletingDataRow when it is called by the
method Table.Rows.Remove.
svn path=/trunk/mcs/; revision=19753
* RIPEMD160Test.cs: New. Unit test using RIPEMD160 test vectors.
* RIPEMD160Managed.cs: New. Unit tests running RIPEMD160Test using the
RIPEMD160Managed implementation.
svn path=/trunk/mcs/; revision=19752
* RIPEMD160.cs: New (1.2). Abstract class for RIPEMD160 hash from
Pieter Philippaerts ([email protected])
* RIPEMD160Managed.cs: New (1.2). Implementation of the RIPEMD160 hash
algorithm from Pieter Philippaerts ([email protected])
svn path=/trunk/mcs/; revision=19751
* UrlUtils.cs: new function to do the app mapping, but make
it return a physical path.
2003-11-08 Ben Maurer <[email protected]>
* SiteMap.cs (Init): implement a hack that doesnt need the config
stuff. Should do that later.
* SiteMapNodeCollection (OnValidate): Fix recursion.
* SiteMapProvider.cs: We dont implement some culture stuff work
around it. Fix typo.
* XmlSiteMapProvider.cs: Added.
svn path=/trunk/mcs/; revision=19749
* DataRowCollection.cs: Make the row be deleted by itself. If not,
it fails because we need to call OnRowDeleting and OnRowDeleted. It
is full implemented inside DataRow.
svn path=/trunk/mcs/; revision=19748
* X509ChainElementCollectionTest.cs: New. Unit tests for
X509ChainElementCollection.
* X509ChainElementEnumeratorTest.cs: New. Unit tests for
X509ChainElementEnumerator.
* X509ChainPolicyTest.cs: New. Unit tests for X509ChainPolicy.
* X509ChainTest.cs: New. (Incomplete) Unit tests for X509Chain.
* X509StoreTest.cs: New. (Incomplete) Unit tests for X509Store.
svn path=/trunk/mcs/; revision=19746
* OpenFlags.cs: New (1.2). Enumeration for certificate stores.
* StoreLocation.cs: New (1.2). Enumeration for certificate stores.
* StoreName.cs: New (1.2). Enumeration for certificate stores.
* X509Chain.cs: New (1.2). Class to build a certificate chain up to a
trusted anchor.
* X509ChainElement.cs: New (1.2). Element from the chain (certificate,
status and information) - only stubbed for now.
* X509ChainElementCollection.cs: New (1.2). Collection class for
X509ChainElement.
* X509ChainElementEnumerator.cs: New (1.2). Enumerator class for
X509ChainElement.
* X509ChainPolicy.cs: New (1.2). Policy to build a certificate chain.
* X509ChainStatusFlags.cs: New (1.2). Enumeration for chain status.
* X509FindType.cs: New (1.2). Enumeration for how to find X.509
certificates in stores.
* X509IncludeOption.cs: New (1.2). Enumeration for options about which
certificate(s) to store within a (pkcs7) structure.
* X509KeyUsageFlags.cs: New (1.2). Enumeration for specifying valid
usage for a keypair.
* X509NameType.cs: New (1.2). Enumeration for different types of name
that can be present inside a certificate.
* X509RevocationFlag.cs: New (1.2). Enumeration for specifying which
certificates should be verified for revocation in a chain.
* X509RevocationMode.cs: New (1.2). Enumeration for specifying how the
revocation process should find it's informations.
* X509SelectionFlag.cs: New (1.2). Enumeration about how to select
certificates (ui-related).
* X509Store.cs: New (1.2). X.509 certificate store access - not complete.
* X509VerificationFlags.cs: New (1.2). Enumeration for parameters
affecting the verification of a certificate chain.
svn path=/trunk/mcs/; revision=19745
* Makefile: Little fix for build the resources.
* Npgsql/NpgsqlCommandBuilder.cs: Added row version in delete
command.
svn path=/trunk/mcs/; revision=19744
* ContentInfoTest.cs: New. (Incomplete) Unit tests for ContentInfo.
* Pkcs7SignerTest.cs: New. New. Unit tests for Pkcs7Signer.
* RecipientInfoTest.cs: New. Unit tests for abstract class
svn path=/trunk/mcs/; revision=19743
* ContentInfo.cs: New. Class to encapsulate PKCS7 ContentInfo. Static
method GetContentType need to be completed (requires some test vectors).
* Pkcs7Signer.cs: New. Class to add attributes (authenticated and/or
authenticated), certificates and other informations to the signature.
* RecipientInfo.cs: New. Abstract class to encpasulate recipient
informations.
svn path=/trunk/mcs/; revision=19742
* Npgsql/NpgsqlCommand.cs: Removed try-catch for Resource Manager
calls, the problem is fixed.
* Makefile: Fix one bug in the build of resources.
svn path=/trunk/mcs/; revision=19739
* class.cs (TypeContainer.GetClassBases): Use TypeExpr's for the
return value and the `out parent' parameter.
(TypeContainer.DefineType): Moved the CS0644 check into
GetClassBases(). Don't pass the interface types to the
`builder.DefineType()'/`builder.DefineNestedType()', but resolve
them later and then call `TypeBuilder.AddInterfaceImplementation()'.
* ecore.cs (TypeExpr.IsAttribute): New property.
(TypeExpr.GetInterfaces): New method.
* interface.cs (Interface.GetInterfaceTypeByName): Return a
TypeExpr instead of a Type.
(Interface.GetInterfaceBases): Return TypeExpr's instead of Type's.
(Interface.DefineType): Don't pass the interface types to the
`builder.Definetype()'/`builder.DefineNestedType()', but resolve
them later and then call `TypeBulider.AddInterfaceImplementation()'.
* typemanager.cs (TypeManager.AddUserType): Take a `TypeExpr[]'
instead of a `Type[]'.
(TypeManager.RegisterBuilder): Likewise.
(TypeManager.AddUserInterface): Likewise.
(TypeManager.ExpandInterfaces): Take a `Type[]' instead of a
`Type[]' and also return a `TypeExpr[]'.
(TypeManager.GetInterfaces): Return a `TypeExpr[]'.
svn path=/trunk/mcs/; revision=19734
* decl.cs (DeclSpace.GetTypeResolveEmitContext): Call
TypeManager.ResolveExpressionTypes().
* ecore.cs (Expression.ResolveAsTypeTerminal): Return a TypeExpr
instead of an Expression.
(TypeExpr): This is now an abstract base class for `TypeExpression'.
(TypeExpression): New public class; formerly known as `TypeExpr'.
* expression.cs (ComposedCast): Derive from TypeExpr.
* typemanager.cs (TypeManager.system_*_expr): These are now
TypExpr's instead of Expression's.
(TypeManager.ResolveExpressionTypes): New public static function;
called from DeclSpace.GetTypeResolveEmitContext() to resolve all
of them.
svn path=/trunk/mcs/; revision=19732
* Npgsql/NpgsqlCommandBuilder.cs: Added the command builder.
* Npgsql/NpgsqlDataAdapter.cs: Added the CommandBuilder stuff. When
OnRowUpdating is called we create the command necesary for updating,
inserting or deleting any row of the DataTable/DataSet.
* Npgsql/NpgsqlCommand.cs: Temporary try-catch. ResMan still doesn't
work. This must be removed when ResMan works.
* Npgsql/NpgsqlParameter: No more than one call to value.GetType()
is more efficient for the deep if structure types.
svn path=/trunk/mcs/; revision=19730
that the .x and .y values are not being posted, and only the x
value is being posted with the ctrl's id as the key.
svn path=/trunk/mcs/; revision=19725
* Npgsql/NpgsqlDataAdapter.cs: Fixed the mistake I did in the last
change. The Command objects must not be created in the constructor.
The Commands should be in the overrided method "OnRowUpdating".
* Npgsql/NpgsqlCommand.cs: Added two try-catch instructions to get
the proper exception (not MissingManifestResourceException). It is
thrown in MS.NET and in MONO. (Npgsql compiled with MCS).
svn path=/trunk/mcs/; revision=19713
* AlgorithmIdentifierTest.cs: New. Unit tests for AlgorithmIdentifier.
* CryptographicAttributeTest.cs: New. Unit tests for CryptographicAttribute.
* Pkcs9AttributeTest.cs: New. Unit tests for Pkcs9Attribute (same as for
CryptographicAttribute).
* Pkcs9DocumentDescriptionTest.cs: New. Unit tests for Pkcs9DocumentDescription.
* Pkcs9DocumentNameTest.cs: New. Unit tests for Pkcs9DocumentName.
* Pkcs9SigningTimeTest.cs: New. Unit tests for Pkcs9SigningTime.
svn path=/trunk/mcs/; revision=19710
* expression.cs (New.DoResolve): Do not dereference value that
might be a null return.
* statement.cs (Block.EmitMeta): Use the Const.ChangeType to make
sure that the constant value has the right type. Fixes an
unreported bug, similar to 50425.
* const.cs (Const.LookupConstantValue): Call
ImplicitStandardConversionExists before doing a conversion to
avoid havng the TypeManager.ChangeType do conversions.
Reduced the number of casts used
(Const.ChangeType): New routine to enable reuse of the constant
type changing code from statement.
* typemanager.cs (ChangeType): Move common initialization to
static global variables.
Fixes#50425.
svn path=/trunk/mcs/; revision=19707
* Iterator.cs: (AxisIterator.ComparablePosition): Remove. Let
it inherit from the base class. This made b[2] evaluated on
<a /><b /><c /><a /><b /><c /> return the first b node because
in the ChildIterator it was the second node and seemed to satsify
the predicate.
svn path=/trunk/mcs/; revision=19706
* AsnEncodedDataTest.cs: New. Unit tests for AsnEncodedData (.NET 1.2).
* OidTest.cs: New. Unit tests for Oid (.NET 1.2).
* OidCollectionTest.cs: New. Unit tests for OidCollection (.NET 1.2).
* OidEnumeratorTest.cs: New. Unit tests for OidEnumerator (.NET 1.2).
svn path=/trunk/mcs/; revision=19702
* AsnEncodedData.cs: New. Class to encapsulate ASN.1 data (.NET 1.2).
* Oid.cs: New. Class to encapsulate OIDs (.NET 1.2).
* OidCollection.cs: New. ICollection based class for OIDs (.NET 1.2).
* OidEnumerator.cs: New. IEnumerator based class for OIDs (.NET 1.2).
svn path=/trunk/mcs/; revision=19701
* BinarySecurityTokenTest.cs: Fixed some tests and added one for RawData.
* DecryptionKeyProviderTest.cs: New. Unit tests for DecryptionKeyProvider.
* SignatureTest.cs: Updated for WSE2 compatibility (SignatureOptions).
svn path=/trunk/mcs/; revision=19700
* BinarySecurityToken.cs: Oops unit tests were failing on this one. Also implemented RawData (it's actually used - see updated unit tests).
* DecryptionKeyProvider.cs: Basic implementation based on code I (wrongly) put in EncryptedKey.
* EncrypedKey.cs: Now calls DecryptionKeyProvider.
* SignatureOptions.cs: Updated for WSE2 compatibility (removed IncludePath*).
svn path=/trunk/mcs/; revision=19699
* VBCodeGenerator.cs: some corrections regarding missing spaces in
generated code (e. g. "Property "). QuoteSnippetString implemented.
Patch by Jochen Wezel ([email protected]).
svn path=/trunk/mcs/; revision=19697
* mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
* mini.c (setup_jit_tls_data): Call the new function.
* mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
* mini-x86.c: Add experimental support for fast access to the lmf
structure under NPTL/Linux 2.6.x.
svn path=/trunk/mono/; revision=19693
updating.
* SessionSqlServerHandler.cs:
* SessionInProcHandler.cs: Accept SessionStateModule when
updating. Use new SessionId.Create method for creating session
ids.
* SessionStateModule.cs: Add a random number generator that will
be used for creating session ids. Pass this to handlers when
updating.
* SessionId.cs: New class for creating session ids.
svn path=/trunk/mcs/; revision=19689
* reflection.c
(reflection_methodbuilder_from_method_builder):
(reflection_methodbuilder_from_ctor_builder): New helper functions to
initialize a ReflectionMethodBuilder structure.
(mono_image_get_methodbuilder_token):
(mono_image_get_ctorbuilder_token): New functions to emit memberref
tokens which point to types in another module inside the same assembly.
* reflection.c: Use the new helper functions.
svn path=/trunk/mono/; revision=19686
* ldscript: Make `GC_push_all_stack', `GC_start_blocking',
`GC_end_blocking' and 'gc_thread_vtable' public; they're used by
the debugger.
svn path=/trunk/mono/; revision=19683
* icall.c loader.c reflection.c: Use ModuleBuilder->dynamic_image
instead of AssemblyBuilder->dynamic_assembly in the appropriate places.
* reflection.c (resolution_scope_from_image): Emit a moduleref if
neccesary.
* reflection.c (mono_image_build_metadata): Emit metadata only for the
current module. Emit the manifest only for the main module.
* reflection.c (mono_image_create_token): Add assertion when a
memberref needs to be created.
* reflection.c reflection.h (MonoDynamicAssembly): Remove unused fields.
* reflection.c (mono_reflection_get_custom_attrs_blob): Allocate a
larger buffer for the custom attribute blob. Fixes#50637.
svn path=/trunk/mono/; revision=19675
* Mono.Security.Protocol.Tls/CipherSuite.cs:
- Added custom padding for record encryption.
2003-11-03 Carlos Guzm�n �lvarez <[email protected]>
* Mono.Security.Protocol.Tls.Handshake/TlsHandshakeMessages.cs:
- Removed file.
* Mono.Security.Protocol.Tls/TlsSslHandshakeHash.cs:
- New class for handshake hashes calculation on SSL3 protocol.
* Mono.Security.Protocol.Tls/TlsSessionContext.cs:
- Fixed mac keys clearing for SSL3 protocol.
* Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientFinished.cs:
- Added changes for make use of new TlsSslHandshakeHash class.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs:
- Added initial implementation for SSL3 protocol.
* Mono.Security.Cryptography/MD5SHA1CryptoServiceProvider.cs:
- New class for md5-sha hash calculation.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientFinished.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsHandshakeMessage.cs:
- Make use of new MD5SHA1CryptoServiceProvider class.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs:
- Added initial implementation (not finished).
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Minor change to message processing.
- Changed verify method name to verifySignature.
* Mono.Security.Protocol.Tls/TlsSessionContext.cs:
- Changed handshakeHashes member to be an TlsStream.
2003-10-28 Carlos Guzm�n �lvarez <[email protected]>
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsSessionSettings.cs:
* Mono.Security.Protocol.Tls/TlsServerSettings.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientKeyExchange.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for make use of X509 classes from mono.
svn path=/trunk/mcs/; revision=19673
* convert.cs (ImplicitReferenceConversion): Somehow we allowed
every value type to go through, even if it was void. Fix that.
svn path=/trunk/mcs/; revision=19667
* ICollection.cs, IList.cs, IEnumerator.cs, IEnumerable.cs:
Started to implement the System.Collections.Generic classes.
svn path=/trunk/mcs/; revision=19666
* cs-tokenizer.cs: Use is_identifier_start_character on the start
character of the define, and the is_identifier_part_character for
the rest of the string.
svn path=/trunk/mcs/; revision=19665
* expression.cs (UnaryMutator.EmitCode): When I updated
LocalVariableReference.DoResolve, I overdid it, and dropped an
optimization done on local variable references.
svn path=/trunk/mcs/; revision=19661
to keep track if we are inside nested blocks. At
'func_decl_or_expr', now I built the FunctionDeclaration or
FunctionExpression first and then assign its body to it - this let
me get a non-null value of the FunctionExpression or
FunctionDeclaration so I can detect if it's a nested block (thanks go to Jackson!).
svn path=/trunk/mcs/; revision=19643
on all Relations.
(GetChildRows) : Adding some checks.
(GetParentRows) : Adding some checks. Fix a bug in implementation.
(SetParentRow) : Added implementation.
* DataRowCollection.cs (Add) : Added more checks on the row added to the collection.
* DataTable.cs (Copy) : Set the During Loading flag to save unnecessary assertions.
* ForeignKeyConstraint.cs (AssertConstraint) : Fixing bugs in implementation. Checking for DBNull values in the row.
* MergeManager.cs : Check that the target table is not null.
svn path=/trunk/mcs/; revision=19640
* HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just return false
(which makes sense, as the custom errors *arent* enabled; ie they dont work.
* HttpResponseStream.cs: you actually can write with len = 0
* AssemblyResourceLoader.cs: New file. New v2 handler.
* Control.cs (GetWebResourceUrl): new v2 function
* Page.cs (GetWebResourceUrl): ditto.
make the JS we generate work with moz if the form is not a child
of document.
* WebResourceAttribute.cs: Added, new v2 attribute.
svn path=/trunk/mcs/; revision=19631
* Iterator.cs : Added bool ReverseAxis property to identify whether
the iterator is in reverse order or not. Added ComparablePosition
for correct position comparison for PredicateIterator and reverse-
order-axes. Modified AncestorIterator, AncestorOrSelfIterator,
PrecedingIterator and PrecedingSiblingIterator to make MoveNext()
return their nodes in document order. This fixes bugzilla #39079.
svn path=/trunk/mcs/; revision=19621
type, when instantiating alternating items use the itemTemplate if
the alternatingItem template is null. This matches MS behavoir and
fixes bug #50157.
svn path=/trunk/mcs/; revision=19610
paging is disabled. Patch by Yaron Shkop.
* PagedDataSource.cs (CopyTo): Improve. Patch by Yaron Shkop.
* TableStyle.cs (AddAttributesToRender): Render border style
collapse. Patch by Yaron Shkop.
* TableStyle.cs:
* TableItemStyle.cs:
* DataGridPagerStyle.cs: Call base copy and merge even if style is of
the wrong type. Patch by Yaron Shkop.
svn path=/trunk/mcs/; revision=19605
Reformated the code to follow GTK+ style C; renamed
types to reflect the names used in the Flat API reference. Added
implementions for Ellipses, Lines, Polygons and what not.
2003-11-01 Duncan Mak <[email protected]>
* matrix.c
(GdipCreateMatrix, GdipCreateMatrix2, GdipCloneMatrix):
(GdipDeleteMatrix, GdipInvertMatrix): Implemented; the rest of the
functions are stubbed out.
* gdip_defs.h (GpMatrixOrder): Added.
* gdip_main.h
(GpRect, GpRectF): Synonyms for Rect and RectF.
(GpMatrix): An alias of cairo_matrix_t.
* Makefile: Added matrix.c.
2003-10-28 Duncan Mak <[email protected]>
* Graphics.cs (DrawEllipse, DrawLine, DrawPolygon):
(FillEllipse, FillPolygon): implemented.
(RenderingOrigin): implemented.
* gdipFunctions.cs: Added new GDI+ equivalents.
2003-10-28 Duncan Mak <[email protected]>
* gdip_main.h, gdip_def.h:
Renamed all gdip_foo_ptr types are now GpFoo *.
Renamed Status to GpStatus.
Reformatted all C++ style comments to C style comments.
Reformatted all C function prototypes to the style used by GTK+.
* gdip_main.h (GpPoint, GpPointF): Added.
* gdip_defs.h (GpFillMode): Added.
* graphics.c (make_ellipse):
(make_polygon, make_polygon_from_integers):
(make_pie): private functions (make_foo) to be reused by DrawFoo
and FillFoo.
(convert_fill_mode): Converts a GpFillMode to a cairo_fill_rule_t.
(GdipDrawPie, GdipFillEllipse, GdipFillPolygon): Implemented.
2003-10-26 Duncan Mak <[email protected]>
* graphics.c
(GdipSetRenderingOrigin, GdipGetRenderingOrigin): Implemented.
2003-10-25 Duncan Mak <[email protected]>
* graphics.c
(GdipDrawBezier, GdipDrawBezierI):
(GdipDrawBeziers, GdipDrawBeziersI):
(GdipDrawLine, GdipDrawLineI):
(GdipDrawLines, GdipDrawLinesI): implemented.
(GdipFillRectangle):
(GdipDrawString): Make use of gdip_get_status.
* general.c
(gdip_get_status): A new function for retrieving a Status from a
cairo_t.
svn path=/trunk/mcs/; revision=19604
* ISessionHandler.cs: Add method to update the session state
data in the handler. Pass the session config to handlers when
initializing.
* SessionConfig.cs: Add StateNetworkTimeout
* SessionInProcHandler.cs: Updates because interface has
changed, all functionality is the same.
* SessionStateModule.cs: Get new config items, allow SQLServer
session manager type. Update session handlers when the session
state has been released.
* SessionStateSectionHandler.cs: Add StateNetworkTimeout
* SessionSQLServerHandler.cs: New class allows sessions to be
stored in a database.
svn path=/trunk/mcs/; revision=19596
* TypeBuilder.cs (DefineDefaultConstructor): Pass an array instead of
null to DefineConstructor, to avoid NullReferenceExceptions in the
binder code.
svn path=/trunk/mcs/; revision=19594
* reflection.h (MonoDynamicImage): New type which is currently unused,
but will be used through the ref.emit code in place of
MonoDynamicAssembly.
* reflection.h (MonoReflectionAssemblyBuilder): Track changes to the
object layout.
* reflection.c (create_dynamic_mono_image): Rewrote so it now creates
a MonoDynamicImage instead of just a MonoImage.
* reflection.h reflection.c icall.c: Move nearly all AssemblyBuilder
icalls to ModuleBuilder but keep their semantics, so they will work
with moduleb->assemblyb. This will change later.
svn path=/trunk/mono/; revision=19593
* AssemblyBuilder.cs ModuleBuilder.cs ILGenerator.cs: Move getUSIndex
and getToken methods, and the associated icalls to ModuleBuilder,
since tokens are per-module.
* AssemblyBuilder.cs ModuleBuilder.cs: Partially revert the previous
patch, since having the 'is_main' field is useful in the unmanaged
code.
* AssemblyBuilder.cs ModuleBuilder.cs: Move the metadata creation and
file creation logic to ModuleBuilder:Save (), since this needs to be
done for every module. Also move the corresponding icalls to
ModuleBuilder.
svn path=/trunk/mcs/; revision=19592
* reflection.c (mono_reflection_inflate_method_or_ctor): Set
`ginst->klass' here.
(method_encode_methodspec): Don't use the `ginst->generic_method's
klass if it's a generic instance, use `ginst->klass' in this case.
svn path=/trunk/mono/; revision=19589
and add it again with the correct name). Not based on the Visitor
pattern anymore. Deleted all the VisitFOO methods. Added a
IdentificationTable field. Added Run, Dump methods.
svn path=/trunk/mcs/; revision=19584
* Microsoft.JScript.dll.sources: Added IdentificationTable.cs,
SemanticAnalizer.cs and SymbolTable.cs to the build.
svn path=/trunk/mcs/; revision=19579
* reflection.h (MonoReflectionAssemblyBuilder): Track changes to the
object layout.
* reflection.c (mono_image_build_metadata): Avoid creation of a default
main module, since it is now done by the managed code.
svn path=/trunk/mono/; revision=19575
* AssemblyBuilder.cs ModuleBuilder.cs: First steps toward a fix for
#48700 (proper module support in Ref.Emit). Remove is_main field from
ModuleBuilder and add a mainModule field to AssemblyBuilder instead.
This is neccesary, since the main module is determined during the
Save () call: the module with the same file name as the assembly is
the main module. Also create a default main module, if one is not
existing.
svn path=/trunk/mcs/; revision=19574
* reflection.c (mono_image_get_generic_method_param_info):
Removed, use mono_image_get_generic_param_info() instead.
(mono_image_get_type_info): Write the GenericParam table before
the Method table. This is neccessary because in the GenericParam
table, type parameters of the class (ie. '!0' etc.) must come
before the ones from its generic methods (ie. '!!0' etc).
svn path=/trunk/mono/; revision=19573
can be converted to the column type.
* DataRelationCollection.cs (AddCore) : Give the new FK the name of the relation.
* DataRow.cs (EndEdit) : Check if we need to validate the constraints.
(GetParentRows, GetChildRows) : Checking that the row has the wanted version, before accessing the row's value.
* DataRowCollection.cs (Add) : Fixing a bug.
(Clear) : Before clearing the array check that there is no violation of FK constraint.
* DataSet.cs (Prefix) : If value is null chage it to empty string.
(GetXml) : Removing the Processing Instructions from the xml string as in MS ADO.NET.
* ExpressionElement : Adding support for IN expresion.
* DataTable (CopyConstraints) : New method that copy the tables constraints to the copy table.
(Select) : Adding support for DataViewwRowState.
* ForeignKeyConstraint.cs (AssertConstraint) : Adding implementation.
* MergeManager.cs (MergeRow) : Fix bugs.
svn path=/trunk/mcs/; revision=19572
* expression.cs (ArrayAccess.GetStoreOpcode): Added
`out bool has_type_arg'; if set, we need to pass the type to
ig.Emit().
(ArrayAccess.GetStoreOpcode, ArrayAccess.EmitLoadOpcode): Use
Stelem_Any/Ldelem_Any for generic parameters.
svn path=/trunk/mcs/; revision=19570
* Compiler.cs : More complete attribute set gathering.
GetNamespacesToCopy() should only return Local namespaces.
* GenericOutputter.cs : Added support for indentation.
Added easy hack for html output.
More correct Prefix handling (considers already defined ones).
Namespace emmission is moved to CheckState().
* Emitter.cs, XmlWriterEmitter.cs, GenericOutputter.cs, Outputter.cs :
Added WriteFullEndElement(). (i.e. IsEmptyElement support)
* GenericOutputter.cs, Outputter.cs :
Added CanProcessAttributes property for
use-attribute-sets of xsl:copy.
* XslStylesheet.cs : Added support for stylesheet-defined xmlns decls.
Added support for exclude-result-prefixes.
* XslTransformProcessor.cs : Added support for stylesheet-defined xmlns.
svn path=/trunk/mcs/; revision=19553
* XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
to skip XmlEntityReference.
* XmlTextWriter.cs : Fixed AddMissingElements() and
WriteStartAttribute() not to emit extraneous xmlns.
svn path=/trunk/mcs/; revision=19552
* reflection.c (create_generic_typespec): Take a
`MonoReflectionTypeBuilder *' instead of a `MonoType *' and get
the generic parameters from it.
svn path=/trunk/mono/; revision=19550
* mini.c (inflate_generic_field): New static method.
(mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
generic instance and the field is declared in a generic type, call
inflate_generic_field() to inflate it. Fixes gen-28.cs.
svn path=/trunk/mono/; revision=19549
* reflection.c (fieldref_encode_signature): Take a `MonoType *'
instead of a `MonoClassField *' since we just need the type.
(create_generic_typespec): New static function. Creates a
TypeSpec token for a generic type declaration.
(mono_image_get_generic_field_token): New static function.
(mono_image_create_token): If we're a FieldBuilder in a generic
type declaration, call mono_image_get_generic_field_token() to get
the token.
svn path=/trunk/mono/; revision=19547
* XmlTextWriter.cs : Skip multiple xmlns when element and any of
attributes have the same xmlns values.
WriteEndElement() allows open attribute (calles WriteEndAttribute()).
Indentation should be inserted between ">" and "</xxx>" .
svn path=/trunk/mcs/; revision=19546
* MonoGenericInst.cs (MonoGenericInst.initialize): Include members
from our parent classes in the `methods', `ctors' and `fields'
arrays. When inflating them, reflection now sets their
`declaring_type' and `reflected_type' fields.
(MonoInflatedMethod, MonoInflatedCtor): Added
`MonoGenericInst declaring_type' and `MonoGenericInst reflected_type'
fields and override the `DeclaringType' and `ReflectedType' properties.
svn path=/trunk/mcs/; revision=19544
* reflection.h
(MonoReflectionInflatedMethod, MonoReflectionInflatedField): Added
`MonoReflectionGenericInst *declaring_type' and
`MonoReflectionGenericInst *reflected_type' fields.
* reflection.c (mono_reflection_inflate_method_or_ctor): Take a
`MonoReflectionGenericInst *declaring_type' and a
`MonoReflectionGenericInst *reflected_type' argument instead of a
single `MonoReflectionGenericInst *type' one. Set
`res->declaring_type' and `res->reflected_type' from them.
(mono_reflection_inflate_field): Likewise.
svn path=/trunk/mono/; revision=19543
* expression.cs (Invocation.EmitCall): Use
`TypeManager.IsValueType()' to check whether it's a value type.
Don't set `struct_call' when calling a method on a type parameter.
svn path=/trunk/mcs/; revision=19541
* XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
numbers are parsed with the respective ::Parse method.
svn path=/trunk/mcs/; revision=19534
* XmlConvert.cs: Revert my last change. INF and -INF must be
processed here because Double::Parse and Single::Parse doesn't
understand anything of parsing [-]INF.
svn path=/trunk/mcs/; revision=19533
* DateTimeTest.cs: Changed the Asserts to fix some things related to
universal time, we can't test the equality if one DateTime is into
the code and the other comes from the TimeZone. Different TimeZones,
different errors in the test.
svn path=/trunk/mcs/; revision=19530
* CrossAppDomainChannel.cs (SyncProcessMessage): Use the new
InvokeInDomain function instead of calling SetDomain.
svn path=/trunk/mcs/; revision=19525
* assembly.c (mono_assembly_open): Avoid crash if a module is loaded
with an empty ASSEMBLY table.
* reflection.c (mono_image_build_metadata): Avoid using the same loop
variable in the inner and outer loops.
svn path=/trunk/mono/; revision=19522
* DateTime.cs: Fixed Add* methods handling. Now it works properly
with extreme values (there is a bug with Overflow and Underflow in
long type).
svn path=/trunk/mcs/; revision=19515
* OASISTest.cs: New. Unit test for WSE2 OASIS descriptions.
* SaMLTest.cs: New. Unit test for WSE2 SaML descriptions.
* SMSecurityTest.cs: New. Unit test for WSE2 SMSecurity descriptions.
* XmltokTest.cs: New. Unit test for WSE2 Xmltok descriptions.
* XrMLTest.cs: New. Unit test for WSE2 XrML descriptions.
svn path=/trunk/mcs/; revision=19513
* IReplayCache.cs: New. Interface for ReplayCache.
* OASIS.cs: New. Implementation for OASIS WS-Security (prefix "wsse").
* ReplayCacheManager.cs: New. Stub, with MonoTODO, for WSE2.
* SaML.cs: New. SAML description (prefix/ns) for WS-Security.
* SecurityTokenCache.cs: New. Stub, with MonoTODO, for WSE2.
* SecurityTokenReferenceType.cs: New. Stub, with MonoTODO, for WSE2.
* SMSecurity.cs: New. Implementation for WS-Security ("wsse" and
"http://schemas.xmlsoap.org/ws/2002/12/secext").
* SMSecurityBase.cs: New. Abstract class to retrieve Prefix and Namespace.
* SynchronizedSecurityTokenCache.cs: New. Stub, with MonoTODO, for WSE2.
* WSEReplayCache.cs: New. Stub, with MonoTODO, for WSE2.
* Xmltok.cs: New. WS-Security Profile for XML-based Tokens (descriptions).
* XrML.cs: New. eXtensible rights Markup Language descriptions for WS-Security.
svn path=/trunk/mcs/; revision=19512
* DateTimeTest.cs: Removed Universal Time in ToString because in
each computer that could be different. We need more control over
that to know what the result should be.
svn path=/trunk/mcs/; revision=19511
* mini.h mini.c (mono_method_same_domain): New function to return
whenever the caller and the callee are in the same domain.
* tramp-x86.c (x86_magic_trampoline): Use the new function.
svn path=/trunk/mono/; revision=19507
* AppDomain.cs (InternalPushDomainRef): New icalls.
* AppDomain.cs (InvokeInDomain): New method to execute code in a
different appdomain.
svn path=/trunk/mcs/; revision=19506
* appdomain.c appdomain.h icall.c: Get rid of the InvokeInDomain
icalls. Instead, do everything in managed code. This is needed since
it is hard to restore the original domain etc. in unmanaged code in the
presence of undeniable exceptions.
* appdomain.c (ves_icall_System_AppDomain_InternalPushDomainRef):
New icalls to push and pop appdomain refs.
svn path=/trunk/mono/; revision=19505
* appdomain-unload.cs: New file. AppDomain Unloading tests.
* Makefile: Add new test + enable IL tests now that we have a working
ilasm.
svn path=/trunk/mono/; revision=19503
* interp.c (mono_create_method_pointer): New function which contains
the arch independent part of the method wrapper creation. Add a cache
for the wrapper code, since Delegate::Equals depends on the wrapper
address being constant for a method. Fixes#50366.
svn path=/trunk/mono/; revision=19501
* */tramp.c (mono_create_method_pointer): Rename to
mono_arch_create_method_pointer, move common code to a new function in
interp.c.
* */tramp.c (mono_create_trampoline): Rename to
mono_arch_create_trampoline for consistency.
svn path=/trunk/mono/; revision=19500
* class.c (inflate_generic_type): Renamed to
mono_class_inflate_generic_type() and made it public.
* icall.c ("System.Reflection.MonoGenericInst::inflate_field"):
New interncall.
* loader.c (mono_field_from_memberref): Also set the retklass for
typespecs.
* fielder.c (mono_image_get_inflated_field_token): New static
method; creates a metadata token for an inflated field.
(mono_image_create_token, fixup_method): Added support for
"MonoInflatedField".
(fieldbuilder_to_mono_class_field): New static function.
(mono_reflection_inflate_field): New public function.
* reflection.h
(MonoReflectionGenericInst): Added `MonoArray *fields'.
(MonoReflectionInflatedField): New typedef.
svn path=/trunk/mono/; revision=19497
* MonoGenericInst.cs (MonoInflatedField): New internal class.
(MonoGenericInst.GetFields): Override this method and inflate
the fields.
* MonoField.cs: Don't make this class sealed.
svn path=/trunk/mcs/; revision=19496
* Compiler.cs : It is not important, but attribute order became closer
to MS.NET and Xalan (assuming from OASIS tests).
svn path=/trunk/mcs/; revision=19485
* GenericOutputter.cs : Attribute wasn't overwritten its properties
because Attribute is struct it was let to another local variable.
svn path=/trunk/mcs/; revision=19484
* mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
method parameters.
(mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
svn path=/trunk/mono/; revision=19482
* class.c (inflate_generic_type): Take just one `MonoGenericInst *'
argument instead of two.
(mono_class_inflate_generic_signature): Likewise.
(inflate_generic_header): Likewise.
(mono_class_inflate_generic_method): Likewise. In addition, if
`ginst->klass' is set, it becomes the new `method->klass'.
* class.h (MonoGenericInst): Removed the `gpointer mbuilder'
field.
* reflection.c (encode_generic_method_sig): Write a 0xa as the
first byte. [FIXME]
(method_encode_methodspec): If we have generic parameters, create
a MethodSpec instead of a MethodRef.
(fixup_method): Added support for "MonoInflatedMethod" and
"MonoInflatedCtor".
(mono_image_create_token): Added support for "MonoInflatedMethod"
and "MonoInflatedCtor".
(inflated_method_get_object): New static function; returns a
managed "System.Reflection.MonoInflatedMethod" object.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionInflatedMethod' instead of a `MonoReflectionMethod'.
(mono_reflection_inflate_method_or_ctor): Likewise.
(mono_image_get_generic_method_param_info): Initialize unused
fields to zero.
(mono_image_get_generic_param_info): Likewise.
* reflection.h (MonoReflectionInflatedMethod): New public
typedef. Corresponds to the managed "S.R.MonoInflatedMethod" and
"S.R.MonoInflatedCtor" classes.
* loader.c (method_from_memberref): If we're a TypeSpec and it
resolves to a generic instance, inflate the method.
svn path=/trunk/mono/; revision=19481
is no post data. This fixes bug #49091.
* CheckBoxList.cs: Do not change the status of the checkboxes when
there is no post data. This fixes bug #49093.
svn path=/trunk/mcs/; revision=19465
* io.c (MoveFile): If the move crosses filesystems, try and fall
back to copy and delete. Patch from J�rg Rosenkranz
([email protected]), fixes bug 50298.
svn path=/trunk/mono/; revision=19460
* mini.c mini-ops.h inssel.brg: Implement undeniable exception
propagation.
* mini.c (sigusr1_signal_handler): Move creation of the thread abort
object here, so it is in the correct appdomain etc.
svn path=/trunk/mono/; revision=19459
* object.h (MonoThread): New field 'appdomain_refs' which holds a list
of appdomains referenced by this thread.
* threads.c
(mono_thread_push_appdomain_ref):
(mono_thread_pop_appdomain_ref): New functions to register/unregister
appdomain references.
(mono_threads_abort_appdomain_threads): New function to abort all
threads which reference a given appdomain.
(mono_thread_get_pending_exception): New function to return an
exception which needs to be re-raised at the end of catch clauses.
* threads.c: Register/unregister appdomain reference on thread
creation/destruction.
* appdomain.c (ves_icall_System_AppDomain_InternalInvokeInDomain):
Register/unregister appdomain reference.
* appdomain.c (mono_domain_unload): Add support for aborting threads.
Raise an exception in case of a timeout.
svn path=/trunk/mono/; revision=19458
correctly. DateTime.Milliseconds is the just the milliseconds part
of the time, it is not the entire time as milliseconds.
svn path=/trunk/mcs/; revision=19445
* jscript-lexer-parser.g: allow empty program files. Added type
annotations on var decl and function decl.
* VariableDeclaration.cs: added return type annotation field.
* FunctionExpression.cs: added return type parameter to constructor.
* FunctionDeclaration.cs: added return type parameter to
constructor. Added Emit method (just creates the static field at
the global object, for now).
* FunctionObject.cs: added return type to constructor. Changed
names to readable ones ;-)
svn path=/trunk/mcs/; revision=19444
* StreamReader.cs: Add checks for disposed stream from bug report
#48696 (Patrik Reali)
* TextReader.cs (Read): Return the total number of bytes read,
patch from Patrik Realli.
svn path=/trunk/mcs/; revision=19435
* strenc.h:
* strenc.c: New files, convert text to and from unicode or utf8,
and the user's chosen encoding.
2003-10-28 Dick Porter <[email protected]>
* io.c: Use the new encoding conversion to cope with non-utf8
locales in filenames.
* processes.c: Ditto for process arguments.
2003-10-28 Dick Porter <[email protected]>
* object.c (mono_runtime_run_main): Convert command-line arguments
into utf8, falling back to the user's locale encoding to do so.
svn path=/trunk/mono/; revision=19432
* mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
trampolines for icalls and pinvokes as well. Fixes#33569.
svn path=/trunk/mono/; revision=19427
* loader.c (mono_get_method_from_token): Avoid looking up the icalls
at this time.
* marshal.c (mono_marshal_get_native_wrapper): Lookup icalls here.
svn path=/trunk/mono/; revision=19426
* mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
already done.
(mono_method_to_ir): Avoid freeing the type created returned from
mono_type_create_from_typespec, since it is put into an internal cache
by the function. Fixes pointer.exe.
svn path=/trunk/mono/; revision=19423
* DataRow.cs (SetColumnValue): Donot check null value when in midle of loading data.
check null values when ending loading data.
* DataSet.cs (RejectChanges) : Imlementation.
(Prefix) : If prefix was changed fire event. Check that the prefix is not null - if null,
change it to empty string.
* DataTable.cs (BeginLoadData, EndLoadData) : Impemantation.
svn path=/trunk/mcs/; revision=19421
* AsymmetricDecryptionKey.cs: Added internal property to the
asymmetric keypair.
* EncryptedData.cs: Added minimal support for decryption.
* EncryptedKey.cs: Added minimal support for decryption.
* KeyIdentifier.cs: Added internal properties to get access to
X509Certificate, DecryptionKey and EncryptionKey from the key identifier.
* Security.cs: Implemented support for EncryptedData in LoadXml and
implemented part of GetXml.
* SecurityInputFilter.cs: Now process incoming security headers (but
not ExtendedSecurity).
* SecurityOutputFilter.cs: Now uses Security class to Load/Get the
security headers (code moved into Security.cs).
svn path=/trunk/mcs/; revision=19416
* HttpRequest.cs: use the below file when it is proper.
* HttpMultipartContentParser.cs: new file for parsing
multipart/form-data
svn path=/trunk/mcs/; revision=19409
* WebServicesConfiguration.cs: Allowing the MessagingConfiguration to
stay the same one (prevents double socket binding attempts)
svn path=/trunk/mcs/; revision=19406
* XsdValidatingReader.cs : xsi:type should be normalized. More cleanup.
* XsdParticleValidationState.cs : Reverted default content processing
to lax. It is msxsdtest/wildCard/wildG038.xsd which looks incorrect.
svn path=/trunk/mcs/; revision=19405
* Microsoft.Web.Services.dll.2.sources: Added IMutableSecurityToken.cs
in Microsoft.Web.Services.Security (new in WSE2)
svn path=/trunk/mcs/; revision=19402
* EncryptedData.cs: Can now encrypt SOAP body message (no decrypt yet).
* EncryptedKey.cs: Updated symmetric key creation.
* IMutableSecurityToken.cs: New. Interface in WSE2 to clone SecurityTokens.
* ReferenceList.cs: Completed implementation.
* Security.cs: Fixed Elements and Tokens collections that weren't always created.
* SecurityOutputFilter: Added support for EncryptedData.
* SecurityToken.cs: Private member IPrincipal is now only defined for WSE2 (removed warning).
* UsernameToken.cs: Updated for WSE2.
* X509SecurityToken.cs: Added SecurityTokenReference/KeyIdentifier in KeyInfo.
svn path=/trunk/mcs/; revision=19400
* XmlConvert.cs: Support for the sign in double and single. The
processing of the infinites and nan numbers are more complex than
comparing to "INF" so we must let Double::Parse and Single::Parse
doing their job.
svn path=/trunk/mcs/; revision=19393
* appdomain.c (ves_icall_System_AppDomain_InternalIsFinalizingForUnload): New icall.
* appdomain.c (unload_thread_main): Clear class->cached_vtable if it
points to a vtable in the dying appdomain.
* appdomain.c (mono_domain_unload): Move the notification of OnUnload
listeners into unmanaged code inside the lock.
svn path=/trunk/mono/; revision=19388
* BuiltInDatatype.cs : XsdByte was incorrectly typed as byte, while
the correct binding is sbyte.
* XmlSchemaAll.cs,
XmlSchemaChoice.cs,
XmlSchemaSequence.cs,
XmlSchemaGroupBase.cs : ActualParticle now considers pointlessness
described in WXS structures 3.9.6.
Added ValidateRecurse() to support 'Recurse' validation.
* XmlSchemaComplexType.cs : Removed incorrect content type conformity
check.
* XmlSchemaElement.cs : Implemented 'RecurseAsIfGroup' validation
described in WXS structures 3.9.6. Fixed type derivation check to
do only if the base type is not anyType.
* XmlSchemaSimpleTypeRestriction.cs : Should catch Regex()
construction exception. ValidateList... and ValidateNonList... was
in reverse.
* XmlSchemaUtil.cs : Removed extra MonoTODO. Removed CheckToken().
svn path=/trunk/mcs/; revision=19385
* DTDValidatingReader.cs : Now it handles whitespace entity as
significant.
* XmlConvert.cs : As to NIST testcases, exponential support on single
and double floating point numbers.
* XmlValidatingReader.cs : If it IsDefault, then line number and line
position returns 0.
svn path=/trunk/mcs/; revision=19384
* XsdValidatingReader.cs : Removed MonoTODO which was implemented in
XmlValidatingreader as a result. Added xsi:nil normalization.
svn path=/trunk/mcs/; revision=19383
* decl.cs (DeclSpace.ResolveType): If we're a ConstructedType,
call ConstructedType.Resolve() on it.
* generic.cs (ConstructedType.Resolve): Set `type' on success.
svn path=/trunk/mcs/; revision=19382
* class.cs (TypeContainer.GetClassBases): Changed
`out Type parent' into `out TypeExpr parent'. Moved CS0644 and
CS8214 reporting here.
(TypeContainer.DefineType): GetClassBases() gives us a `TypeExpr'
instead of a `Type' for our parent. In case of a recursive
declaration (see tests/gen-23.cs for an example), our parent is a
ConstructedType and it doesn't have its type set. So, first
create our own TypeBuilder, then call constructed.Resolve() to get
the parent's type and finally TypeBuilder.SetParent() it.
* ecore.cs (TypeExpr.Name): New public virtual property.
* generic.cs
(ConstructedType): We're now a TypeExpr and not just an Expression.
(ConstructedType.ResolveAsTypeStep): Don't resolve our type
arguments here; this is done later.
(ConstructedType.Resolve): New public method to resolve the type
arguments and bind them.
svn path=/trunk/mcs/; revision=19379
* class.h (MonoGenericInst): Added `MonoClass *klass' field.
* image.h (MonoImage): Added `GHashTable *typespec_cache'.
* metadata.c (mono_metadata_parse_generic_inst): Renamed to
`do_mono_metadata_parse_generic_inst'; pass it the MonoType we're
currently parsing. Create the generic class and store it in
`generic_inst->klass' before parsing the type arguments. This is
required to support "recursive" definitions; see mcs/tests/gen-23.cs
for an example.
(mono_type_create_from_typespec): Use a new `image->typespec_cache'
to support recursive typespec entries.
* class.c (mono_class_setup_parent): If our parent is a generic
instance, we may get called before it has its name set.
(mono_class_from_generic): Splitted into
mono_class_create_from_generic() and mono_class_initialize_generic().
svn path=/trunk/mono/; revision=19378
* icall.c (ves_icall_Type_BindGenericParameters): Return a
`MonoReflectionGenericInst *' instead of a `MonoReflectionType *'.
("System.Reflection.MonoGenericInst::inflate_method"): New interncall.
("System.Reflection.MonoGenericInst::inflate_ctor"): New interncall.
* reflection.c (my_mono_class_from_mono_type): Added MONO_TYPE_GENERICINST.
(create_typespec): Likewise.
(mono_reflection_bind_generic_parameters): Return a
`MonoReflectionGenericInst *' instead of a `MonoClass *'.
(mono_reflection_inflate_method_or_ctor): New public function.
* reflection.h (MonoReflectionGenericInst): New typedef.
svn path=/trunk/mono/; revision=19376
* BuiltInDatatype.cs : Fixed incorrect inheritance of date and time.
Fixed most of date-time related types' ParseValue().
Applied Normalize() before parsing values in some ParseValue().
svn path=/trunk/mcs/; revision=19374
* AsymmetricDecryptionKey.cs: Change to license and line-ends.
* PasswordOption.cs: Inversed SendNone and SendHashed because they had
the wrong values (corcompare)
* Signature.cs: Stub completed.
* SignedXml.cs: Added interface IXmlElement and missing virtual to
CheckSignature (corcompare)
* XmlSignature.cs: Removed license from header.
svn path=/trunk/mcs/; revision=19368
* ast.cs: Added 'virtual' Emit method (I might change it to be
abstract, but I would have to added to all classes that derive
from it. I'll do it later)
* Block.cs: Added Emit method.
* CodeGnerator.cs: Restructured it (not based on the Visitor pattern
anymore) - still missing some methods, ut on the way. A nice
hacking weekend coming. Added EmitContext class.
* ScriptBlock.cs: Added Emit method.
* VariableDeclaration.cs: Changed type field from string to
Type. Added Emit method.
* VariableStatement.cs: Added Emit method.
* driver.cs: Added CodeGeneration phase (only simple var
declarations support it. More coming soon).
svn path=/trunk/mcs/; revision=19367
* SystemBrushes.cs: Some more brushe3s.
* SystemPens.cs: More pens.
* Pen.cs: Implement IDisposable, ICloneable.
* Region.cs: Add some more stubs here.
* StringFormat.cs: Add some more code here.
2003-10-24 Miguel de Icaza <[email protected]>
* GraphicsPath.cs: Stub some more.
svn path=/trunk/mcs/; revision=19365
* Better performance implementation of the method which converts a byte[] to a bytea string. Thanks Jackson Harper (jackson at ximian dot com)
svn path=/trunk/mcs/; revision=19362
* mini.c: Update after appdomain changes.
* mini.c (mono_jit_compile_method_inner): Allways compile native
method wrappers in the root domain, since there can only be one
instance of them, whose address is stored in method->info.
svn path=/trunk/mono/; revision=19360
* object.c (mono_class_proxy_vtable): Run the whole vtable construction
inside the domain lock. Fixes#49993.
* object.c (mono_class_vtable): When typed allocation is used,
allocate vtables in the GC heap instead of in the mempool, since the
vtables contain GC descriptors which are used by the collector even
after the domain owning the mempool is unloaded.
* domain.c (mono_domain_set): Rename to mono_domain_set_internal.
* domain.c (mono_domain_unload): Rename to mono_domain_free to better
reflect what it does. Also invalidate mempools instead of freeing
them if a define is set.
* appdomain.h (MonoAppDomainState): New enumeration to hold the state
of the appdomain.
* appdomain.h (_MonoDomain): New field 'finalizable_object_hash' to
hold the finalizable objects in this domain.
* appdomain.h (_MonoDomain): New field 'state' to hold the state of the
appdomain.
* appdomain.c (mono_domain_set): New function to set the current
appdomain, but only if it is not being unloaded.
* appdomain.c threads.c threadpool.c object.c: Avoid entering an
appdomain which is being unloaded.
* appdomain.c (ves_icall_System_AppDomain_InternalUnload): Prevent
unloading of the root appdomain.
* appdomain.c (ves_icall_System_AppDomain_InternalInvokeInDomain): New
icall to execute a method in another appdomain. Intended as a
replacement for InternalSetDomain, which can confuse the code
generation in the JIT.
* appdomain.c (mono_domain_is_unloading): New function to determine
whenever an appdomain is unloading.
* appdomain.c (mono_domain_unload): New function to correctly unload
an appdomain.
* assembly.c (mono_assembly_load_references): Check that an assembly
does not references itself.
* gc.c (mono_domain_finalize): Rewrote so instead of finalizing a
domain manually, it asks the finalizer thread to do it, then waits for
the result. Also added a timeout.
* icall.c: Register the new icalls.
* threads.h threads.c: Export the mono_gc_stop_world and
mono_gc_start_world functions.
svn path=/trunk/mono/; revision=19358
* DateTime.cs: When handling '-' as a date separator, MS.NET uses
the same symbol in the parse (not DateTimeFormatInfo.DateSeparator).
svn path=/trunk/mcs/; revision=19355
Updated System.Drawing, lots of cleanups.
Added JPEG encoder/decoder back to Bitmap.
We can load and save images again.
Still need work to support all formats, everywhere
PNG codec broken (but at least its plugged back).
2003-10-23 Miguel de Icaza <[email protected]>
* bitmap.c (GdipCreateBitmapFromScan0): Do not allocate buffer
here, expect that our caller to allocate that.
Do not compute the stride here, expect our caller to do this
properly.
* Use the Mono coding conventions.
2003-10-23 Miguel de Icaza <[email protected]>
* Image.cs: Kill the InternalImageInfo, everything is now done in
terms of Image and BitmapData.
* Rectangle.cs: Make this one also sequential, change from using
Point + Size to use x, y, width, height; So we can use GdiPlus.
* gdipFunctions.cs (GdipBitmapLockBits): Remove the ref from the
BitmapData class argument, and instead use the [In,Out]
attributes, which will do struct marshalling on the fields. Now
we can use C#'s BitmapData directly to talk to Gdiplus.
* gdipStructs.cs: Every internal structure that has to talk to
Gdi+ is properly prefixed, to minimize the confussion.
* Bitmap.cs Bitmap (int width, int height, PixelFormat format):
Compute the stride here where we have the BPP information,
allocate a buffer of the proper size, and pass this to
GdipCreateBitmapFromScan0
* Image.cs: Implement Dispose pattern.
2003-10-23 Miguel de Icaza <[email protected]>
* JPEGCodec.cs (JSAMPARRAY): Do not allocate memory here anymore,
we will just have the JPEG library copy directly into our buffer.
(Encode, Decode): Ported to the new model which avoid copies, and
eliminates InternalImageInfo.
TODO: need to port the PNG coder/decoder, and add support for RGBA
images which got dropped from this version
* BmpCodec.cs: Rework this one to use BitmapData and Image. Do
not use the RawBytes property, instead pull the data one line at a
time, and write that out.
* ImageCodecInfo.cs: Make the encoding and decoding delegates take
a Image parameter;
* BmpCodec.cs:
* BitmapData.cs: Make this one sequential, and also mimic the
layout of GdiPlus.h so we can use this instead of making copies
back and forth.
svn path=/trunk/mcs/; revision=19354
* XsdParticleValidationState.cs : Default content processing shoule be
lax.
* XsdValidatingReader.cs : If there is no trial to get schemas for
namespaces, then validation against such namespace should be failed.
It now uses XmlSchemaAttribute.ValidatedUse instead of .Use.
* XsdWildcard.cs : Fixed incorrect intersection computing.
svn path=/trunk/mcs/; revision=19348
* XmlSchemaAll.cs,
XmlSchemaChoice.cs,
XmlSchemaGroupBase.cs,
XmlSchemaSequence.cs : Now CompiledItems went to XmlSchemaGroupBase.
* XmlSchemaAny.cs,
XmlSchemaElement.cs,
XmlSchemaGroupBase.cs,
XmlSchemaGroupRef.cs,
XmlSchemaParticle.cs,
XmlSchemaSequence.cs : Added ParticleEquals() method to compare
whether the particles are equal in the context of WXS part 1 - 3.9.6.
* XmlSchemaAny.cs : Implemented ValidateDerivationByRestriction().
* XmlSchemaAnyAttribute.cs : Removed extraneous lines and added my
responsibility on this class.
Added ValidateWildcardAllowsNamespaceName().
* XmlSchemaAttribute.cs : Added ValidatedUse which holds post-
compilation value of "Use".
* XmlSchemaAttributeGroup.cs,
XmlSchemaAttributeGroupRef.cs : Removed MonoTODO (same as some other
classes) since there is no more errors on attribute stuff ;-)
* XmlSchemaComplexType.cs : complex content extension must block
derivation from any built-in primitive types.
Fixed wildcard derivation by restriction.
ValidateDerivationByRestriction() now checks attribute related
validity of DBR (derivation by restriction).
Now uses ParticleEquals() for particle DBR check.
* XmlSchemaSequence.cs : Fixed to use CompiledItems instead of Items.
svn path=/trunk/mcs/; revision=19347
* BaseCompareValidator.cs: splitted Convert. Fixed bug #49927. The fix
was just changing && by || after the first Match.
svn path=/trunk/mcs/; revision=19345
methods. They are used in CrossAppDomainChannel to save and restore
thread's local data when switching between domains.
svn path=/trunk/mcs/; revision=19336
the name table.
* main.c (visibility_map): Fix typo, should be nested family not
family
* main.c (dis_data): Use uppercase hex to avoid name conflicts.
* get.c/get.h: New method to get an escaped name. This method will
take a name and escape it if it is an ilasm keyword, or uses a non
id char. Use escaped names for type, method, field, and parameter names.
* get.c (get_typespec): A typespec can be used for anything, so we
need to handle all types not just modified types.
* get.c (dis_stringify_object_with_class): Handle nested classes
* get.c (get_token): Add field keyword to field tokens.
svn path=/trunk/mono/; revision=19333
* NonceTest.cs: New. Unit tests for Nonce. The tests will only work for
WSE2 (as WSE1 Nonce constructor are internal)
svn path=/trunk/mcs/; revision=19331
* With.cs: added constructor and ToString. Back to the non-tmp
namespace.
* jscript-parser-lexer.g: allow with_stm tree building.
svn path=/trunk/mcs/; revision=19324
* jscript-lexer-parser.g: changed the return type from if_stm from
'If' to AST. Added tree for continue_stm. Allowed building of
Break tree.
* statement.cs: switched to internal 'If' class. Added Continue
class. Added Break class.
svn path=/trunk/mcs/; revision=19322
* System.Web/HttpApplication.cs: added AssemblyLocation property.
* System.Web.UI/DesignTimeTemplateParser.cs: added FIXME related to
PageParser.
* System.Web.UI/PageParser.cs: initialize the parser in the constructor,
not just before compiling and reference the application assembly.
* System.Web.UI/SimpleWebHandlerParser.cs: reference the assembly that
contains the application Type.
* System.Web.UI/TemplateControl.cs:
* System.Web.UI/TemplateControlParser.cs: fix BenM #1 bug. Now we pass
correct virtual path and physical path when compiling a user control.
* System.Web.UI/TemplateParser.cs: new AddApplicationAssembly ().
* System.Web.UI/UserControlParser.cs: now we get valid values in the
ctor.
Referencing the application assembly fixes bug #49652.
svn path=/trunk/mcs/; revision=19299
* reflection.h (MonoReflectionMethodAux): New structure to store
information which is rarely used, thus is not in the MonoMethod
structure.
* reflection.h (MonoDynamicAssembly): New field 'method_aux_hash' to
store the aux info.
* reflection.c (mono_methodbuilder_to_mono_method): Store param names
and marshalling info into the aux structure.
* loader.c (mono_method_get_marshal_info): Retrieve the marshal info
from the aux structure.
* loader.c (mono_method_get_param_names): Retrieve the param names from
the aux structure.
svn path=/trunk/mono/; revision=19298
* DataGrid.cs: applied patch from Yaron Shkop ([email protected])
that fixes bug #49744. Now the selection doesn't lose its data.
svn path=/trunk/mcs/; revision=19297
* TemplateControlCompiler.cs: fix bug #42994. Now we don't generate
a return statement for user controls with 'void' return type.
svn path=/trunk/mcs/; revision=19282
* XsdKeyTable.cs : Reduced compilation warning.
* XsdParticleValidationState.cs : Reduced NotImplementedException.
* XsdValidatingReader.cs : Removed XmlResolver. Implemented more simple
type validation, such as list, union and facets.
svn path=/trunk/mcs/; revision=19277
* XmlSchema.cs,
XmlSchemaUtil.cs : Reduced warning message.
* XmlSchemaAttribute.cs : NotImplementedException should no more exist.
(All things are going to be implemented.)
* BuiltInDatatype.cs : XsdInteger should not allow non-integer decimal.
* XmlSchemaSimpleType.cs : Added internal Datatype property. Implemented
list type derivation validation. Added Normalize().
* XmlSchemaSimpleTypeContent.cs : Added Normalize(). Replaced anyType
with anySimpleType.
* XmlSchemaSimpleTypeRestriction.cs : Implemented some facet validation,
such as pattern, enumeration, and length etc.
svn path=/trunk/mcs/; revision=19276
* FileIOPermissionAttributeTest.cs: Handle Short File Name vs. Long
File Name messiness. This probably needs to be worked on for the
tests to work on Linux, etc.
svn path=/trunk/mcs/; revision=19260
* convert.cs: Use `TypeManager.IsValueType' instead of
'type.IsValueType' everywhere.
* typemanager.cs (TypeManager.IsValueType): Return true for type
parameters. The reason for this is that we need to box a type
parameter when converting it to a reference type.
* cs-parser.jay: Added support for default value expressions.
* generics.cs (DefaultValueExpression): New public class.
svn path=/trunk/mcs/; revision=19257
* Makefile: Removed Mono.Security.Tls.
* Mono.Security.Tls: Removed directory, now TLS support is in
Mono.Security assembly.
svn path=/trunk/mcs/; revision=19255
* AsymmetricEncryptionKey.cs: Added internal property to get the AsymmetricAlgorithm object.
* EncryptedKey.cs: Almost complete (still lacking LoadXml).
* SymmetricEncryptionKey.cs: Added internal property to get
svn path=/trunk/mcs/; revision=19250
* Mono.Security.dll.sources: Removed AssemblyInfo.cs from build.
This file is for TLS not for the complete Mono.Security assembly.
svn path=/trunk/mcs/; revision=19241
* TcpClient.cs: Fix void Dispose (bool disposing) to follow the
pattern. It was shutting down the managed resources even in the
finalizer case, it should only do that when called from
IDisposable.Dipose.
svn path=/trunk/mcs/; revision=19238
* FileStream.cs public FileStream (string name, FileMode mode)
constructor: If we pass FileMode.Append, we can not pass
FileAccess.ReadWrite. This fixes bug 44959
svn path=/trunk/mcs/; revision=19215
can't be serialized. This fixes bug #49878.
* TypeData.cs: In ListItemType check that the collection has a valid
Add method and report an error if not.
* XmlReflectionImporter.cs: Added CheckSerializableType check call when
reflecting a collection.
svn path=/trunk/mcs/; revision=19214
* exception.c (mono_exception_from_name_msg): New helper function for
creating exceptions and initializing their message field.
* exception.c: Simplify functions using the new helper.
* exception.h exception.c (mono_get_exception_cannot_unload_appdomain):
New function.
svn path=/trunk/mono/; revision=19213
* Npgsql/NpgsqlClosedState.cs:
* Npgsql/NpgsqlConnection.cs:
* Npgsql/NpgsqlConnectedState.cs:
* Npgsql/NpgsqlReadyState.cs:
* Npgsql/NpgsqlState.cs: Changed the namespace for Tls, now the
namespace is Mono.System.Protocol.Tls, before was
System.Security.Tls.
* Npgsql/Makefile: Change reference from System.Security.Tls to
Mono.Security (now Tls lives there).
svn path=/trunk/mcs/; revision=19209
* object.h object.c: Remove G_GNUC_NORETURN from the signature of
mono_raise_exception, since otherwise gcc doesn't generate the function
epilog for raise_exception, confusing the stack unwinding in the JIT.
Fixes#45043.
svn path=/trunk/mono/; revision=19197
* ecore.cs: Applied fix from Ben Maurer. We were handling in the
`internal' case regular and protected, but not allowing protected
to be evaluated later. Bug 49840
svn path=/trunk/mcs/; revision=19193
* BuiltInDatatype.cs : Implemented XsdHexBinary.Parse().
* XmlSchemaCollection.cs : Implemented CopyTo().
* XmlSchemaDatatype.cs : Added Normalize() with whitespace handling.
Added support for anySimpleType.
* XmlSchemaSimpleType.cs : Type specification named as anyType should
be mapped to anySimpleType.
* BUGS-MS.txt : Added more case note.
svn path=/trunk/mcs/; revision=19192
* XmlAttributeCollection.cs : Fixed synchronization stuff.
* XmlConvert.cs : Added two FromBinHexString() methods.
* XmlTextReader.cs : Modified to use one of the above method.
* XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
disabled (in the next commit), so resolver won' be set to it.
Attempt to validate against XDR now throws NotSupportedException.
svn path=/trunk/mcs/; revision=19191
* Tds.cs (GetStringValue): A string length of 0xFF (255) is not
misinterpreted as special value anymore.
This is a fix to bug #49835.
svn path=/trunk/mcs/; revision=19190
* XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
GetNamespaceOfPrefix() fixed at 2003-10-13.
* XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
which remained by previous call of this method.
* XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
* XmlValidatingReader.cs : Notice about intention of XDR won't be
supported (at least in Mono 1.0).
svn path=/trunk/mcs/; revision=19187
* BinarySecurityToken.cs: Added support for GetXml/LoadXml
* SecurityToken.cs: Better support for WSE2
* X509SecurityToken.cs: Implemented most of the TODO.
svn path=/trunk/mcs/; revision=19179
* XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
* XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
XmlDeclaration now calls WriteProcessingInstruction(). This fixes
testcase XmlWriterTests.WriteNodeFullDocument().
* XmlTextWriter.cs : Added LAMESPEC comments related to above.
svn path=/trunk/mcs/; revision=19161
* MethodInfo.cs (MethodInfo.GetGenericArguments): Make this method
abstract; use an interncall in MonoMethod and a custom
implementation in MethodBuilder.
svn path=/trunk/mcs/; revision=19160
* class.c (inflate_generic_signature): Renamed to
mono_class_inflate_generic_signature() and made it public.
(my_mono_class_from_generic_parameter): New static function; if we
don't already have the generic parameter's MonoClass, create a
very simple one which is just used internally in the runtime and
not passed back to managed code.
* class.h (MonoGenericInst): Added `gpointer mbuilder' field.
* metadata.h (MonoMethodSignature): Moved the
`MonoGenericParam *gen_params' to the MonoMethodHeader.
(MonoMethodHeader): Moved the `MonoGenericParam *gen_params' here.
* icall.c (ves_icall_MethodInfo_GetGenericArguments): Renamed to
ves_icall_MonoMethod_GetGenericArguments(); this is now an
interncall on the MonoMethod class, not on MethodInfo.
(ves_icall_MethodInfo_BindGenericParameters): Removed, we're now
calling mono_reflection_bind_generic_method_parameters() directly.
* loader.c (mono_method_get_signature): If this is a MethodSpec;
return the already computed `method->signature'.
(method_from_methodspec): New static function to load a method
from a MethodSpec entry.
(mono_get_method_from_token): Call the new method_from_methodspec()
for MethodSpec tokens.
(mono_get_method_from_token): If we're a generic method, load the
type parameters.
* reflection.c (mono_image_get_memberref_token): Allow
MEMBERREF_PARENT_TYPEDEF here; this will be used in the MethodSpec
table.
(fixup_method): Added support for MONO_TABLE_METHODSPEC.
(mono_image_create_token): First check whether it's a generic
method (so we'd need to create a MethodSpec), then do the other
two alternatives.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionMethod *' instead of a `MonoMethod *'; we're now
called directly from the interncall.
svn path=/trunk/mono/; revision=19159
* System.Web.UI/TemplateControl.cs: moved NoParamsInvoker class to its
own file.
* System.Web/HttpApplicationFactory.cs: use NoParamsInvoker.
* System.Web/HttpRequest.cs: support request filters.
* System.Web/HttpRequestStream.cs: mono-stylized and added new Set
method.
* System.Web/NoParamsInvoker.cs: proxy class to invoke user-provided
methods without parameters that are invoked by EventHandlers.
svn path=/trunk/mcs/; revision=19156
encoding format. This fixes bug #49568.
* XmlSerializationReaderInterpreter.cs: In encoded format, do not check
the name and namespace of the wrapper element. MS.NET doesn't do it.
This fixes bug #49729.
svn path=/trunk/mcs/; revision=19152
* Microsoft.VisualBasic/VBCodeGenerator.cs: Sub or Function generation is switched by method.ReturnType being "System.Void"
svn path=/trunk/mcs/; revision=19150
* genericparser.cs:
Don't print exception when a file is not found to be parsed
File extensions not matched are now processed with the default parser
Better handle file/directory not found exceptions, and use Report.Error in that case
* added defaultparserattribute.cs
* mb-parser.jay : Mono.MonoBASIC.Parser is now the [DefaultParser]
* location.cs version 1.4 recovered (Marco Ridoni had it overwritten with an older version)
* mb-tokenizer.cs, rootcontext.cs, tree.cs: Location constructor needs column number now
svn path=/trunk/mcs/; revision=19147
loading. ie ""quote"" should be "\"quote\"".
* dis-cil.c (dissasemble_cil): Write SEH debug info into a comment
block. Combine SEH blocks that have the same offset and length,
this prevents creating invalid SEH blocks.
svn path=/trunk/mono/; revision=19143
* Mono.Data.SqliteClient/SqliteConnection.cs
(SqliteConnection.LastInsertRowId): New property to bind the
sqlite_last_insert_rowid() call.
svn path=/trunk/mcs/; revision=19141
* MonoEvent.cs: implement ToString method as in MS.NET.
* MonoMethod.cs: fix some differences between mono and MS.NET
implementation of ToString.
svn path=/trunk/mcs/; revision=19139
* generic.cs (Constraints.Resolve): Take a DecpSpace instead of a
TypeContainer so we can also use this for Interfaces.
(TypeParameter.Resolve): Likewise.
* interface.cs (Interface.DefineType): Added support for generic
interfaces.
* cs-parser.jay: Added support for generic structs and interfaces.
svn path=/trunk/mcs/; revision=19138
* image.h (MonoAssemblyName): Add public_key and hash_alg fields.
* assembly.c (mono_assembly_open): Fill in public_key and hash_alg
fields.
* icall.c (ves_icall_System_Reflection_Assembly_FillName): Fill in
culture, hash_alg and public_key. Fixes#49555.
svn path=/trunk/mono/; revision=19128
* WebClient.cs: use Path.DirectorySeparator instead of "/" for
windows compatibility. Add some checks for file paths like
"C:/xxx/yyy/..." and like "/home/xxx/...".
svn path=/trunk/mcs/; revision=19127
* class.h (MonoGenericInst): Moved this declaration here and added
`MonoMethod *generic_method'.
* icall.c
(ves_icall_MethodInfo_GetGenericArguments): New interncall.
(ves_icall_MethodInfo_BindGenericParameters): New interncall.
* metadata.c (mono_metadata_type_equal): Two types of
MONO_TYPE_VAR or MONO_TYPE_MVAR equals if they have the same
index; ie. don't compare the address of the `MonoGenericParam'
structure.
(mono_metadata_load_generic_params): Removed the `MonoMethod
*method' argument.
* metadata.h (MonoGenericInst): Moved declaration to class.h.
(MonoMethodHeader): Added `MonoGenericInst *geninst'.
* reflection.c (method_encode_signature): Encode the number of
generic parameters.
(encode_generic_method_sig): New static function.
(method_encode_methodspec): New static function; creates an entry
in the MethodSpec table for a generic method.
(mono_image_get_methodspec_token): New static function.
(mono_image_create_token): Call mono_image_get_methodspec_token()
for generic methods.
(mono_reflection_bind_generic_method_parameters): New public
function. Instantiates a generic method.
svn path=/trunk/mono/; revision=19114
* Makefile
* LoginDialog.cs
* SqlSharpDataAdapter.cs
* sqlsharpgtk.cs: after editing these files, forgot to edit my
new email address
svn path=/trunk/mcs/; revision=19113
* Win32.make: removed file. replaced with Makefile
* Makefile: new makefile for building on Linux and Windows
* LoginDialog.cs
* SqlSharpDataAdapter.cs
* sqlsharpgtk.cs: correct compile errors
svn path=/trunk/mcs/; revision=19112
* metadata.h (MonoMethodSignature): Moved `MonoGenericParam
*gen_params' here from MonoMethodHeader.
* metadata.c (mono_metadata_parse_method_signature): If we have
generic parameters, initialize `method->gen_params' and then set
the correct `type->data.generic_param' in all the parameters.
svn path=/trunk/mono/; revision=19106
* threads.c (mono_threads_get_default_stacksize): New function to
return the default stacksize.
* gc.c (mono_gc_cleanup): Use a separate event for waiting for the
termination of the finalizer thread, since the previous method had
race conditions. Fixes#49628.
* gc.c (mono_gc_init): Use the same stacksize for the finalizer thread
as for the other managed threads.
svn path=/trunk/mono/; revision=19103
* Npgsql/NpgsqlClosedState.cs:
* Npgsql/NpgsqlConnectedState.cs:
* Npgsql/NpgsqlConnection.cs: Changed TcpClient by TlsSession
because now it is used TlsSession and it doesn't work without
these changes.
svn path=/trunk/mcs/; revision=19097
* Makefile: changed reference from Lib/System.Security.Tls.dll to
System.Security.Tls because the last will be installed before and
separatelly.
* Lib: Removed Lib directory, moved System.Security.Tls.dll to
Mono.Security.Tls library directory.
svn path=/trunk/mcs/; revision=19094
* Iterator.cs : DescendantIterator and FollowingIterator also should
not MoveNext() after they reached to the end.
svn path=/trunk/mcs/; revision=19085
* System.Security.Tls.dll: Added Tls implementation from Carlos Guzman. Npgsql now supports SSL connections with this library.
svn path=/trunk/mcs/; revision=19081
* object.h: Add a new field to TypedRef to simplify the implementation
of the REFANY opcodes in the JIT.
* icall.c: Make use of the new field.
svn path=/trunk/mono/; revision=19078
between XmlCodeExporter and SoapCodeExporter.
* SoapCodeExporter.cs: Implemented.
* XmlCodeExporter.cs: Moved common code to MapCodeGenerator.
* XmlSerializationReaderInterpreter.cs: Fixed problem when reading
encoded bare parameter list.
* XmlTypeMapping.cs: Added method for getting member element by index.
svn path=/trunk/mcs/; revision=19069
Fixed naming of messages.
* ProtocolImporter.cs: It now iterates through all bindings. It creates
a namespace for all bindings.
* ServiceDescriptionImporter.cs: Some code moved to ProtocolImporter.
* SoapProtocolImporter.cs: Improved support for RPC format. It now is working.
svn path=/trunk/mcs/; revision=19067
* statement.cs (Switch.TableSwitchEmit): Compare the upper bound
to kb.Nlast, and not the kb.nFirst to isolate the switch
statement.
Extract the underlying type, so enumerations of long/ulong are
treated like long/ulong.
svn path=/trunk/mcs/; revision=19066
2003-10-14 Miguel de Icaza <[email protected]>
* expression.cs (New): Overload the meaning of RequestedType to
track the possible creation of the NewDelegate type, since
DoResolve is invoked more than once for new constructors on field
initialization.
See bugs: #48800 and #37014
svn path=/trunk/mcs/; revision=19064
* cs-parser.jay (declare_local_constants): Take an arraylist
instead of a single constant.
(local_constant_declaration): It should take a
constant_declarators, not a constant_declarator.
svn path=/trunk/mcs/; revision=19062
* Type.cs (Type.DeclaringMethod): For a generic method's type
parameter, return this method - otherwise, return null.
svn path=/trunk/mcs/; revision=19052
* class.c (mono_class_from_gen_param): Renamed to
mono_class_from_generic_parameter() and moved most of the
functionality from mono_reflection_define_generic_parameter()
here; ie. we create a "real" class here.
(mono_class_from_mono_type): Only allow MONO_TYPE_VAR and
MONO_TYPE_MVAR if mono_class_from_generic_parameter() has
previously been called.
* class.h (MonoGenericParam): Moved the declaration of this struct
here from metadata.h and added `MonoMethod *method'.
* icall.c (ves_icall_MonoType_get_DeclaringMethod): New
interncall.
* loader.c (mono_get_method_from_token): If we have any generic
parameters, call mono_metadata_load_generic_params() to read them
from the MONO_TABLE_GENERICPAR.
* metadata.c (mono_metadata_load_generic_params): Added
`MonoMethod *method' argument which is used MONO_TYPE_MVAR.
* metadata.h (MonoMethodSignature): Replaced
`MonoGenericInst *geninst' with `guint16 generic_param_count'.
(MonoMethodHeader): Added `MonoGenericParam *gen_params'.
* reflection.c (mono_reflection_define_generic_parameter): Moved
most of the functionality into the new
mono_class_from_generic_parameter(); set the `method' field if
we're a method parameter.
svn path=/trunk/mono/; revision=19051
* System.Web.dll.sources: new files in System.Web.Configuration.
* System.Web.Configuration/CompilationConfiguration.cs:
* System.Web.Configuration/CompilationConfigurationHandler.cs:
* System.Web.Configuration/CompilerCollection.cs:
* System.Web.Configuration/WebCompiler.cs: new files that process and
store system.web/compilation info (compilers + assemblies).
* System.Web.Configuration/HttpHandlersSectionHandler.cs: added option
for an attribute to be empty.
* System.Web.UI/BaseParser.cs: added CompilationConfig property.
* System.Web.UI/TemplateParser.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: added CompilationConfig
property. Don't hardcode assembly names any more, assemblies in bin
are added depending on the configuration. The default language is
also taken from the configuration.
* System.Web.Compilation/BaseCompiler.cs: now gets the CodeCompiler
from configuration files.
In short, this changes make our ASP.NET support any language
that has CodeDom CodeCompiler and CodeGenerator.
VB.NET currently fails because of its buggy handling of options.
svn path=/trunk/mcs/; revision=19035
* icall.c: The generics API has changed in the spec since it was
added to System.Type; these modifications make it match the spec
again.
(ves_icall_Type_GetGenericParameters): Renamed to
`ves_icall_Type_GetGenericArguments'.
(ves_icall_Type_get_IsGenericTypeDefinition): New interncall.
(ves_icall_MonoType_get_HasGenericParameteres): Renamed to
`ves_icall_MonoType_get_HasGenericArguments'.
(ves_icall_MonoType_get_IsUnboundGenericParameter): Renamed to
`ves_icall_MonoType_get_IsGenericParameter'.
(ves_icall_MonoType_get_HasUnboundGenericParameters): Removed;
this is no interncall anymore.
(ves_icall_TypeBuilder_get_IsUnboundGenericParameter): Renamed to
`ves_icall_TypeBuilder_get_IsGenericParameter'.
svn path=/trunk/mono/; revision=19019
The generics API has changed in the spec since it was added here;
these modifications make it match the spec again.
* Type.cs
(GetGenericParameters): Renamed to `GetGenericArguments'.
(HasGenericParameters): Renamed to `HasGenericArguments'.
(HasUnboundGenericParameters): Renamed to `ContainsGenericParameters'.
(IsGenericTypeDefinition): New property.
(IsUnboundGenericParameter): Renamed to `IsGenericParameter'.
* MonoType.cs (ContainsGenericParameters): Implement this here;
this is no interncall anymore.
svn path=/trunk/mcs/; revision=19018
* reflection.c (mono_reflection_bind_generic_parameters): Also
inflate generic methods if we're reading the class from IL.
svn path=/trunk/mono/; revision=19017
* SoapReflectionImporter.cs, XmlReflectionImporter.cs, XmlSchemaImporter.cs:
in ImportMembersMapping, set pass the namespace to each XmlMemberMapping.
* SoapSchemaExporter.cs: Some fixes in ExportMembersMapping.
* XmlMemberMapping.cs: Fixed constructor. Now it takes the default namespace
and whether it uses encoded or literal format.
* XmlSchemaExporter.cs: Little fixes.
svn path=/trunk/mcs/; revision=19015
HttpSoapWebServiceHandler.cs, Methods.cs, SoapHttpClientProtocol.cs,
TypeStubManager.cs
Added class LogicalTypeInfo, which contains info common to all protocols
through which a web service can be accessed. Also, modified the way
Serializers are created. Instead of creating one by one, they are now
created all at once. This will make serialization creation more efficient
when the serializer code generator is in place.
* SoapRpcMethodAttribute.cs: Set the correct default values for the
properties.
* WebServiceHelper.cs: Removed unused method GetServiceNamespace().
* XmlReturnReader.cs, XmlReturnWriter.cs: Get the namespace for the return
type from LogicalTypeInfo.
svn path=/trunk/mcs/; revision=19013
Get the namespace for literal types from LogicalTypeInfo, since it may not
be the same as the service namespace.
* ProtocolReflector.cs: Access LogicalTypeInfo to get WS info common to
all protocols.
* ServiceDescription.cs: Added soap/encoded namespace.
* SoapProtocolImporter.cs: Added some bits of RPC format support.
svn path=/trunk/mcs/; revision=19011
* Delegate.cs: add the method name to the exception when it cannot be
bound.
* Exception.cs: fix nullref in Source.
svn path=/trunk/mcs/; revision=19008
* sparc/sparc-codegen.h sparc/tramp.c: add initial implementation
for V9 (64 bit), cover more 32 bit cases as well.
svn path=/trunk/mono/; revision=18995
* SessionStateModule.cs: prevent Context.State from being null if
the module is inited in another HttpApplication. Fixes#49569.
svn path=/trunk/mcs/; revision=18991
* class.cs (Method.Define): If we're a generic method, call
TypeBuilder.DefineGenericMethod () before resolving
the parameters.
(MethodData): Added .ctor which takes an additional MethodBuilder
argument; this is used for generic methods.
(MethodData.Define): Call `builder.SetGenericMethodSignature()' if
we already have a MethodBuilder.
svn path=/trunk/mcs/; revision=18985
* reflection.c (mono_reflection_define_generic_parameter): This
method isn't called directly from the icall anymore; take a
`MonoReflectionAssemblyBuilder *' so we can use this for type and
method generic parameters.
(ReflectionMethodBuilder): Added `MonoArray *generic_param'.
(method_builder_encode_signature): Encode generic parameters.
(mono_image_get_method_info): Write generic params to the
MONO_TABLE_GENERICPARAM table.
* reflection.h (MonoReflectionMethodBuilder): Added
`MonoArray *generic_params'.
* metadata.h (MonoMethodSignature): Added `MonoGenericInst *geninst'.
* icall.c (ves_icall_TypeBuilder_define_generic_parameter): Added
wrapper for mono_reflection_define_generic_parameter().
(ves_icall_MethodBuilder_define_generic_parameter): Likewise.
svn path=/trunk/mono/; revision=18984
* Makefile.am: fix so it works if builddir != srcdir
* libtest.c: (mono_test_empty_struct) make it exist for
non-GCC builds (and possibly pass depending on trampolines).
(mono_test_marshal_bool_byref) bools marshal as ints by default
svn path=/trunk/mono/; revision=18981
* threads.c (CreateThread): Wrap pthread_attr_setstacksize call in
a conditional for platforms that don't have it.
svn path=/trunk/mono/; revision=18980
* XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
declaration even though there is no XmlDeclaration child.
* XmlTextReader.cs : Fixed Init() so that ResetState() should work.
svn path=/trunk/mcs/; revision=18976
* marshal.c (mono_marshal_get_native_wrapper): Add support for
the SetLastError pinvoke attribute.
* marshal.c (mono_marshal_set_last_error): New helper function called
by the generated code.
svn path=/trunk/mono/; revision=18971
* pinvoke2.cs pinvoke3.cs: Merge tests 4-8 into these files +
convert tests so they run with the test driver used by mini.
* pinvoke3.cs libtest.c: Add tests for class arguments and return
values.
* pinvoke4.cs pinvoke5.cs pinvoke6.cs pinvoke7.cs pinvoke8.cs: Removed.
svn path=/trunk/mono/; revision=18967
* marshal.c (mono_mb_emit_branch): New helper function.
* marshal.c (mono_mb_emit_exception): Added exception name parameter.
* marshal.c (mono_marshal_get_managed_wrapper): Added support for
classes as parameters and return values of delegates. Fixes#29256.
svn path=/trunk/mono/; revision=18962
* XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
And it should throw ArgumentNullException.
svn path=/trunk/mcs/; revision=18949
* XmlAttribute.cs : Fixed InnerText that did not removed its content
if there is two or more children.
* XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
(2)not to compare NodeType for detached nodes, (3)optimization to
compare element's prefix.
* XmlSecureResolver.cs : Removed extraneous members.
svn path=/trunk/mcs/; revision=18948
* System.Web.UI/Control.cs: removed some debug lines.
* System.Web.UI/Page.cs: implemented RegisterOnSubmitStatement
* System.Web.UI/TemplateControl.cs: fixed wire up for methods with no
parameters.
* System.Web.UI.HtmlControls/HtmlForm.cs: render the onsubmit attribute.
svn path=/trunk/mcs/; revision=18945
* HttpWebRequest.cs:
* HttpWebResponse.cs: better abort handling and leave the stream in a
stable status on abort.
svn path=/trunk/mcs/; revision=18943
* Lots of files changed, upgraded to nunit 2.1.4. I built and ran the
corlib test, so it seems like existing tests should still work under
this new version of nunit.
svn path=/trunk/mcs/; revision=18920
* corlib.dll.sources: Added classes for Authenticode support.
* corlib_test.dll.sources: Added unit test for SPC certificates.
svn path=/trunk/mcs/; revision=18919
* ITrustAnchors.cs: Added from Mono.Security assembly to
support Authenticode in X509Certificate.CreateFromSignedFile
* TestAnchors.cs: Added from Mono.Security assembly to
support Authenticode in X509Certificate.CreateFromSignedFile
* TrustAnchors.cs: Added from Mono.Security assembly to
support Authenticode in X509Certificate.CreateFromSignedFile
* X509CertificateCollection.cs: Added from Mono.Security assembly to
support Authenticode in X509Certificate.CreateFromSignedFile
* X509Chain.cs: Added from Mono.Security assembly to
support Authenticode in X509Certificate.CreateFromSignedFile
svn path=/trunk/mcs/; revision=18915
* AuthenticodeBase.cs: Added from Mono.Security assembly for
Authenticode support in X509Certificate.CreateFromSignedFile
* AuthenticodeDeformatter.cs: Added from Mono.Security assembly for
Authenticode support in X509Certificate.CreateFromSignedFile
svn path=/trunk/mcs/; revision=18914
* chktrust.1: New. Man page for Authenticode chktrust.exe
* signcode.1: New. Man page for Authenticode signcode.exe
* sn.1: New. Man page for StrongName sn.exe
* man.xml: Added new (and missing) entries.
svn path=/trunk/mono/; revision=18911
(cairo_reference, cairo_arc, cairo_arc_negative): New API, added.
(cairo_current_matrix): Signature changed, updated.
(cairo_surface_reference): New API.
(cairo_surface_get_matrix): Use 'out' instead of 'ref' param.
* Mono.Cairo/Surface.cs:
* Mono.Cairo/Object.cs: Added binding for new APIs listed in Cairo.cs.
(Destroy): It's supposed to return void, not IntPtr.
* cairo-api.cs: Marked as in internal class, instead of
public. Update to new Cairo API (see Mono.Cairo/Cairo.cs).
* gdk-helpers.cs (Gdk.Pixbuf.Finalize): Removed.
svn path=/trunk/mcs/; revision=18901
* Calendar.cs: apply the calendar style to the new Table, not to itself.
Fixes#49406.
* CheckBox.cs: render the hidden fields if AutoPostBack.
* Style.cs: don't render empty width/height. Small improvement in
CopyFrom.
* Table.cs: fixed condition for border width.
* TableStyle.cs:
(CopyFrom): always call the base class to copy other attributes. Fixes
bug #49408. Don't render empty 'rules' attribute.
* WebControl.cs: track viewstate when enabled. Don't overwrite source
control attributes in CopyBaseAttributes.
* ChangeLog: fixed dates.
svn path=/trunk/mcs/; revision=18878
* GenericMethodRef.cs: Basically just a wrapper around an existing
method making it into a generic method.
* GenericMethodSig.cs: Signature for a generic method.
svn path=/trunk/mcs/; revision=18876
* HttpResponse.cs:
* HttpServerUtility.cs: change the response writer in Execute. Thanks
to Rich Alimi <[email protected]> for noticing this.
svn path=/trunk/mcs/; revision=18873
* System.Web/HttpApplicationFactory.cs:
* System.Web.UI/TemplateControl.cs: support for wiring up events without
parameters.
* System.Web.Compilation/AspParser.cs:
* System.Web.Compilation/TagAttributes.cs: allow duplicated runat=server
attributes and display error page when duplicated attributes and runat
is specified.
svn path=/trunk/mcs/; revision=18872
signatures. Use this class instead of GenericTypeInst for creating
generic methods. Fix Generic call conv. according to two of my
docs it is 0x10 and only one says 0x50 so I will go with 0x10.
svn path=/trunk/mcs/; revision=18871
* Uri.cs: fixed a problem with some URIs like file://some_file.txt
It used to return "/some_file.txt/" instead of "some_file.txt" in
LocalPath. Fix handling of full path files and SMB addresses.
* UriTest.cs: added some test for "file://one_file.txt". Uri used to
fail with this URIs.
* WebClient.cs: MS.NET works right when we try OpenRead("file.txt")
but we didn't. Now, when Uri fails with an exception, it adds
"file://" before the URI and tries again.
svn path=/trunk/mcs/; revision=18870
* marshal.c (mono_marshal_get_managed_wrapper): Under windows,
delegates passed to native code must use the STDCALL calling
convention. Fixes#35987.
svn path=/trunk/mono/; revision=18858
* JSparser.cs: Updated the constructor to not receiving params.
* JScriptLexer.cs, JScriptParser.cs, JScriptParserTokenTypes.cs,
JScriptParserTokenTypes.txt: update of antlr generated files from
grammar changes.
svn path=/trunk/mcs/; revision=18851
* class.c (inflate_generic_type): If we're inflating for a generic
type instance (and not for a generic method), return
MONO_TYPE_MVAR unchanged.
svn path=/trunk/mono/; revision=18848
* System.Collections/Hashtable.cs:
* Test/System.Collections/HashtableTest.cs: patch from Carlos A.
Barcenilla ([email protected]) that includes some fixes for
Hashtable + NUnit2 tests.
svn path=/trunk/mcs/; revision=18845
* DateTime.cs: Patch from Chris Turchin: the DateTime.MaxValue
should not be TimeSpan.MaxValue, because it overflow. Set this to
be MAX_VALUE_TICKS
svn path=/trunk/mcs/; revision=18844
* reflection.c (MonoReflectionGenericParam): Added `guint32 index'.
(mono_reflection_define_generic_parameter): If `gparam->index' is
non-zero, create a MONO_TYPE_MVAR.
(encode_type): Added support for MONO_TYPE_MVAR.
svn path=/trunk/mono/; revision=18833
* class.cs (Method): Added .ctor which takes a `GenericMethod'
instead of a `DeclSpace'. This is used for generic methods.
* cs-parser.jay (method_header): Added support for generic
methods; create a `GenericMethod' instance and pass it to the
`Method's .ctor; it'll be used as the `DeclSpace' to lookup
parameters and locals.
* decl.cs (DeclSpace.SetParameterInfo): Removed Location argument
since we already have the location. Check whether we're a generic
type declaration or a generic method and create the correct type
parameter.
* generic.cs (TypeParameter): Added .ctor which takes an
additional `int index' argument. It is used for generic methods.
(TypeParameter.DefineMethod): New public method.
(GenericMethod): New public class; derives from DeclSpace and is
used for generic methods.
svn path=/trunk/mcs/; revision=18831
* class.cs (MethodCore): Added additional `DeclSpace ds' argument
to the .ctor.
(MethodCore.DoDefineParameters): Removed the TypeContainer
argument; use the DeclSpace which was passed to the .ctor instead.
(MethodCore.CheckParameter): Take a DeclSpace instead of a
TypeContainer; we only need a DeclSpace here.
svn path=/trunk/mcs/; revision=18826
* class.cs (MethodData): Added additional `DeclSpace ds' argument
to the .ctor.
(MethodData.Define, MethodData.Emit): Pass the `ds' to the
EmitContext's .ctor.
svn path=/trunk/mcs/; revision=18822
* decl.cs (DeclSpace.AsAccessible): Moved here from TypeContainer.
(AccessLevel, CheckAccessLevel, GetAccessLevel): They're used by
AsAccessible(), moved them as well.
* class.cs (TypeContainer.AsAccessible): Moved to DeclSpace.
svn path=/trunk/mcs/; revision=18821
* CultureInfo.cs: Implemented, with internal calls to ICU apart
from the Invariant culture.
* SortKey.cs:
* CompareInfo.cs: Implemented
* DateTimeFormatInfo.cs: Fixed the worst of the formatting,
construct default FullDateTimePattern on the fly.
svn path=/trunk/mcs/; revision=18820
* acconfig.h:
* configure.in: Check for ICU availability
2003-10-09 Dick Porter <[email protected]>
* icall.c:
* locales.h:
* locales.c: Internal calls for constructing CultureInfo and
related objects from libicu (if its available.)
svn path=/trunk/mono/; revision=18818
* Added DTDReader.cs. It is almost importation of XmlTextReader.
* DTDObjectModel.cs :
- More .NET-ism. Properties took place of fields.
- Imported PE set from XmlTextReader. Added location info.
- Added DTDEntityBase common to PE and GE.
- More correct text declaration handling with new XmlTextReader.
* DTDValidatingReader.cs :
- Now uses entity resolving XmlTextReader to validate attributes
correctly. Implemented standalone
- Standalone and default related validity constraints check.
* XmlImplementation.cs: Implemented HasFeature().
* XmlNode.cs : Implemented Supports().
* XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
* XmlParserInput.cs : Removed extraneous members.
* XmlTextReader.cs :
- All DTD related functionality now goes to DTDReader.cs
- It became old simple TextReader input style.
- Implemented GetRemainder().
- Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
additional new private method ReadUntilEndTag().
- Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
ReadXmlDeclaration() now became simple.
- More strict entity reference check at SetEntityReferenceProperty()
- Removed extraneous members.
* XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
svn path=/trunk/mcs/; revision=18812
* threadpool.c: added an argument to async_invoke_thread that is the
item to process, pass the MonoAsyncResult to the thread start function
when creating a new thread. This way we don't need to acquire any lock
when we're creating a new thread. Readded a semaphore for faster
response times (instead of that Sleep i added).
svn path=/trunk/mono/; revision=18789
* System.Net/ServicePoint.cs: preparing for recycling. Not yet finished.
* System.Net/ServicePointManager.cs: this is the one that reads config.
* System.Net/WebConnectionGroup.cs: don't read config here.
* System.Net/WebConnection.cs: added the queue again. Launch queued
requests on error.
* System.Net.Configuration/ConnectionManagementHandler.cs: the hashtable
is case insensitive now.
svn path=/trunk/mcs/; revision=18788
* XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
the state before throwing the exception if depth > 0.
svn path=/trunk/mcs/; revision=18786
* icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData):
get daylight change dates better on Windows, fix handling
of platforms without tm_gmtoff.
svn path=/trunk/mono/; revision=18783
2003-10-03 Diego Caravana <[email protected]>
* Tds70.cs: Now handles parameters of type ReturnValue and
InputOutput.
(BuildParameters): skips the ReturnValue params and builds the
set string considering the assigned value for InputOutput ones.
(BuildProcedureCall): like the preceding one plus adds the return
value to the final select.
-----
System.Data/System.Data.SqlClient/ChangeLog
2003-10-03 Diego Caravana <[email protected]>
* SqlCommand.cs: no change.
* SqlConnection.cs (Close): Added checks for null instance
variables.
* SqlParameter.cs (Direction): Now handles parameters of type
ReturnValue and InputOutput.
* SqlParameterCollection.cs (IndexOf(string)): Search for
SqlParameter object in list is done by obtaining ParameterName
attribute, not directly through list.IndexOf().
svn path=/trunk/mcs/; revision=18782
dis_generic_param_and_constraints, allow a table type to be passed
to the method so this could be used with generic methods (It is
not though).
* get.c/get.h (get_generic_param): method to stringify generic
type and method parameters.
* get.c (dis_stringify_method_signature): Add generic
parameters.
svn path=/trunk/mono/; revision=18781
a name, names are mandatory. Add method to add type parameters to
methods. Allow GenericParameters to have either a type or a
method as its owner. Also fix visibility of GenericParameters, a
GenericParameter should not be created outside of PEAPI.
svn path=/trunk/mcs/; revision=18772
* class.c (inflate_generic_method): Renamed to
mono_class_inflate_generic_method() and made public.
(mono_class_init): Don't inflate the generic methods here.
(mono_class_from_generic): Added `gboolean inflate_methods'
argument. Inflate the methods here.
* loader.c (mono_method_get_param_names): Ignore instances of
generic types for the moment.
* reflection.c (fixup_method): Added support for inflated methods.
(mono_image_create_token): Use mono_image_get_methodref_token()
for inflated methods.
(mono_custom_attrs_from_param): Ignore instances of generic types
for the moment.
(mono_reflection_bind_generic_parameters): New public function.
Moved all the functionality from
ves_icall_Type_BindGenericParameters() here and added support for
dynamic types.
(mono_reflection_define_generic_parameter): Initialize
`klass->methods' here.
* icall.c (ves_icall_Type_BindGenericParameters): Moved all the
functionality into mono_reflection_define_generic_parameter().
(ves_icall_Type_GetGenericTypeDefinition): If we're coming from a
TypeBuilder, return that TypeBuilder.
svn path=/trunk/mono/; revision=18768
* BaseValidator.cs : DetermineRenderUplevel() - Completed.
: RegisterValidatorCommonScript()
- More code, I need HELP!
: RegisterValidatorDeclaration()
- More code, I need HELP!
svn path=/trunk/mcs/; revision=18764
* System.Net/WebConnection.cs: the queue is now handled by the
threadpool. Initialize the connection data in a place where it does not
depend on the execution order of the requests in threadpool. More error
handling.
* System.Net/WebConnectionGroup.cs: use the limits in the config file
and reuse connections when the limit is reached.
* System.Net.Configuration/ConnectionManagementHandler.cs: added
GetMaxConnections to return the max. number of simultaneous connections
to a given host.
svn path=/trunk/mcs/; revision=18735
* appdomain.c: removed mono_delegate_semaphore.
* threadpool.c:
(mono_thread_pool_add): moved hash table creation inside and the thread
creation outside of the critical region.
(mono_thread_pool_finish): removed obsolete code.
(async_invoke_thread): don't use the semaphore. Use a plain Sleep and
continue or exit the thread depending on the queue.
svn path=/trunk/mono/; revision=18734
* expression.cs (Binary.Emit.GreatherThanOrEqual): Fix the code
generation for >=, as spotted by Paolo, bug 48679.
Patch from David Waite.
* cs-tokenizer.cs: Add handling for #pragma.
svn path=/trunk/mcs/; revision=18729
only needs to be shifted 1 bit. Added dis of generic constraints.
* get.c/get.h: New method for getting a TypeOrMethodDef token
* dump.c: When dumping generic parameters and generic constraints
output readable names instead of just tokens.
svn path=/trunk/mono/; revision=18727
to proxy in ClientIdentity to a WeakReference. This fixes a memory leak.
* RemotingServices.cs: Ignore first "/" char in uris when looking for
and object.
Take into account that identity now has a weak reference
of the proxy.
svn path=/trunk/mcs/; revision=18721
* cs-parser.jay: Allow for both yield and yield return in the
syntax. The anti-cobolization of C# fight will go on!
svn path=/trunk/mcs/; revision=18711
datetime and arrays of primitive types. This makes CAD much faster.
* AsyncResult.cs: Added property to store the call message.
svn path=/trunk/mcs/; revision=18706
* marshal.c (mono_marshal_get_native_wrapper): Fix marshalling of
arrays of structs. Also add a more descriptive error message when
a structure member is marshalled as LPArray.
svn path=/trunk/mono/; revision=18705
* expression.cs (ArrayCreation.EmitDynamicInitializers): When
coping with enumerations variables, we were mistakenly processing
them as a regular value type instead of built-in types. Fixes the
bug #48063
* typemanager.cs (IsBuiltinOrEnum): New method.
svn path=/trunk/mcs/; revision=18697
WebServiceBindingAttribute addition moved to SoapProtocolImporter.
Moved GetServiceUrl here (from SoapProtocolImporter).
* ServiceDescriptionImporter.cs: Added support for HttpGet and HttpPost
importers.
* SoapProtocolImporter.cs: Minor fixes.
* HttpSimpleProtocolImporter.cs, HttpGetProtocolImporter.cs,
HttpPostProtocolImporter.cs: new files that implement HttpGet and HttpPost
importers.
svn path=/trunk/mcs/; revision=18691
* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs: Check that
HttpMethodAttribute is present in proxy's method.
* HttpSimpleClientProtocol.cs: Forgot to call InitializeRequest before
getting the request stream.
* UrlEncodedParameterWriter.cs: in Encode(), take into account that
requestEncoding can be null.
svn path=/trunk/mcs/; revision=18690
* mono/tests/pinvoke2.cs mono/tests/pinvoke11.cs
mono/tests/libtest.c: Add more pass by value struct
tests for platforms with more complex calling conventions
(Sparc V9, HPPA 64 bit).
svn path=/trunk/mono/; revision=18679
* marshal.c (mono_marshal_get_native_wrapper): Add support for
marshalling arrays of complex types. Fixes#29098. Also remove an
usused and incomplete function.
svn path=/trunk/mono/; revision=18673
* mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
* inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
* driver.c: Add support for compiling icall wrappers to --compile.
svn path=/trunk/mono/; revision=18672
* Microsoft.Web.Services.dll.sources: Removed classes from
Microsoft.Web.Services.Policy and Microsoft.Web.Services.Messaging
from the WSE 1.0 build (extra - corcompare).
svn path=/trunk/mcs/; revision=18666
* X509Certificate.cs: Class is sealed (corcompare). Implemented
GetSubjectAlternativeName for WSE2.
* X509CertificateCollection.cs: Removed Item[] set (corcompare).
svn path=/trunk/mcs/; revision=18664
* Microsoft.Web.Services.Diagnostics: Added new namespace with
internal TraceFilter.cs and public TraceInputFilter.cs and
TraceOutputFilter.cs
svn path=/trunk/mcs/; revision=18658
* SoapWebRequest.cs: Now returns a SoapWebResponse for GetResponse. Added
[MonoTODO] to the async methods.
* SoapWebResponse.cs: Added Pipeline support for output.
* WebServicesExtension.cs: Added [MonoTODO] to reflect reality
svn path=/trunk/mcs/; revision=18652
* icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Finally
fix timezone handling problems on Windows.
* icall.c (ves_icall_System_CurrentTimeZone_GetTimeZoneData): Avoid
asserts when the year is outside the range handled by ms the functions.
svn path=/trunk/mono/; revision=18627
* XmlConvertTests.cs : patch by Jonathan Kessler. Added more test
methods.
* XmlUrlResolverTests.cs : Renamed NullArgs to ResolveUriWithNullArgs,
and added GetEntityWithNullArgs() (though it is uncommented).
* XmlReaderCommonTests.cs : Added XML Schema-mode XmlValidatingReader
testing phase.
svn path=/trunk/mcs/; revision=18619
* ChainStream.cs: New. Allows to chain the WebRequest.GetRequestStream
so we can modify its content before sending it.
* Pipeline.cs: Fixed stupid error in ProcessOutputMessage (x++ -> x--)
* SoapContext.cs: Implemented CopyTo(SoapContext)
* SoapEnvelope.cs: New internal constructor for SoapContext
* SoapInputFilterCollection.cs: Fixed Clone() and added an internal
constructor.
* SoapOutputFilterCollection.cs: Fixed Clone() and added an internal
constructor.
* SoapWebRequest.cs: Completed TODO.
* WebServicesClientProtocol.cs: Fixed InvalidCast in GetWebResponse. But
how do we set the ResponseSoapContext ?
svn path=/trunk/mcs/; revision=18609
* XmlAttribute.cs : Removed extraneous MonoTODO.
* XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
WriteStartElement() and WriteStartAttribute() should ignore Prefix
if namespace uri is not specified.
svn path=/trunk/mcs/; revision=18594
* XmlDocumentFragment.cs,
XmlElement.cs,
XmlEntityReference.cs : Removed extraneous MonoTODO.
* XmlNode.cs : Implemented Normalize().
* XmlNodeReader.cs :
- AttributeCount and HasAttributes should return its owner element's
value, to be consistent with XmlTextReader.
- Fixed Depth to reflect correct attribute/attribute-value iteration.
- simplified ownerElement and HasValue.
- Prefix won't return null.
- MoveToElement() should also work against attribute value nodes.
* XmlTextReader.cs : MoveToElement() should return false if it is
positioned at element itself.
svn path=/trunk/mcs/; revision=18589
* CryptoStreamTest.cs: Added test case from bugzilla #49323 from
Carlos Guzm�n �lvarez and some small tests for empty stream with
different PaddingMode (as found by Lluis Sanchez Gual).
svn path=/trunk/mcs/; revision=18587
* CryptoStream.cs: Fixed bug 49323. The CanTransformMultipleBlocks
optimization in Read has been fixed for partial blocks.
svn path=/trunk/mcs/; revision=18586
reflector if the TypeStubInfo does not provide one.
Do not create XmlSchemaExporter. Take it from the service reflector, sine
it must be reused for all protocol reflectors. Moved some code to
SoapProtocolReflector, since it cannot be reused for all reflectors.
* ServiceDescriptionReflector.cs: Reflect the type for all available
protocols.
* SoapProtocolReflector.cs: Moved here some code from ProtoclReflector.
* HttpGetProtocolReflector.cs, HttpPostProtocolReflector.cs,
HttpSimpleProtocolReflector.cs: new files.
svn path=/trunk/mcs/; revision=18576
WebServiceHandlerFactory that generates the documentation page.
* WebServiceHandlerFactory.cs: Moved the code that generates the doc page
to SoapDocumentationHandler.cs.
* HttpGetClientProtocol.cs, HttpGetWebServiceHandler.cs,
HttpPostClientProtocol.cs, HttpPostWebServiceHandler.cs,
HttpSimpleWebServiceHandler.cs, HttpSoapWebServiceHandler.cs,
SoapHttpClientProtocol.cs: Changed parameters of GetTypeStub call.
* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs: Added ProtocolName
property. Added check for valid parameters.
* HttpSimpleTypeStubInfo.cs: Define return MimeFormatter in constructor.
* Methods.cs: BindingInfo and related properties moved to base TypeStubInfo.
Added properties for XmlImporter and SoapImporter.
* TypeStubManager.cs: Added BindingInfo and related properties.
Changed GetTypeStub method. Now it takes the name of the protocol for
which to get the type stub info.
* ValueCollectionParameterReader.cs: IsSupported should only return true
for input primitive parameters or array of primitives.
svn path=/trunk/mcs/; revision=18575
* System.Web.Services.Configuration/WebServicesConfigurationSectionHandler.cs: keep the file name of the configuration file around for
wsdlHelpGenerator.
* System.Web.Services.Protocols/SoapDocumentationHandler.cs: it does not
generate the documentation page any more. GetDescription and GetSchemas
are now internal.
* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: generate
the documentation page without doing a Transfer () but instead creating
a Page instance from the wsdl help file. This file is located from the
configuration file that contains the <wsdlHelpGenerator> tag.
svn path=/trunk/mcs/; revision=18539
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
that improves performance by not reading the file more than once.
svn path=/trunk/mcs/; revision=18534
quote the module and method names, properties have specialname,
and rtspecialname flags (nothing else), dis global methods and
fields FIXME: indentation issues.
* get.h: declare get_fieldref_signature
* get.c: Fix unsigned ints (not uint), single quote argument names
(this is kinda a hack, ildasm will only single quote arg names
that are ilasm keywords), remove fixme, we know what typedbyref
means, output fieldref signatures instead of their token
value.
svn path=/trunk/mono/; revision=18517
Carlos' bug seems to stem from my failure to interpolate
the "$$" substitution pattern properly.
This fixes bug #48666
svn path=/trunk/mcs/; revision=18492
* MergeManager.cs: New file.
* DataRelationCollection.cs (AddCore): Check that a
UniqueConstraint is already exists. It loops over the Relations
instead of the Constraints.
(Add, AddCore): The relation was added twice.
* DataSet.cs (Merge, GetChanges, HasChanges): Implemented.
svn path=/trunk/mcs/; revision=18479
common code to ServiceDescriptionReflector.
* ServiceDescriptionReflector.cs: Moved some code from ProtocolReflector.cs
svn path=/trunk/mcs/; revision=18473
Fixed handling of members with XmlTextAttribute that are arrays.
* TypeData.cs: IsComplexType now returns true for XmlNode.
* XmlSerializer.cs: Added check for null mapping in FromMappings.
* XmlTypeMapping.cs: Added helper method FindTextElement.
svn path=/trunk/mcs/; revision=18471
* ConfigurationSettings.cs: patch by Eric Lindvall ([email protected])
that improves performance by not reading the file more than once.
svn path=/trunk/mcs/; revision=18462
* Added DTMXPathNode.cs.
* Fundamental changes in whole DTM stuff. Node information is now array
of "node struct" instead of individual arrays.
svn path=/trunk/mcs/; revision=18460
* System.Web/HttpApplication.cs: pass the Uri, not the file path to
when looking for a handler.
* System.Web.Configuration/HandlerItem.cs: make it work for file names
without wildcards.
svn path=/trunk/mcs/; revision=18459
* XmlSchema.cs : Read() should keep current position of XmlReader if
it was already positioned to 'schema' element.
svn path=/trunk/mcs/; revision=18458
* DbDataAdapter.cs (Fill): Fixed an Exception from being thrown.
* DataRelation.cs (constructor): When the name of the relation is
null, it should return an empty, not "Relation".
* DataRow.cs (AcceptChanges): Added special case for
RowState.Detached.
(CancelEdit): Set editing flag to false.
(IsNull): Check that the value is DBNull.
* DataRowCollection.cs (Add): There was no check that the table of
the collection is owned by a DataSet.
* DataSet.cs (OnMergeFailed): Added.
* UniqueConstraint.cs (AssertConstraint): There was no check that
values in the row are not null, where it is a primary key
column. Also check that the row has a proposed version, if not,
get the current version when we compare the rows.
svn path=/trunk/mcs/; revision=18452
* Ok, this was the beforementioned (on -devel) WSE Makefile edit.
Right now, this builds both WSE1 and WSE2, and installs them both, as
Microsoft.Web.Services.1.dll and
Microsoft.Web.Services.2.dll respectively.
It will also install Microsoft.Web.Services.1.dll as
Microsoft.Web.Services.dll. This behaviour can be overridden by
defining DEFAULT_WSE2
This can be defined in config.make or on the commandline (i think).
I have tested clean, all, and install, but have not tested dist or
test.
dist should work, test might or might not. (however, a toplevel make
dist wont be affected, because this dir is not being built by default)
This is pure amateur makefile hackery on my part, anyone who wants
to improve on this effort, please feel free.
svn path=/trunk/mcs/; revision=18450
* DTDValidatingReader.cs : Simplified to use
XmlSchemaUtil.GetParserContext().
* XmlValidatingReader.cs : ValidationType.Auto should always use
XsdValidatingReader because xsi:schemaLocation might be used.
svn path=/trunk/mcs/; revision=18441
* inssel.brg (OP_UNBOXCAST): Fix#46027.
* inssel.brg (OP_UNBOX): Remove unused rule.
* mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
region instead of one for each method. Fixes#47813.
svn path=/trunk/mono/; revision=18431
* Makefile: Set TEST_MCS_FLAGS.
* Microsoft.JScript_test.dll.sources: deleted the building of my
local test BaseVsaEngineTest.
svn path=/trunk/mcs/; revision=18422
* Microsoft.Web.Services/SoapContext.cs: Added Action, To and ReplyTo
properties.
* Microsoft.Web.Services.Addressing/
Action.cs:
Address.cs:
AttributedUri.cs:
AttributedUriString.cs:
EndpointReference.cs:
EndpointReferenceType.cs:
ReplyTo.cs:
To.cs: Partially stubbed.
* Microsoft.Web.Services.Messaging/SoapReceiver.cs: Added protected
abstract method Receive.
* Microsoft.Web.Services.Messaging/
SoapReceivers.cs:
SoapSender.cs: Partially stubbed.
* Microsoft.Web.Services.Xml/IXmlElement.cs: Moved to the Xml namespace
which is where MS has it, added the namespace to classes that needed it
* Microsoft.Web.Services.Xml/OpenAttributeElement.cs: Partially stubbed
* Microsoft.Web.Services.dll.sources: Added new files.
svn path=/trunk/mcs/; revision=18417
* BaseVsaEngine.cs: added default constructor, added exceptions
for Close (), implemented GetOption, added properties that let
know the state of the engine.
svn path=/trunk/mcs/; revision=18413
* Control.cs:
(ClearChildViewState): doh! Don't clear control viewstate but the
viewstate of possible children.
(LoadViewStateRecursive): load viewstate even when control is not
visible.
Fixes bug #49024.
The rest are just dangling ^M removed.
* DataBoundLiteralControl.cs:
(LoadViewState): we get an object [], not a string [].
svn path=/trunk/mcs/; revision=18405
* handles.c:
* processes.c: undo thinkos.
* sockets.c: set last error when socket creation fails. This shed some
light on bug #49015.
svn path=/trunk/mono/; revision=18393
* mini.c (mono_method_to_ir): Avoid inlining tail calls.
* mini.c (mono_method_to_ir): Fix tail recursion in the presence of
inlining.
* mini.c (mono_method_check_inlining): Make the inlining limit
configurable by an environment variable.
* mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
* mini.h: Bump AOT file version.
* mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
token, store the image along with the token, since the token might not
refer to the same image as the method containing the relocation,
because of inlining.
svn path=/trunk/mono/; revision=18382
* typemanager.cs (TypeManager.GetMethodFlags): Added support for
inflated generic methods.
* generics.cs (ConstructedType): Distinguish between open and
closed constructed types; correctly resolve the arguments.
svn path=/trunk/mcs/; revision=18367
* handles.c: fixed thinko. We now store the strings with their \0.
* processes.c: fixed bug #48973: we only change \ by / for the argument
to be used as command.
When getting the program name from the args, don't let the space between
them in the args.
Store the strings with their terminating \0.
svn path=/trunk/mono/; revision=18352
* System.Web.UI/Control.cs: implemented ClearChildViewState ().
* System.Web.UI.WebControls/Repeater.cs: fixed bug #48807. It needed
to use a DummyDataSource and ClearViewState only called when no items.
svn path=/trunk/mcs/; revision=18351
Added support for IncludeInSchema flag.
* SoapSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
* XmlCodeExporter.cs: Implemented AddMappingMetadata and AddMappingMetadata
methods. Added support for IncludeInSchema flag.
* XmlSchemaImporter.cs: Implemented ImportDerivedTypeMapping method.
Added support for IncludeInSchema flag.
* XmlTypeAttribute.cs: Set includeInSchema to true by default.
* XmlTypeMapping.cs: Added IncludeInSchema property.
svn path=/trunk/mcs/; revision=18348
management of exceptions. Also added support for BufferResponse flag.
* Methods.cs: Added MethodAttribute property in MethodStubInfo. Added
XmlImporter, SoapImporter and Type properties in TypeStubInfo.
* SoapMessage.cs: little fix.
svn path=/trunk/mcs/; revision=18346
Added methods for getting extension importers and reflectors.
* ProtocolImporter.cs: Implemented.
* ProtocolReflector.cs: Implemented.
* ServiceDescriptionCollection.cs: Fixed some methods for finding wsdl
elements.
* ServiceDescriptionImporter.cs: moved most of the code to ProtocolImporter.
* ServiceDescriptionReflector.cs: moved most of the code to
ProtocolReflector and SoapProtocolReflector.
* SoapProtocolImporter.cs: Implemented.
* SoapProtocolReflector.cs: Implemented.
* SoapTransportImporter.cs: Implemented.
* SoapHttpTransportImporter.cs: Implemented.
* wsdl.genxs: Added.
svn path=/trunk/mcs/; revision=18345
* Makefile: added SqlSharp to the build.
* SqlSharp/SqlSharpCli.cs: changes by Daniel Morgan to make this build
with MS runtime 1.0 and 1.1 .
svn path=/trunk/mcs/; revision=18342
pinvoke info. This isn't entirely correct because native unmanaged
methods can have pinvoke info and not have 0 RVAs PEAPI can't
handle native unmanged code though. Expose the ModuleClass so
'global' items can be referenced like this '<Module>'::foo.
svn path=/trunk/mcs/; revision=18336
* gen-11.cs, gen-12.cs: New generics tests.
* gen-13-dll.cs, gen-13.exe.cs: New generics test; this test
consists of two files and tests whether this works if it's in two
files and not just in one.
svn path=/trunk/mcs/; revision=18333
* mini.c (mono_precompile_assemblies): New function to compile
all methods in all loaded assemblies.
* mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
svn path=/trunk/mono/; revision=18332
* regalloc.h regalloc.c (MonoRegState): Change the type of
iassign and fassign to int*, since they can contain large negative
values if the register is spilled. Also added some comments. Fixes
#45817.
svn path=/trunk/mono/; revision=18331
* DefaultContext.cs (translate): translate ("abc", "c", "") = "ab"
not "abc".
* Iterator.cs, Expression.cs: All axes are
SimpleIterators. SimpleIterators are gaurenteed to give the same
XPathNavigator in Current. Make AxisIterator take a
SimpleIterator, not any old BaseIterator. Will allow us to make
NameTable optimizations and avoid quite a few strcmp's.
svn path=/trunk/mcs/; revision=18326
* CheckBox.cs: render the 'disabled' attribute in the correct tag.
* WebControl.cs: fixed Enabled property and save it in ViewState.
Fixes bug #48802.
svn path=/trunk/mcs/; revision=18323
* mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
* aot.c: Added support for AOT compiling methods which contain calls
to wrappers. Currently, only remoting-invoke-with-check wrappers are
handled.
svn path=/trunk/mono/; revision=18322
* marshal.c (mono_marshal_method_from_wrapper): New function to return
the original method from the wrapper method.
svn path=/trunk/mono/; revision=18321
* corlib_test.dll.sources: Remove tests that generate compile
errors. The tests are still there but its name is rmoved here.
svn path=/trunk/mcs/; revision=18313
* mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
jumps, since the method we are jumping to might be domain-specific.
* aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
svn path=/trunk/mono/; revision=18311
* XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
considers such case that target node was not adapted to the document.
* XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
* XmlTextWriter.cs : use 'as' instead of 'try..catch'.
svn path=/trunk/mcs/; revision=18308
* interp.c - reinstate use of mono_marshal_get_delegate_invoke
for ordering and fix CALLI to handle wrapper. More wrapper handling
in CALL and LDSTR. Add another string conversion case.
svn path=/trunk/mono/; revision=18306
* BaseVsaEngine.cs: Implemented the properties of "the kind of
state machine" that BaseVsaEngine is. There are some tiny details
- properly marked to be fixed - missing ;-). They were: Assembly,
Evidence, GenerateDebug, IsCompiled, IsDirty, IsRunning, Language,
LCID, Name, RootMoniker, RootNamespace, Site.
svn path=/trunk/mcs/; revision=18305
* XmlNode.cs (XPathNodeType): Give more useful debugging message.
* XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
in MoveToNext.
svn path=/trunk/mcs/; revision=18302
* icall.c (ves_icall_Type_IsGenericTypeDefinition): Removed this
interncall since it was identical to `Type.GetGenericTypeDefinition()'.
(ves_icall_Type_get_IsGenericInstance): New interncall.
svn path=/trunk/mono/; revision=18301
* Type.cs (Type.IsGenericTypeDefinition): Removed this method
since it was identical to GetGenericTypeDefinition().
(Type.IsGenericInstance): New property.
svn path=/trunk/mcs/; revision=18300
* DbDataAdapter.cs (Fill): Patch from Eran Domb, <[email protected]>.
Fixes a possible NullReferenceException, more details here:
* DataColumn.cs (Unique): Implemented.
* DataTable.cs:
* ConstraintCollection.cs:
* ForeignKeyConstraint.cs (_ensureUniqueConstraintExists): Fixes
an Exception thrown. Details:
http://lists.ximian.com/archives/public/mono-devel-list/2003-September/002130.html
* DataRowCollection.cs (Add): There is no checking that there is
no violation of the unique constrains.
* UniqueConstraint.cs (AssertConstraint): There is no checking on
all columns in the constraint.
svn path=/trunk/mcs/; revision=18298
* mono/tests/pinvoke*.cs, delegate4.cs, marshal10.cs, marshal4.cs
marshal5.cs: remove .so from DllImport of libtest to aid portability.
svn path=/trunk/mono/; revision=18286
* Microsoft.JScript/: Deleted VsaEngine.cs and BaseVsaEngine.cs
* Microsoft.JScript.dll.sources: Changed the namespaces for VsaEngine and BaseVsaEngine.
svn path=/trunk/mcs/; revision=18280
* Microsoft.Vsa: Added VsaException.
* Microsoft.Vsa.dll.sources: Added VsaException to the build.
* Microsoft.Vsa/VsaError.cs: set the values for the enums.
svn path=/trunk/mcs/; revision=18278
* XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
recovery was still not enough. Fixed GrowScopes() (incorrect index).
svn path=/trunk/mcs/; revision=18271
* interp.c: use mono_marshal_get_delegate_invoke to get delegate
invocation order consistent. Fix THROW_EX, fix ip in overflow
exceptions.
svn path=/trunk/mono/; revision=18269
* DbDataRecord.cs: The method
System.Data.Common.DbDataRecord.GetValues(object[] values) did not
put the values of the DbDataRecord into values parameter.
svn path=/trunk/mcs/; revision=18264
* DocumentContext.cs: changed constructor from internal to public,
this a kind of hack ;), but we can build mjs.exe with that change.
* driver.cs, ast.cs, VsaEngine.cs, VariableStatement.cs,
VariableDeclaration.cs, VBArrayConstructor.cs, StringObject.cs,
StringLiteral.cs, StringConstructor.cs, Statement.cs,
ScriptStream.cs, ScriptObject.cs, ScriptFunction.cs,
ScriptBlock.cs, RegExpObject.cs, RegExpConstructor.cs, Print.cs,
Package.cs, ObjectConstructor.cs, NumberObject.cs,
NumberConstructor.cs, MathObject.cs, Literal.cs,
LenientGlobalObject.cs, JSVariableField.cs, JSToken.cs,
JSScanner.cs, JSParser.cs, JSObject.cs, JSLocalField.cs,
JSFunctionAttributeEnum.cs, JSFunctionAttibute.cs, JSField.cs,
JSBuiltIn.cs, IVsaScriptScope.cs, IRedirectOutput.cs,
IActivationObject.cs, GlobalScope.cs, GlobalObject.cs,
FunctionObject.cs, FunctionExpression.cs, FunctionDeclaration.cs,
FunctionConstructor.cs, FormalParameterList.cs, ErrorObject.cs,
ErrorConstructor.cs, EnumeratorObject.cs,
EnumeratorConstructor.cs, Enum.cs, Empty.cs, DocumentContext.cs,
DateObject.cs, DateConstructor.cs, Context.cs, Closure.cs,
BooleanObject.cs, BooleanConstructor.cs, Block.cs, BinaryOp.cs,
BaseVsaEngine.cs, ArrayObject.cs, ArrayConstructor.cs,
ActiveXObjectConstructor.cs, ActivationObject.cs:
indentation comformance to mono style. Returned to
Microsoft.JScript namespace name. Now we can build
Microsoft.JScript.dll on Linux/Windows, and build mjs.exe on
linux/Windows with our Microsoft.JScript.dll. To build mjs.exe:
$(CSC) /r:Microsoft.JScript.dll driver.cs. Also changed my mind
about the namespace stuff, because I want people
to contribute NUnit tests for Microsoft.JScript public API.
* jscript-lexer-parser.g: Now we are back to Microsoft.JScript namespace.
2003-09-21 <[email protected]>
svn path=/trunk/mcs/; revision=18262
report object for giving users errors/warnings/info.
* FieldDef.cs: When a data constant is assigned to a field the
constant might not exist yet. So just take the constants name and
look it up when writting code.
* Local.cs: Starting to add some error handling. Still playing
with diff ways to do this.
* MethodDef.cs: Add some error handling for local var lookups
* TypeDef.cs: Data is allways global so it should never be added
to a class
* TypeRef.cs: Error message for lookups.
svn path=/trunk/mcs/; revision=18259
* AspGenerator.cs: don't process code render tags inside scripts. Check
the language of the script and treat javascript as verbatim input.
Fixes bug #48592.
svn path=/trunk/mcs/; revision=18254
* XmlReaderCommonTests.cs : Added ProhibitedMultipleAttributes().
Fixed ReadAttributeValue(). Now I think it is MS.NET XmlTextReader
which is rather buggy than their XmlNodeReader.
* XmlTextReaderTests.cs : Added IfNamespacesThenProhibitedAttributes()
and trivial messagefix.
svn path=/trunk/mcs/; revision=18241
* XmlTextReader.cs :
- Fix for bugzilla #48337 (containing Ben's advice on that).
- Added internal XmlTokenInfo classes. Nodes are now handled as token
objects (linked node, attributes and attribute values). Most of the
node state properties and iterating methods are changed to refer to
the token classes (except for value builder availability). Removed
fields which are never used. CompileDTDSubset() is changed in
reflection to nodeType field removal.
- Fixed Depth that should vary in moving between attributes and/or
reading attribute values.
- LineNumber and LinePosition now returns more correct location.
- Fixed Value that should still return true if its value is an empty
attribute value string.
- EntityValue is checked WFC constraints even thoug it is not used.
- All .ctor() now initializes ReadState as Initial.
- Read() should be available for attribute value constructor.
* XmlAttribute.cs : set_InnerXml() now calls reader's Read().
svn path=/trunk/mcs/; revision=18240
* XmlNamespaceManager.cs: PopScope() must retain those namespaces which
are added in the scope before PushScope() was called.
svn path=/trunk/mcs/; revision=18239
* System.Web/HttpRequest.cs: small fix needed when reading big POST
data.
* System.Web.Compilation/CachingCompiler.cs: nothing interesting.
* System.Web.UI/SimpleWebHandlerParser.cs: add the ashx/asmx file
itself to the dependencies so that it's recompiled when changed.
svn path=/trunk/mcs/; revision=18237
* jscript-lexer-parser.g: Build ast for FunctionExpression.
* JSObject.cs: we don't throw NotImplementedException anymore,
this let us use FunctionExpression to build the ast.
* FunctionExpression.cs: Added a FunctionObject as field, a
default constructor.
* FunctionObject.cs: Added default constructor.
svn path=/trunk/mcs/; revision=18229
* XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
lists and removes uses of Hashtable. Results in huge speed gains.
svn path=/trunk/mcs/; revision=18225
* Attribute.cs: Change to struct. Remove QName class.
* GenericOutputter.cs: use an Attribute [] rather than an
ArrayList. Allows us not to allocate Attributes, which is great
for speed. Roll our own allocation.
svn path=/trunk/mcs/; revision=18220
* driver.cs: Deleted the Jsc class. We are not generating code
now. I'm moving to provide something like mcs's EmitContext
instead of the CodeGenerator class having the Reflection.Emit
builders and ILGenerator. This driver is just for Lexical and
Parsing phases testing.
svn path=/trunk/mcs/; revision=18219
* Compiler.cs: add GetNsm to main class as well.
* XslAttribute.cs, XslElement.cs: Allow dynamically parsed names.
svn path=/trunk/mcs/; revision=18217
* Compiler.cs (ParseAvtAttribute): Get the attribue using our
internal version so we get null if the attr doesnt exist.
svn path=/trunk/mcs/; revision=18214
* ASTList.cs, ArrayLiteral.cs, BitwiseBinary.cs, Block.cs,
DebugBreak.cs, Enum.cs, Equality.cs, Eval.cs, ForIn.cs,
FunctionExpression.cs, Import.cs, In.cs, InstanceOf.cs,
Literal.cs, NumericBinary.cs, NumericUnary.cs, Package.cs,
Plus.cs, PostOrPrefixOperator.cs, Print.cs, Relational.cs,
Statement.cs, StrictEquality.cs, StringLiteral.cs, Throw.cs,
Try.cs, TypeOf.cs, VariableDeclaration.cs, With.cs, ast.cs,
: erased Visit method and made some mono indentation style changes.
* CodeGenerator.cs: commented some function calls.
* FunctionDeclaration.cs: moved function attributes to
FunctionObject class, erased Visit method.
* FunctionObject.cs: Here is where we store a function
expression/declaration info, erased Visit method.
* ScriptBlock.cs: Added a Block field, Block will contain the
source elements.
* jscript-lexer-parser.g: updated the grammar to build the program
representation based on ScriptBlock.
svn path=/trunk/mcs/; revision=18202
* Expression.cs: in NodeTypeTest dont throw an exception if it is
an unknown node type (allows for better Pattern debugging)
svn path=/trunk/mcs/; revision=18197
* assembly.c: don't call check_env from mono_assembly_load. It's
already done once in mono_assemblies_init and may cause headaches when
multiple threads are loading assemblies.
svn path=/trunk/mono/; revision=18182
* reflection.c (mono_reflection_define_generic_parameter): Don't
allocate `klass->methods', set `klass->flags' to
TYPE_ATTRIBUTE_INTERFACE, not TYPE_ATTRIBUTE_ABSTRACT.
svn path=/trunk/mono/; revision=18180
* decl.cs (MemberCache.SetupCacheForInterface): Take a
`MemberCache parent' argument. Normally, an interface doesn't
have a parent type except System.Object, but we use this in gmcs
for generic type parameters.
svn path=/trunk/mcs/; revision=18179
* decl.cs (MemberCache.SetupCacheForInterface): Take a
`MemberCache parent' argument. Normally, an interface doesn't
have a parent type except System.Object, but we use this in gmcs
for generic type parameters.
svn path=/trunk/mcs/; revision=18178
* typemanager.cs (TypeHandle.ctor): Set `IsInterface' solely based
on `type.IsInterface'; don't check whether the type has a parent
to determine whether it's an interface.
svn path=/trunk/mcs/; revision=18177
* typemanager.cs (TypeHandle.ctor): Set `IsInterface' solely based
on `type.IsInterface'; don't check whether the type has a parent
to determine whether it's an interface.
svn path=/trunk/mcs/; revision=18176
* class.c (mono_class_init): Don't create `class->methods' if it's
already initialized.
* metadata.c (mono_metadata_load_generic_params): Make this
actually work.
* reflection.c (mono_reflection_define_generic_parameter): Set
parent class and interfaces from the constraints.
* reflection.h (MonoReflectionGenericParam): Added `guint32 flags'
to keep this struct in sync with the declaration in TypeBuilder.cs.
svn path=/trunk/mono/; revision=18169
* ConditionalAttribute.cs: AllowMultiple should be true according
to bug #48598.
----------------------------------------------------------------------
svn path=/trunk/mcs/; revision=18168
* TypeBuilder.cs (TypeBuilder.CreateType): Don't append the type
parameters to the type name; ie. use `Stack' instead of `Stack<T>'.
svn path=/trunk/mcs/; revision=18146
* metadata.h (MonoType): Replaced the data's `int type_param'
field with `MonoGenericParam *generic_param'.
(MonoGenericParam): Added `MonoClass *klass'.
* class.c (mono_class_from_gen_param): Removed the
`MonoImage *image' and `int type_num' arguments.
* metadata.c (mono_metadata_parse_generic_param): New static
method; creates a MonoGenericParam which just contains the index.
(do_mono_metadata_parse_type): Call
mono_metadata_parse_generic_param() for MONO_TYPE_VAR and
MONO_TYPE_MVAR.
* reflection.c (mono_image_typedef_or_ref): Generic type
parameters may be in the same assembly, but never use a typedef
for them.
(mono_reflection_define_generic_parameter): We're now creating a
"real" class for the type parameter; it's now safe to call
mono_class_from_mono_type() on the class'es type, it'll do the
right thing.
svn path=/trunk/mono/; revision=18144
* AllTests.cs: New. Common methods to get DSA/RSA keypairs.
* AsymmetricDecryptionKeyTest.cs: New. Unit tests for AsymmetricDecryptionKey.
* AsymmetricEncryptionKeyTest.cs: New. Unit tests for AsymmetricEncryptionKey.
* AuthenticationKeyTest.cs: New. Unit tests for AuthenticationKey.
* BinarySecurityTokenTest.cs: New. Unit tests for BinarySecurityToken.
* SignatureKeyTest.cs: New. Unit tests for SignatureKey.
* SymmetricDecryptionKeyTest.cs: New. Unit tests for SymmetricDecryptionKey.
* SymmetricEncryptionKeyTest.cs: New. Unit tests for SymmetricEncryptionKey.
* UsernameTokenTest.cs: New. Unit tests for UsernameToken.
* WSSecurityTest.cs: New. Unit tests for WSSecurity.
* XmlEncryptionTest.cs: New. Unit tests for XmlEncryption.
* XmlSignatureTest.cs: New. Unit tests for XmlSignat
svn path=/trunk/mcs/; revision=18143
* Makefile: corrected testing in Windows/Cygwin (from mbas.exe to ./mbas.exe), because it was getting the installed compiler instead of the compiled one
* mb-tokenizer.cs: Redoing: Preprocessor directives must be case-insensitive (many .ToLower() used)
* driver.cs: No more 'linkpaths' option, use 'libpath' instead
svn path=/trunk/mcs/; revision=18134
* mono-debug-debugger.c (allocate_symbol_file_entry): Initialize
`symfile->range_entry_size' and `symfile->class_entry_size' here;
the `symfile' data structure must be fully initialized before it
gets added to the table.
svn path=/trunk/mono/; revision=18130
* GenericOutputter.cs: Output attributes in order recieved; not
required by spec, but useful for running test cases.
svn path=/trunk/mcs/; revision=18119
* cs-parser.jay: Fix grammar wrt. type_parameter_constraints.
* generic.cs (Constraints.Resolve): New public method; this is
called to resolve the constraint types and to check whether all
the constraints are correct.
(Constraints.Types): New public property.
(TypeParameter.Resolve): New public method; resolves all the
type's constraints.
* class.cs (TypeContainer.DefineType): Call
TypeParameter.Resolve() before actually defining the type.
svn path=/trunk/mcs/; revision=18111
* class.cs (TypeContainer.DefineType): Added an error flag to
avoid reporting duplicate CS0146's ("class definition is
circular.").
* driver.cs (Driver.MainDriver): Abort if
RootContext.ResolveTree() reported any errors.
svn path=/trunk/mcs/; revision=18108
* tramp-x86.c (x86_class_init_trampoline): New trampoline function
which calls mono_runtime_class_init and patches the call site to
avoid further calls.
(mono_arch_create_class_init_trampoline): New arch specific function
to create a class init trampoline.
(create_trampoline_code): Generalized so it can create
class init trampolines as well.
* mini.c (helper_sig_class_init_trampoline): New helper variable.
(mono_create_class_init_trampoline): New function to create and cache
class init trampolines.
(mono_find_class_init_trampoline_by_addr): New function to lookup the
vtable given the address of a class init trampoline. Used by the
patching process.
(mono_codegen): Generate a call to a trampoline instead of
mono_runtime_class_init in LDSFLD[A].
(mono_codegen): Add relocations for the new trampoline.
* mini.h mini-x86.c aot.c: Added a new relocation type:
MONO_PATCH_INFO_CLASS_INIT.
* mini.h: Bump AOT version number.
* aot.c: Create a copy of the loaded code instead of using the original
so methods which call each other will be close in memory, improving
cache behaviour.
svn path=/trunk/mono/; revision=18102
* exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
patch since it breaks the regression tests.
svn path=/trunk/mono/; revision=18101
* exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
for the register saving instruction sequence since the
frame_state_for function in glibc 2.3.2 don't seem to detect it.
svn path=/trunk/mono/; revision=18100
* AllTests.cs: New. Common methods to compare DateTimes and longs.
* ReceivedCollectionTest.cs: New. Unit tests for ReceivedCollection.
* ReceivedTest.cs: New. Unit test for Received.
* TimestampFormatExceptionTest.cs: Unit test for TimestampFormatException.
* TimestampInputFilterTest.cs: Unit test for TimestampInputFilter.
* TimestampOutputFilterTest.cs: Unit test for TimestampOutputFilter.
* TimestampTest.cs: Unit test for Timestamp.
* WSTimestampTest.cs: Unit test for WSTimestamp.
svn path=/trunk/mcs/; revision=18095
OperationCollectionTest.cs OperationMessageCollectionTest.cs
OperationMessageTest.cs PortTypeCollectionTest.cs PortTypeTest.cs
ServiceCollectionTest.cs ServiceDescriptionCollectionTest.cs
SoapBodyBindingTest.cs SoapOperationBindingTest.cs TypesTest.cs
New test files by Erik LeBel.
svn path=/trunk/mcs/; revision=18080
OperationMessageCollection.cs PortCollection.cs PortType.cs
PortTypeCollection.cs ServiceCollection.cs ServiceDescriptionCollection.cs
SoapBodyBinding.cs SoapOperationBinding.cs: Several fixes by Erik LeBel
* ServiceDescriptionImporter.cs:
* ServiceDescriptionSerializerBase.cs: regenerated after the changes in
the service description changes.
* ServiceDescriptionReflector.cs: Fixed generation of message parts in
bare format.
svn path=/trunk/mcs/; revision=18079
* TabPage.cs (constructor): added a constructor for constructing tab
pages with a title. Patch from Jonathan Hogg
<[email protected]>.
* EnumConverter.cs (ConvertFrom): Removed the special handling for
multiple values. This is done in Enum.Parse already.
* TypeDescriptor.cs (GetConverter): Does not work for enumeration
types because EnumConverter does not have a default
constructor. Fixed by changing the special handling for
enumeration types.
svn path=/trunk/mcs/; revision=18074
* FloatingPointFormatter.cs: Make the method calls more functional
for protecting the values from different threads (make it more
thread safe).
svn path=/trunk/mcs/; revision=18068
* FloatingPointFormatter.cs: Fix a bug with the negative value of
count parameter.
2003-09-12 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Applied a lot of improvements in string
construction, make use of Append/Insert with the "count" parameter.
Thanks to Ben Maurer.
svn path=/trunk/mcs/; revision=18065
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
in .ctor().
* XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
add Namespaces immediately, but adds at AddMissingElementXmlns so
that we don't have to have extra check than namespaceManager's
LookupPrefix(). 2) Removed writtenAttributes for performance reason
since it is no more required.
svn path=/trunk/mcs/; revision=18063
* aot.c: Moved the check for MONO_LASTAOT into the initialization
function of the module.
* mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
turning on/off the usage of AOT code. Got rid of mono_no_aot and the
--no-aot command line option.
svn path=/trunk/mono/; revision=18052
* FloatingPointFormatter.cs: Applied a lot of improvements in string
construction, make use of Append/Insert with the "count" parameter.
Thanks to Ben Maurer.
svn path=/trunk/mcs/; revision=18049
* CallContext.cs: SetCurrentCallContext now returns the old context, so it
can be later restored with new new method RestoreCallContext().
* ReturnMessage.cs: Some fixes in the way the class deals with output parameters,
to match MS.NET behavior.
svn path=/trunk/mcs/; revision=18040
* inssel.brg: Refactor the interface offset table related code into
its separate functions and add support for the AOT case.
svn path=/trunk/mono/; revision=18034
* profiler.c (mono_profiler_load): Added '-time' and '-alloc' options
to the built-in profiler to turn off time and allocation profiling
respectively.
svn path=/trunk/mono/; revision=18033
* XmlReflectionImporter.cs: Changed nullable default for array items to true.
* XmlSchemaExporter.cs: Some fixes in the generation of encoded format schema.
* XmlSchemaImporter.cs: more support for encoded format.
svn path=/trunk/mcs/; revision=18032
* FloatingPointFormatter.cs: Fix a bug with Custm Format.
* FloatingPointFormatter.cs: Fix a little bug I've introduced the
last change.
svn path=/trunk/mcs/; revision=18023
* aot.c: Added mono_aot_verbose variable and made all debugging
output depend on the value of this variable.
* aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
method_label and info_label.
* mini.h mini-x86.c aot.c: Added a new relocation type
MONO_PATCH_INFO_IID for klass->interface_id.
* mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
the MonoJitInfo structure.
* mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
a non-root appdomain in shared mode.
svn path=/trunk/mono/; revision=18021
* profiler.c (mono_profiler_coverage_alloc): Use NULL instead of
g_direct_equal.
* debug-helpers.c (mono_method_full_name): Print the wrapper type
in human readable form.
svn path=/trunk/mono/; revision=18020
* DoubleFormatter.cs: A few optimizations. Now, only one object
is created to convert all double numbers.
* SingleFormatter.cs: A few optimizations. Now, only one object
is created to convert all float numbers.
* FloatingPointFormatter.cs: Split the "number type parameters" from
the "numver value and format parameters". The first ones are in the
constructor and the others are in a method.
svn path=/trunk/mcs/; revision=18019
parent type if no parent type is specified (this is what PEAPI
does) however if we are assembling corlib the System.Object type
will not have System.Object as its parent type.
svn path=/trunk/mcs/; revision=18009
* Factories.cs (DefaultImplementationNamespace): Change it from
"XrImpl" to "Cairo".
2003-09-08 Duncan Mak <[email protected]>
* gdk-helpers.cs: Remember to call gdk_init before hand.
(gdk_pixbuf_finalize): Removed, as it is no longer available
in the current API.
(Helpers): New class to contain other misc. helper functions.
(Init): Import gdk_init.
(Unref): Import g_object_unref. This should be used in place of
gdk_pixbuf_finalize.
* cairo-api.cs: Updated to reflect recent API changes.
(cairo_copy): New API.
(cairo_surface_put_image): Removed to keep updated with current
API.
(cairo_current_foo): Renamed from the old cairo_get_foo methods.
svn path=/trunk/mcs/; revision=18007
* XmlNamespaceManager.cs : GetEnumerator() should return all of the
available pairs (of prefix and namespace).
* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
of name (or ns) is null. (The description of the immediate previous
changes will be inserted below.)
* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
will release resources it had allocated.
svn path=/trunk/mcs/; revision=17996
* mini.c (mono_print_tree_nl): New function callable while debugging.
* mini.c (mono_print_code): Export this.
* mini.h (MonoCompile): Added 'jit_info' field.
* mini.c (mini_method_compile): Save the generated MonoJitInfo into
the cfg structure, since it is needed by the AOT compiler.
* mini.h (MONO_AOT_FILE_VERSION): Bump version number.
* aot.c: A major rewrite. Changes include:
- save exception tables for methods which have them.
- cache failed lookups in aot_get_method () to avoid the (slow) calls
to g_module_symbol.
- reworked the file format so it is now much smaller and needs
fewer relocation entries.
svn path=/trunk/mono/; revision=17993
* image.c (load_class_names): Use a temporary hash table to hold the
namespaces in order to avoid doing many string comparisons.
* image.h: Fix typo.
* image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
Pass NULL instead of g_direct_equal to the GHashTable constructor
since the NULL case is short-circuited inside g_hash_table_lookup,
leading to better performance.
svn path=/trunk/mono/; revision=17992
* metadata.c (mono_metadata_custom_attrs_from_index): New function to
obtain the first custom attribute for a given index. Depends on the
CustomAttribute table being sorted by the parent field.
* reflection.c (mono_custom_attrs_from_index): Use the new function
for better performance.
svn path=/trunk/mono/; revision=17991
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
svn path=/trunk/mcs/; revision=17988
* Referral.cs: Oops - didn't compile when WSE1 was defined
* ReferralCollection.cs: Oops - didn't compile when WSE1 was defined
svn path=/trunk/mcs/; revision=17984
* report.cs (Error, Warning): Added overloaded versions which take
a `params object[] args' and call String.Format().
svn path=/trunk/mcs/; revision=17977
* decl.cs (DeclSpace..ctor): Don't call
NamespaceEntry.DefineName() here; do it in RecordDecl() which is
called from Tree.RecordDecl(). Fixes the CS0101 reporting.
(DeclSpace.RecordDecl): New method.
* tree.cs (Tree.RecordDecl): Call ds.RecordDecl().
svn path=/trunk/mcs/; revision=17976
* class.c (mono_class_init): If we're a generic instance, inflate
all our methods instead of loading them from the image.
(mono_class_from_generic): Set `class->methods = gklass->methods'.
svn path=/trunk/mono/; revision=17970
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
svn path=/trunk/mcs/; revision=17962
* DefaultContext.cs, Expresssion.cs, Parser.jay: Rewrite so that
system functions are actually expressions. Will allow for some
nice optimizations.
svn path=/trunk/mcs/; revision=17947
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
svn path=/trunk/mcs/; revision=17940
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly.
svn path=/trunk/mcs/; revision=17897
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
svn path=/trunk/mcs/; revision=17894
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.
* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.
* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.
* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.
svn path=/trunk/mcs/; revision=17885
* decl.cs (DeclSpace.LookupGeneric): New method.
(DeclSpace.CheckAccessLevel): Ignore generic parameters for the
moment.
* generic.cs (TypeParameterExpr): Take a TypeParameter as
argument, not just a string.
(TypeParameter.Define): New public method; this is called to
actually define the generic parameter; after this, you can use the
new `Type' property to get the type.
svn path=/trunk/mcs/; revision=17881
* decl.cs (DeclSpace.SetParameterInfo): The `constraints' argument
is now an ArrayList; initialize the result of the `TypeParameters'
property here.
(DeclSpace.GetGenericData): Removed.
(DeclSpace.LookupGeneric): Temporarily removed; we need to
implement this in a different way.
(DeclSpace.GetTypeParameters): Removed; there's now a
`TypeParameters' property.
(DeclSpace.TypeParameters): New public property.
* ecore.cs (SimpleName.ResolveAsTypeStep): Removed the generic
lookup for the moment.
* generic.cs (Constraints): Make this class public.
(TypeParameter): New public class.
svn path=/trunk/mcs/; revision=17874
* decl.cs (DeclSpace.GetTypeParameters): New method to return the
generic parameters.
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameter () on all generic parameters if
this is a generic type.
svn path=/trunk/mcs/; revision=17873
* metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.
* reflection.h (MonoReflectionGenericParam): New typedef.
(MonoReflectionTypeBuilder): Added `num_generic_params' and
`generic_params' fields to get the generic parameters from the
managed TypeBuilder.
* reflection.c (mono_reflection_define_generic_parameter): New function.
(mono_reflection_create_runtime_class): Encode generic parameters.
(mono_reflection_setup_generic_class): New function; this is
called after adding adding all generic params to the TypeBuilder.
(encode_type): Added MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=17871
* TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
method. We can now create generic types.
(TypeBuilder.GetGenericTypeDefinition): Override this; call the
`setup_internal_class' interncall before calling our base impl.
svn path=/trunk/mcs/; revision=17870
* aot.c: Move AOT module loading logic here from mono_assembly_open.
* aot.c: Save the optimization flags used to compile the code into
the AOT module.
* mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
support emitting domain specific code.
* mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
no longer domain neutral. It can be made domain neutral by compiling
with --optimize=shared.
* aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
between appdomains.
* driver.c mini.h mini.c: New --no-aot debugging option which disables
loading of AOT code.
* inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
svn path=/trunk/mono/; revision=17867
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
if there is no domain neutrality information.
svn path=/trunk/mono/; revision=17866
* class.h class.c (mono_class_needs_cctor_run): Moved this method
here from the JIT.
* assembly.h assembly.c: Moved the AOT loading code into an assembly
load hook.
svn path=/trunk/mono/; revision=17865
* ServiceDescriptionImporter.cs: initial implementation.
* ServiceDescriptionReflector.cs: Added support for bare parameter style.
Added support for encoded format.
svn path=/trunk/mcs/; revision=17855
* reflection.h reflection.c class.h class.c: Delete duplicate
definition of mono_type_get_name () from reflection.c and export the
one in class.c.
* class.c: Class loading fixes from Bernie Solomon
([email protected]).
svn path=/trunk/mono/; revision=17841
* class.cs (MethodCore.LabelParameters): Make static and more
generic so that it can be used from other places - like interface
methods, for instance.
* interface.cs (Interface.Emit): Call LabelParameters before
emitting attributes on the InterfaceMethod.
svn path=/trunk/mcs/; revision=17833
* attribute.cs (CheckAttributeTarget): Ensure that we allow return
value attributes to be applied to ParameterBuilders.
svn path=/trunk/mcs/; revision=17831
* AssemblyInfo.cs: Updated version to 0.26.99 (all tools).
* cert2spc.cs: Updated to use Mono.Security.X509.
* chktrust.cs: Tool to validate Authenticode(tm) signatures on PE
files (including assemblies).
* signcode.cs: Tool to sign and timestamp PE files using
Authenticode(tm) compatible certificates.
* README: Updated to include a small tutorial on how to use
Authenticode(tm) to sign/verify assemblies.
* Makefile: Updated to build chktrust.exe and signcode.exe
svn path=/trunk/mcs/; revision=17813
* ITrustAnchors.cs: New. Interface to trust anchors.
* TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
(for Windows compatibility) and Mono Test Root.
* TrustAnchors.cs: New. Include some widely used (commercial) code
signing root certificates.
* X509CertificateCollection.cs: New. Collection for Mono's X509
certificates.
* X509Chain.cs: New. MINIMAL certificate chaining engine to support
Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!
svn path=/trunk/mcs/; revision=17811
* AuthenticodeBase.cs: New. Base class including how to hash a
PE file.
* AuthenticodeDeformatter.cs: New. Class to decode Authenticode(tm)
signatures.
* AuthenticodeFormatter.cs: New. Class to encode a Authenticode(tm)
signature, and optionally a timestamp, into a PE file.
* SoftwarePublisherCertificate.cs: Now use Mono.Security.X509.
X509Certificate class.
svn path=/trunk/mcs/; revision=17810
* Encoding.cs (UTF8Unmarked): make it also not error out on
invalid input, that is what the Microsoft default is for the
StreamReader and BinaryReader expect (our main consumers).
svn path=/trunk/mcs/; revision=17807
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17800
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17799
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17798
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17796
- New questions & answers
- revised answers for compatibility questions
- moved some questions to more sensible categories (e.g. VB questions moved
to "Compatibility" section, away from "Mono & Microsoft").
- Spelling Fixes
Alas, all my editors (gedit & gvim) "fixed" the spelling of some names,
probably because those editors assume UTF-8 encoding... This was seen for
Carlos Perell�� and Lluis S��nchez.
svn path=/trunk/mono/; revision=17780
* win32functions.cs: Added GetUpdateRect function.
* Control.cs: Make sure to call OnPaint even if UserPaint style is not
enabled. Get the appropriate DC for WM_PAINT operations.
svn path=/trunk/mcs/; revision=17769
* interp.c: Use mono_field_from_token () in the appropriate places.
This simplifies the code and also fixes#48051.
svn path=/trunk/mono/; revision=17752
* icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
(ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
Avoid caching the result since strings must be domain specific. Fixes
#48050.
svn path=/trunk/mono/; revision=17743
* mini.c (mini_init): Call mono_marshal_init () explicitly since it
is needed by code which is executed before mono_runtime_init ().
Thanks to Bernie Solomon ([email protected]) for noticing this.
svn path=/trunk/mono/; revision=17727
* marshal.c (mono_marshal_init): Make this callable multiple times
since it is hard to find a correct place to call it.
svn path=/trunk/mono/; revision=17726
* object.c (mono_runtime_class_init): Execute static constructors in
the correct appdomain.
* image.c (build_guid_table): Handle the case when multiple images have
the same GUID.
svn path=/trunk/mono/; revision=17725
* HttpApplication.cs: ensure we do all the EndRequest steps. Don't
filter the output on error.
* HttpResponse.cs: modified DoFilter to allow bypassing filtering.
svn path=/trunk/mcs/; revision=17713
* inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
* cpu-pentium.md: Fix the length of call opcodes so they include the
ESP restoring instruction. Fixes#47968.
svn path=/trunk/mono/; revision=17700
* icall.c (ves_icall_Type_BindGenericParameters): Use
`klass->generic_inst' instead of `&klass->byval_arg' in the
mono_type_get_object() call. The returned type must be
MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.
svn path=/trunk/mono/; revision=17698
* critical-sections.c: Patch from Bernie Solomon <[email protected]> to emit a warning if locking a critical section fails.
svn path=/trunk/mono/; revision=17697
* OperationMessage.cs: Added default value attribute for Name property.
* ServiceDescription.cs: Changed order of some properties, so they are
serialized in the right order.
Added GetNamespaceList(), which returns the namespaces to add when serializing
the document.
Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
that extends the XmlSerializer by adding suport for XmlFormatExtensions.
* ServiceDescriptionReflector.cs: Basic implementation (no support for
extensions yet).
* SoapBinding.cs: Fixed namespace name.
* SoapBodyBinding.cs: Added null check in PartsString property.
* SoapOperationBinding.cs: Fixed namespace name.
svn path=/trunk/mcs/; revision=17693
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
and OutputMembersMapping properties in MethodStubInfo.
Use default value defined in TypeStubInfo for RequestNamespace,
ResponseNamespace and other properties.
Added class BindingInfo to store information about class bindings.
In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
Bindings properties.
* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
instead of hardcoded namespace name.
* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
documentation requests.
* SoapDocumentationHandler.cs: new handler that generates WS documentation.
svn path=/trunk/mcs/; revision=17692
* XmlSchemas.cs: Find method: make sure the returned object belongs to
the requested type.
* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
Add null checks for eventSource.
* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
* XmlSerializationWriter.cs: In Initialize method, initialize the provided
namespece declarations. Virtual method WriteObject not needed any more.
In WriteStartElement, write the provided namespaces.
* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
Added GetTypeMap method, that returns the map for a given type. Added some
virtual methods, so writer behavior can be extended at several places by
derived classes.
* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
methods CreateReader and CreateWriter are not called unless no type or
type mapping was provided in the constructor.
svn path=/trunk/mcs/; revision=17690
* mini-x86.c (mono_arch_call_opcode): Added support for
MONO_TYPE_GENERICINST.
* mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=17682
* cs-parser.jay (opt_type_argument_list): Use
`OP_GENERICS_LT type_arguments OP_GENERICS_GT'.
(primary_expression): Replace `qualified_identifier' with `type_name'.
(type_parameter_list): Use `OP_GENERICS_LT type_parameters OP_GENERICS_GT'.
* cs-tokenizer.cs (is_punct): When reading a `<', invoke a custom
parser to check whether it is syntactically a type parameter list;
return OP_GENERICS_LT/OP_GENERICS_GT instead of OP_LT/OP_GT in
this case.
svn path=/trunk/mcs/; revision=17675
* Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
a JIT. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17670
* interp.c (main): Fix the order of initialization calls so it maches
the order in the JIT.Patch by Bernie Solomon ([email protected]).
Also remove the unused ms mutex.
svn path=/trunk/mono/; revision=17669
* object.c appdomain.h: Get rid of metadata_section.
It is no longer needed and it was causing deadlocks with domain->lock.
* appdomain.c (add_assemblies_to_domain): Make it thread safe.
svn path=/trunk/mono/; revision=17661
* System.Web/HttpApplication.cs: when the request is completed or an
error happens, execute all the delegates attached to EndRequest, not
only the last one. This makes xsp/test/authtest work again.
* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
status code.
* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
status code.
* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.
svn path=/trunk/mcs/; revision=17655
* statement.cs (Using.DoResolve): This is internally emitting a
try/finally clause, so we need to set ec.NeedExplicitReturn if we
do not always return. Fixes#47681.
svn path=/trunk/mcs/; revision=17634
* mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
when reporting an error, set this to the actual error location.
(mono_method_to_ir): Report the correct error location if
get_basic_blocks() returned an error.
svn path=/trunk/mono/; revision=17630
* decl.cs (MemberCore): Moved WarningNotHiding(),
Error_CannotChangeAccessModifiers() and CheckMethodAgainstBase()
into MemberBase.
(AdditionResult): Make this nested in DeclSpace.
(DeclSpace.ctor): The .ctor now takes an additional NamespaceEntry
argument; call NamespaceEntry.Define() unless we're nested in a
class or struct.
* namespace.cs (Namespace.DefineName): New public function. This
is called from DeclSpace's .ctor to add
(Namespace.Lookup): Include DeclSpaces in the lookup.
* class.cs (Operator): Derive from MemberBase, not MemberCore.
* const.cs (Const): Derive from MemberBase, not MemberCore.
svn path=/trunk/mcs/; revision=17627
* mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
to remap hashtable values during a copying collection. Not used at the
moment.
* mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
in the common case.
* mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
the key function even if the client supplied g_direct_equal instead of
NULL.
svn path=/trunk/mono/; revision=17624
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
* System.Web.UI.WebControls/CheckBox.cs: in LoadPostData, only return
true when the new data is different from the one we had. Fixed
conditions to save Checked state. Thanks to [email protected]
(Yaron Shkop).
* System.Web.UI/Page.cs: check if controls that require postback have
been changed by an event and register them to be notified of data
changed event.
Fixes bug #47869.
svn path=/trunk/mcs/; revision=17621
* assembly.c: Reworked assembly loading to make it really thread safe.
After these changes, the assembly returned by mono_assembly_open is
fully initialized, i.e. all its references assemblies are loaded.
* assembly.c (mono_image_load_references): Renamed to
mono_assembly_load_references, and made private, since clients no
longer need to call it.
* class.c: Removed calls to mono_assembly_load_references, since it was
a source of deadlocks.
* loader.h loader.c class.h class.c: Protect data structures using a
new lock, the loader lock.
* class.c (mono_class_setup_vtable): Create temporary hash tables and
GPtrArrays only when needed.
* class.c (mono_class_layout_fields): Ignore the dummy field inserted
into empty structures by mcs. Fixes pinvoke7.cs.
* domain.c (mono_init): Call a new initialization function.
svn path=/trunk/mono/; revision=17617
* appdomain.c (mono_runtime_init): Call the new initializer function
of the marshal module.
* marshal.c (mono_marshal_load_type_info): Ignore the dummy field
inserted into empty structures by mono. Fixes pinvoke7.cs.
* marshal.h marshal.c: Added locks around the wrapper caches to make
this module thread safe.
svn path=/trunk/mono/; revision=17616
* XPathNavigator.cs: "Smart" behavior in Matches. Nice 8x speed
improvement in the method (5ms/call -> .7 ms / call) measured by
monodoc's rendering of N:System.
* Expression.cs: Utility methods to support above.
svn path=/trunk/mcs/; revision=17596
* convert.cs (Convert.ExplicitReferenceConversion): When
converting from an interface type to a class, unbox if the target
type is a struct type. Fixes#47822.
svn path=/trunk/mcs/; revision=17588
enumeration of values. Removed fields to store remote call output values in
MonoAsyncResult. Not needed any more.
* object.c: Initialize call_type and async_result fields in mono_message_init.
* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
dispatching the message.
mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
async call to finish. To do it use a message with EndInvoke call type.
svn path=/trunk/mono/; revision=17580
* CallContext.cs: Clean current logical context before setting the new
values form LogicalCallContext (SetCurrentCallContext).
* MonoMethodMessage.cs: Added new CallType field and enum.
* StackBuilderSink.cs: Improved error message.
svn path=/trunk/mcs/; revision=17578
* mini.c (mono_type_blittable): OBJECT is not blittable.
(mono_method_blittable): Methods which have marshalling descriptors
are not blittable either. Fixes#47842.
svn path=/trunk/mono/; revision=17573
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
ValidationType.Schema. Added support for XmlResolver. Fixed
ReadTypedValue() not to consume EndElement.
svn path=/trunk/mcs/; revision=17561
* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
(e.g. RC4) which don't uses IV. This needs more tests for small IV...
svn path=/trunk/mcs/; revision=17551
* System.Drawing.dll.sources: Add Cairo implementation.
2003-08-24 Duncan Mak <[email protected]>
Initial checkin of System.Drawing.XrImpl ported to use Cairo.
* Graphics.cs (DrawCurve):
(DrawImageUnscaled):
(IsVisible):Implement the overloads in terms of the other overloads.
(FillClosedCurve): Implement the simple APIs, the default tension
is 0.5, the default FillMode is FillMode.Alternate.
* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
assembly, with some method parameter/return type changed to better
fit the usage within System.Drawing.
* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
basically the same as XrImpl's GDKfunctions.cs, but the names of
the functions are nicer, with the help of the DllImportAttribute's
EntryPoint field.
svn path=/trunk/mcs/; revision=17546
* HttpRequest.cs: quick way of checking that the path is within the
root for the application. Thanks to Johannes for reporting.
* HttpRuntime.cs: use the status code from teh exception when it'ss a
HttpException.
* StaticFileHandler.cs: forbidden is 403.
svn path=/trunk/mcs/; revision=17525
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test a bit more to fix#47654.
svn path=/trunk/mcs/; revision=17523
* get.c (dis_stringify_method_signature): New argument specifying
whenever to return a fully qualified method name.
* dump.c main.c: Updated to work with the new function.
* main.c (dis_property_methods): Print fully qualified method names
for property methods. Fixes#46221.
svn path=/trunk/mono/; revision=17519
to MS.NET).
Removed try/catch from AsyncProcessRequest. If there is an exception it must
flow to the caller.
in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
throws an exception if the result code is 400, 500. Is is not a communication
error, but an application or server error. The content of the body must be
deserialized like in normal responses.
In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
efficient way of writing the content.
In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
* HttpHelper.cs: Removed some debugging code that is not needed.
* HttpServer.cs: Improved formatting of some code.
In CheckRequest method, send a 100-continue response if the request has
the header: expect:100-continue.
Method SendResponse: the remoting formatter may include the result code and
reason phrase to use in the transport headers. Used them if provided.
* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
a request.
svn path=/trunk/mcs/; revision=17515
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
* SoapServerFormatterSink.cs: Improved catching of exceptions.
svn path=/trunk/mcs/; revision=17511
to avoid reuse of client proxies.
* CallSeq.cs: Now, "domain ID" is set manually.
* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
* ReflectionCalls.cs: Get the method for the invoke for the correct type.
GetType() for a proxy to interface always return MarshalByRefObject.
* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
* DelegateCalls.cs: New test suite for calls using delegates.
svn path=/trunk/mcs/; revision=17507
The following two fixes bug #40315.
* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.
* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful. Patch from
J�rg Rosenkranz <[email protected]>.
* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.
svn path=/trunk/mcs/; revision=17498
* expression.cs (UnaryMutator.ResolveVariable): If the target is a
LocalVariableReference, ensure it's not read-only. Fixes#47536.
* statement.cs (Fixed.DoResolve): Make all variables read-only.
svn path=/trunk/mcs/; revision=17494
* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
can only be assigned in static constructors. Fixes#47161.
svn path=/trunk/mcs/; revision=17493
Rewrote and improved the flow analysis code.
* flowbranching.cs (FlowBranching): Make this class abstract.
(FlowBranching.CreateBranching): New static function to create a
new flow branching.
(FlowBranchingBlock, FlowBranchingException): New classes.
(FlowBranching.UsageVector.Type): New public readonly field.
(FlowBranching.UsageVector.Breaks): Removed the setter.
(FlowBranching.UsageVector.Returns): Removed the setter.
(FlowBranching.UsageVector): Added Break(), Return(),
NeverReachable() and Throw() methods to modify the reachability.
(FlowBranching.UsageVector.MergeChildren): Removed, this is now
done by FlowBranching.Merge().
(FlowBranching.UsageVector.MergeChild): New method; merges the
merge result into the current vector.
(FlowBranching.Merge): New abstract method to merge a branching.
svn path=/trunk/mcs/; revision=17491
* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
support for tree fragment, not only for single element.
svn path=/trunk/mcs/; revision=17476
* inssel.brg: 64bit fixes from Laurent Morichetti <[email protected]>.
* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
regalloc.c, regalloc.h: specify available registers in arch-specific
code and support floats in the regallocator (patch by Laurent Morichetti
<[email protected]>)
svn path=/trunk/mono/; revision=17474
* object.c (mono_object_isinst): Fix casts to TransparentProxy in
the interpreter. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17467
* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.
svn path=/trunk/mcs/; revision=17466
* rawbuffer.c rawbuffer.h: Make this module thread safe.
* domain.c: Make this module thread safe.
* domain.c (mono_init): Call new initialization function.
svn path=/trunk/mono/; revision=17465
* image.c (mono_image_init): Fixed warnings.
* class.c (mono_class_from_typeref): Handle assembly load failure
correctly.
* appdomain.c (add_assemblies_to_domain): Handle the case when
the references of an assembly are not yet loaded.
* metadata.c image.c assembly.c: Moved initialization of global
variables to a separate function called at startup since lazy
initialization of these variables is not thread safe.
* image.c assembly.c: Made this module thread safe by adding locks in
the appropriate places.
* domain.c (mono_init): Call the new initialization functions of the
three modules.
svn path=/trunk/mono/; revision=17458
* mini.c: mono_thread_current() can be called only after
mono_runtime_init(): rearrange code to not call it early on.
svn path=/trunk/mono/; revision=17448
make a direct call. It is proxy's work to make the call asynchronous.
mono_delegate_end_invoke(): If the targe is a proxy, just collect
the return values.
* object.cs: mono_method_call_message_new(): read AsyncResult and
state object from parameters list, if this info is requested.
* object.h: Added fields to store remote call output values in
MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
svn path=/trunk/mono/; revision=17446
TcpCalls.cs: new test suite for remoting. It tests sync calls, async calls
and reflection calls using tcp and http channels.
* CallSeq.cs, ContextHookAttribute.cs: Add methods for getting a context and
domain ids that are the same between tests runs.
* ContextsTest.cs: unregister channel on test shutdown.
svn path=/trunk/mcs/; revision=17441
* object.h: add needed fields to MonoThread.
* threads.c, threads.h: allow registering a function to cleanup data
allocated per thread by the JIT.
svn path=/trunk/mono/; revision=17437
* FieldDef.cs: Stub method for adding data values
* TypeDef.cs: Implement long form overrides, fix some backwords
variable naming, add a method to lookup data definitions.
svn path=/trunk/mcs/; revision=17434
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.
This patch fixes this problem. This closes bug #47429.
svn path=/trunk/mcs/; revision=17431
* Hashtable.cs (PutImpl): Fix my previous checkin, see details
posted on bug #47692.
I really hope I don't mess up this time, because, if I do again,
it will be really embarrassing.
svn path=/trunk/mcs/; revision=17430
* ControlCollection.cs:
* EmptyControlCollection.cs: create a minimum ArrayList for this.
* BaseParser.cs: added setter for BaseVirtualDir.
* Page.cs: fixed message when restoring view state fails.
* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
when a relative path to the control is given. Fixes bug #47685.
svn path=/trunk/mcs/; revision=17424
* Style.cs: the MARKED bit is not send set in ViewState unless something
is changed. Fixed TrackViewState condition.
* WebControl.cs: save the base ViewState *after* ControlStyle is done,
because it uses the same ViewState as the control. Fixes bug #47725.
svn path=/trunk/mcs/; revision=17421
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
svn path=/trunk/mcs/; revision=17414
* Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
won't have default namespace. See http://www.w3.org/TR/xslt#qname
svn path=/trunk/mcs/; revision=17412
* XslTransformProcessor.cs: add support for resolving documents.
* XsltCompiledContext: add support for document () function.
svn path=/trunk/mcs/; revision=17410
* Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
of the abstract methods in Outputter, making them call other
functions with default values, remove impl's in derived classes.
svn path=/trunk/mcs/; revision=17407
* Outputter.cs: s/Close/Done
* TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
* XslTransformProcessor.cs: Flush output when popping, pop at end.
svn path=/trunk/mcs/; revision=17406
* Outputter.cs: Add support for namespaces.
* XslCopyOf.cs, XslLiteralElement: Use namespace support in Outputter.
svn path=/trunk/mcs/; revision=17405
* Compiler.cs, XslOutput.cs, XslStylesheet.cs,
XslTransformProcessor.cs: move output logic from XslStylesheet to
Compiler.
* XslVariable.cs: sync to API changes
* ManagedXslTransform.cs: sync to API changes
svn path=/trunk/mcs/; revision=17404
* XslOutput.cs: add support for encoding.
* ManagedXslTransform.cs, XslTransformImpl.cs: Add support for
encoding.
svn path=/trunk/mcs/; revision=17395
* MethodDef.cs: Make some properties public, Add method to get a
list of parameter types. This is used to build signatures. Alow
sentinels in signatures and in param lists. Fix some tabbing.
* ParamDef.cs: Expose the parameters type so they can be used when
building signatures.
* TypeDef.cs: Add and emit overrides.
svn path=/trunk/mcs/; revision=17391
* HttpException.cs: make the unhandled error more like the MS one.
* HttpRuntime.cs: set a 500 error code on unhandled exceptions.
svn path=/trunk/mcs/; revision=17390
* HttpResponse.cs: flush headers when the body length is 0.
* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
modified from the original by Piers Haken <[email protected]>.
svn path=/trunk/mcs/; revision=17387
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
svn path=/trunk/mcs/; revision=17385
* XmlTextWriter.cs: Begin diet. String.Format has too much
saturated fat, lets replace with the fat-free .Write ()
calls. Effects best seen when Paolo's StreamWriter patch is
applied.
svn path=/trunk/mcs/; revision=17384
* Control.cs: when we load the viewstate for a control that has children
viewstates and the child is not found, keep its viewstate around and
wait until the child is added to load the viewstate. Fixes bug #47697.
svn path=/trunk/mcs/; revision=17381
* interp.c: Get rid of duplicate definition of CHECK_MUL_OVERFLOW.
* interp.h interp.c: Get rid of VAL_VALUETA, use VAL_MP instead. Fix
the INITOBJ opcode which was the only user of VALUETA.
svn path=/trunk/mono/; revision=17380
Currently Hashtable.PutImpl has an incorrect test which causes the
key chain search to terminate as soon as a free slot is found,
causing key duplication.
svn path=/trunk/mcs/; revision=17376
* XslComment.cs, XslTemplateContent.cs: remove dead variables.
* XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
from the stylesheet for correct namespace resolution.
* XslTransformImpl.cs: close XmlTextWriter when we create it.
svn path=/trunk/mcs/; revision=17374
* reflection.h reflection.c (mono_param_get_objects): Changed this to
return a MonoArray. This simplifies the code and also ensures that
the cache allways contains an object reference as a value.
* icall.c (ves_icall_get_parameter_info): Simplified using the new
function.
svn path=/trunk/mono/; revision=17367
* interp.c (ves_exec_method): Implemented mul.ovf correctly for int32
and int64. Implemented the conv.ovf opcodes for all argument types.
2003-08-15 Zoltan Varga <[email protected]>
(ves_exec_method): Added support for the synchronized flag to the
interpreter. Also fixed the CALLI opcode, and made exception handling
work though the managed-unmanaged barrier.
svn path=/trunk/mono/; revision=17366
* HyperLinkColumn.cs: patch from David Pickens <[email protected]>
that fixes databinding when only DataTextField or DataNavigateUrlField
is set.
svn path=/trunk/mcs/; revision=17365
* socket-io.c: patch by Bernie Solomon <[email protected]> that
fixes a problem with byte ordering when getting the address family for
a socket.
svn path=/trunk/mono/; revision=17364
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
svn path=/trunk/mcs/; revision=17363
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
svn path=/trunk/mono/; revision=17360
* reflection.h reflection.c loader.c: Added support for parameter
marshalling to dynamically created types. Fixes#47295.
svn path=/trunk/mono/; revision=17356
* Report.cs: New file - All error/warning/progress reporting will
go through here.
* ilasm.exe.sources: Add report to build
svn path=/trunk/mcs/; revision=17353
* HttpResponse.cs: another patch from totte and me. This one prevents
writing output if the client have disconnected and filters the data
when there's a non-final Flush in the middle of the process.
svn path=/trunk/mcs/; revision=17343
ContextLevelActivator.cs, RemoteActivationAttribute.cs,
RemoteActivator.cs: Changed class from public to internal.
svn path=/trunk/mcs/; revision=17336
* ListControl.cs: patch by Yaacov Akiba Slama <[email protected]> that
fixes selection of values before assigning a data source and other
issues.
svn path=/trunk/mcs/; revision=17333
2003-07-17 Peter Williams <[email protected]>
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=17331
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
svn path=/trunk/mcs/; revision=17330
* DTMXPathDocument.cs,
DTMXPathDocumentBuilder.cs,
DTMXPathNavigator.cs :
- Implemented ID support using XmlValidatingReader.
- Prefix should be String.Empty even if XmlReader.Prefix is null.
svn path=/trunk/mcs/; revision=17328
* Compiler.cs : 1) Changed public .ctor() to receive Evidence argument
introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.
svn path=/trunk/mcs/; revision=17324
* XslApplyTemplates.cs,
XslCallTemplate.cs : Should accept other than element content such
as comment and PI.
* XslNumber.cs : In Compile(), 'value' might not exist. (Think about
it later if how it should be.)
* XslTemplateContent.cs : "comment" and "number" support. (I know they
are still incomplete.)
svn path=/trunk/mcs/; revision=17323
* mb-parser.jay: ReDim statement parses many variables now (but initializers aren't allowed)
Erase statement implemented
Lots of garbage (never reduced rules) deleted
Reduce/Reduce problems eliminated (where due to having opt_modifiers duplicated inside property_declaration rule)
* statement.cs : class Redim is prepared to have ReDim Preserve copying code called,
but we need to check if that code is lying in Microsoft.VisualBasic.dll
New class Erase
svn path=/trunk/mcs/; revision=17309
* expression.cs (Indirection.CacheTemporaries): Create the
LocalTemporary with the pointer type, not its element type.
svn path=/trunk/mcs/; revision=17301
name (Cairo) is the same as the class name (also Cairo). To resolve
this ambiguity while keeping the code looking decent, the Cairo.Cairo
class is now Cairo.CairoAPI.
svn path=/trunk/mcs/; revision=17295
the enums no longer need to be nested inside the Cairo class.
* Mono.Cairo/Matrix.cs:
* Mono.Cairo/Object.cs:
* Mono.Cairo/Surface.cs: I never liked having the word 'Object' in
the name of a class, esp. now that we have namespaces. So I have
decided to rename them.
svn path=/trunk/mcs/; revision=17284
* HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
overload. The previous one only admits static methods.
svn path=/trunk/mcs/; revision=17267
* threadpool.c: when mono_async_invoke was called, no one took care of
monitoring the queue. So if the method invoked took some time and we
got new async invoke requests after 500 ms (the thread created waited
that long in WaitForSingleObject), the new async invoke was not called
until the previous one finished.
This is fixed now. Thanks to Totte for helping with it.
svn path=/trunk/mono/; revision=17266
* UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
call until a datagram is arrives from the remote host. This
removes the 512 "magic" buffer size when we did not have any data.
svn path=/trunk/mcs/; revision=17237
* Array.cs: Applied patch from Thong (Tum) Nguyen; Removed
replicated tests, and have a routine that does the heavy lifting.
2003-08-10 Miguel de Icaza <[email protected]>
* ArrayTest.cs: New test from Thong (Tum) Nguyen.
svn path=/trunk/mcs/; revision=17236
* ModifiableType.cs: Modify a types signature when the type is
modified instead of waiting untill the end. Signatures need to be
modified immediatly because they are used in method signatures and
would fail for overloaded operations if sigs weren't modified
right away.
* ExternTypeRef.cs: Add signature modifications, fix some tabbing
* GenericTypeInst.cs: Use ModifiableType as a base
* GenericTypeRef.cs: Use ModifiableType as a base
* PeapiTypeRef.cs: No longer take or modify type names.
* PrimitiveTypeRef.cs: Add signature modifications, fix some tabbing.
* Sentinel.cs: Add signature modifications, fix some tabbing.
* TypeRef.cs: Add signature modifications, fix some tabbing.
svn path=/trunk/mcs/; revision=17231
* cs-parser.jay: FIRST_KEYWORD, LAST_KEYWORD: used to know if a
token was a keyword or not.
Add `error' options where an IDENTIFIER was expected; Provide
CheckToken and CheckIdentifierToken convenience error reporting
functions.
Do not use `DeclSpace.Namespace', use `DeclSpace.NamespaceEntry'.
* decl.cs: Rename `NamespaceEntry Namespace' public field into
NameSpaceEntry NameSpaceEntry.
(LookupInterfaceOrClass): Avoid creating a full qualified name
from namespace and name: avoid doing lookups when we know the
namespace is non-existant. Use new Tree.LookupByNamespace which
looks up DeclSpaces based on their namespace, name pair.
* driver.cs: Provide a new `parser verbose' to display the
exception thrown during parsing. This is turned off by default
now, so the output of a failure from mcs is more graceful.
* namespace.cs: Track all the namespaces defined in a hashtable
for quick lookup.
(IsNamespace): New method
svn path=/trunk/mcs/; revision=17230
* DTDObjectModel.cs : added XmlResolver related members. Added
invalid entity recursion logic. Added encodingdecl check on textdecl.
* DTDValidatingReader.cs : It now implements IHasXmlParserContext.
* XmlChar.cs : IsPubidChar() should not allow TAB(	).
* XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
to receive DTDObjectModel to support other than XmlTextReader.
2) Most of its public member is now based on DTDObjectModel.
* XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2) ReadNode() now considers XmlParserContext's DTDObjectModel for
other than XmlTextReader (such as XmlValidatingReader).
* XmlNode.cs : code cleanup only.
* XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
* XmlTextReader.cs : 1) Illegal entity reference check logic was moved
from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
change on ReadEntityReference(). 3) ReadAttribute() now checks
reference to external entity reference. 4) Added textdecl encoding
check. 5) DTDObjectModel fields are now set correctly. 6) added
PERef markup nest check. 7) If PEDecl was not found, it might be WFC
violation, not only be VC violation. 8) ReadEntityDecl() now receives
its declared entity itself, and this method checks IsInternalSubset.
* XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2) ValidationType.None should be the same as Auto, not DTD (in the
future it should keep xml schema's default values).
Pending Stuff in XmlTextReader which breaks some NUnit tests;
1) SetEntityReferenceProperies() has check for illegal references.
2) ReadAttribute(bool) has similar check for illegal references.
svn path=/trunk/mcs/; revision=17218
* namespace.cs: Remove redundant call; Avoid using MakeFQN when
we know that we need to concatenate (full typename can never be
null).
* class.cs: ditto.
svn path=/trunk/mcs/; revision=17205
* XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
and supplied SkipWhitespace() as they needed. It broke monodoc.
Fixed ReadEntityValueDecl() to get correct value.
svn path=/trunk/mcs/; revision=17203
* XmlInputStream.cs :
Fixed Initialize() that might result in incorrect buffer.
CanRead and Position should consider buffer (especially when the
stream was EOF).
CanSeek should use stream's CanSeek.
* XmlChar.cs : added GetPredefinedEntity().
* DTDObjectModel.cs :
- Modified ComputeDefaultValue() to use it.
- Fixed NormalizedDefaultValue not to expect parsed value as string.
- ResolveExternalEntity now detects invalid standalone specification.
- DTDParameterEntityDeclaration.Value is now changed to property and
keep its resolved value of literal value of external value using
new Resolve (XmlResolver) method (called only by XmlTextReader).
* DTDValidatingReader.cs :
- It now handles entity-expanded Whitespace and SignificantWhitespace
correctly. Does not raise unexpected text not allowed error.
- Fixed MoveToAttribute()s to move internal reader correctly, and
should be able to move in other cases than on element node.
- On Read()ing document type and ResolveEntity(), it now sets
XmlResolver on text reader.
- On ID constraints check and type verification, it now uses
normalized attribute or its tokenized value(s).
- Fixed ValidateAttributes() to add default values when
ValidationType is Auto.
* XmlParserContext.cs : added internal Dtd setter.
* XmlParserInput.cs :
InsertParameterEntityBuffer() should add surrounding whitespaces.
Removed unused code block.
* XmlTextReader.cs :
- Modified ReadReference(), ReadAttribute() and Dereference() to use
XmlChar.GetPredefinedEntity().
- When returning entity reference, it checks extity declaration
existence in certain conditions.
- ReadAttribute() now skips general entity replacement on reading
entity value.
- ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
- ReadXmlDeclaration() holds isStandalone, which might be used in
entity reference's well-formedness check.
- internal 'DTD' now uses XmlParserContext.Dtd.
- isInternalSubset was meaningless. Now uses input stack's Count.
- Added some required SkipWhitespace().
- Several parameter entity handling changes. Added GetPEValue(name).
TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
now uses its Resolve() when it was external PE. Now it uses value
buffer instead of currentTag, to efficiently read (included) PE.
CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
ImportAsPERef() simply inserts the value to currentInput.
ReadEntityDecl() also uses value buffer. Removed non-used methods.
- Default attributes are now stored in normalized form.
- Dereference() now considers non-expanding predefined entities.
* XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
is more correctly supported.
* XmlAttributeCollection.cs :
When removing default attribute, it immediately inserts the attribute.
RemoveAll() should consider default (not-removable) attributes.
* XmlDocument.cs :
Should have its default XmlResolver. Added Internal Resolver.
Some Load() should use its XmlResolver.
ImportNode() should copy its children in node level, not value level.
It also have to consider not to copy default attribute on importing
XmlElement.
* XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
* XmlAttribute.cs,
XmlDocumentFragment.cs.
XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
* XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
ResolveEntity() uses XmlResolver on entityReader.
svn path=/trunk/mcs/; revision=17202
* cs-parser.jay: bug fix, parameter was 4, not 3.
* expression.cs: Just use the property;
* statement.cs: No need for GetVariableInfo method.
svn path=/trunk/mcs/; revision=17199
the return type of a method. Since parameter positions are
zero-based, the position of the return type must be is -1.
svn path=/trunk/mcs/; revision=17192
* TypeTranslator.cs: Added support for more primitive types. Added
GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
maps by default.
* XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
are different from the type ns and name.
Generate class and field comments.
Fixed default attribute generation. In elements with ref attribute, it has to be
generated in the referred attribute.
* XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
Added suport for text nodes in members of type "any".
* XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
content.
* XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
* XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
that have already been declared.
WriteStartElement(): elements from schema namespace are always written with ns prefix.
* XmlTypeMapMember.cs: Added documentation property.
* XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
represents a simple type.
svn path=/trunk/mcs/; revision=17175
* flowanalysis.cs (FlowReturns): This is now nested in the
`FlowBranching' class.
(MyBitVector): Moved this here from statement.cs.
(FlowBranching.SiblingType): New enum type.
(FlowBranching.CreateSibling): Added `SiblingType' argument.
svn path=/trunk/mcs/; revision=17172
a given id is a C# keyword, and returns the same if if it is not,
or @id if it is a keyword. This method is used everywhere
a name is rendered.
svn path=/trunk/mcs/; revision=17168
* DTDObjectModel.cs :
- Added validation error check (and AddError(), Errors).
- Fixed ComputeDefaultValue() to handle various references correctly.
- DTDEntityDeclaration.EntityValue became property, and added
LiteralEntityValue. The new one holds resolved value.
Added ResolveExternalEntity(). It now required root in .ctor().
* DTDValidatingReader.cs :
- Now it handles namespaced attributes (as input to xsd validator).
- Added XmlResolver property as usual XmlReader.
- Added currentEntityHandling field so that it can stand changing
XmlValidatingReader's EntityHandling dynamically.
- FilterNormalization() now requires name for getting datatypes and
can stand for non-current attribute normalization.
- Splitted ReadContent() from Read() that can be called recursively
when expanding entities.
- Now handles Entity not found error *after* resolution of entities,
as MS.NET does.
- Read()ing DTD checks its Errors and raises validation error events.
In some situations, DTD parsing may detect VC error, not WFC error.
It also strictly checks NData existence.
- Handling of entity-resolved text is a bit changed and Read()ing
element, endElement, cdata now changed to switch collecting text
and collected text.
- content type ANY should allow texts.
- Added enumerated attribute validity check.
- Added Name/Names creation rule check for ID/IDREF/IDREFS.
- Added entity existence check for ENTITY/ENTITIES attributes.
- Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
- Fixed to remove extraneous #REQUIRED check.
- Contributing default attribute is now only applied to the case
ValidationType is DTD or None.
- ResolveEntity() now handles external entities.
Added Mono.Xml.IXmlParserContext interface support.
* XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
* XmlTextReader.cs :
- Fixed ReadAttributeValue() to reset returnEntityReference.
- Added bool MaybeTextDecl only for ResolveEntity().
- Fixed ReadWhitespace(). In fact its value is considered even if it
is in the end of the XML.
- Fixed ReadXmlDeclaration(). Now skips text declaration.
- CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
- ReadContentSpec() should set OrderType = OR for mixed model.
Fixed to set content element name correctly.
- ImportAsPERef() now skips Text declaration.
- Type of enumerated default attributes shold be string.
- Undeclared PE error is now handled as DTD's VC error, not
XmlTextReader's WFC error.
* XmlValidatingReader.cs : BaseURI should provide that of
original XmlReader's when read was not started yet.
Fixed XmlResolver to delegate to DTDValidatingReader.
* XmlAttributeCollection.cs : Acquiring attList declaration is
insufficient especially in case of lack of elementdecl.
* XmlChar.cs : (Maybe this is compact than XmlConstructs.)
added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
* XmlInputStream.cs : Removed "version" declaration check. It should
be done by XmlTextReader.
* XmlNodeReader.cs : added internal GetInternalParserContext() and now
it can be used in XmlValidatingReader.ResolveEntity().
ResolveEntity() sets XmlTextReader.MaybeTextDecl.
svn path=/trunk/mcs/; revision=17167
* flowanalysis.cs (FlowBranchingType): This is now nested in the
`FlowBranching' class and called `BranchingType'.
svn path=/trunk/mcs/; revision=17163
* assign.cs (Assign.DoResolve): `target' must either be an
IAssignMethod or an EventAccess; report a CS0131 otherwise. Fixes
#37319.
svn path=/trunk/mcs/; revision=17160
* XslTransformProcessor.cs: Add a table to detect when an object
is busy.
* XslAttributeSet.cs: Use the above table. Dont throw nullref
exception when no use-attribute-sets are specified.
svn path=/trunk/mcs/; revision=17159
* expression.cs (BinaryMethod): This kind of expression is created by the
Binary class if it determines that the operator has to be handled
by a method.
(BinaryDelegate): This kind of expression is created if we are
dealing with a + or - operator on delegates.
(Binary): remove method, argumetns, and DelegateOperator: when
dealing with methods,
* ecore.cs (EventExpr.EmitAddOrRemove): Update to new layout.
* statement.cs (Block): use bitfields for the three extra booleans
we had in use. Remove unused topblock parameter.
* codegen.cs: Remove unecessary argument to Block.EmitTopBlock
* assign.cs: Drop extra unneeded tests.
svn path=/trunk/mcs/; revision=17153
corresponding explicit interface implmentations.
* wine/Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* wine/Bitmap.cs:
* wine/Image.cs: Reformatted.
svn path=/trunk/mcs/; revision=17152
commented out. Added missing methods that were in
System.Drawing.Image but not the interface.
* ItfBitmap.cs: Reformatted.
* Image.cs: Reformatted. Make all methods defined in the interface
non-public, and expose them only as explicit interface implementations.
* Graphics.cs (FromImage): cast xrImage to IImage.
* Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* Image.cs: Reformatted.
* Graphics.cs (DrawImage): Cast wineImage to IImage before calling
interface properties.
svn path=/trunk/mcs/; revision=17148
* iterators.cs (Mapvariable): provide a mechanism to use prefixes.
* statement.cs (Foreach): Use VariableStorage instead of
LocalBuilders.
* codegen.cs (VariableStorage): New class used by clients that
require a variable stored: locals or fields for variables that
need to live across yield.
Maybe provide a convenience api for EmitThis+EmitLoad?
svn path=/trunk/mcs/; revision=17108
* CryptoStream.cs: Closing bug #40689. The Write method was re-written.
* SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
test) and corrected a bug in FinalDecrypt.
* RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
and 1.1.
svn path=/trunk/mcs/; revision=17090
* codegen.cs (RemapLocal, RemapLocalLValue, RemapParameter,
RemapParameterLValue): New methods that are used to turn a
precomputed FieldInfo into an expression like this:
instance.FieldInfo
The idea is to use this instead of making LocalVariableReference
have more than one meaning.
* cs-parser.jay: Add error production to BASE.
* ecore.cs: Deal with TypeManager.GetField returning null, which
is now a valid return value.
(FieldExprNoAddress): New expression for Fields whose address can
not be taken.
* expression.cs (LocalVariableReference): During the resolve
phases, create new expressions if we are in a remapping context.
Remove code that dealt with remapping here.
(ParameterReference): same.
(ProxyInstance): New expression, like the `This' expression, but
it is born fully resolved. We know what we are doing, so remove
the errors that are targeted to user-provided uses of `this'.
* statement.cs (Foreach): our variable is now stored as an
Expression; During resolution, follow the protocol, dont just
assume it will return this.
svn path=/trunk/mcs/; revision=17087
* mono-debug-debugger.c: Don't store the MonoString's vtable to
make this work for applications with multiple application domains.
svn path=/trunk/mono/; revision=17085
* StrongNameMembershipCondition.cs:
* UrlMembershipCondition.cs: (FromXml): Throw exceptions when the
headers do not match.
svn path=/trunk/mcs/; revision=17083
* StreamReader.cs (DiscardBufferedData): Do the same like on the
ms runtime: just discard the buffered data, but don't modify the
BaseStream.Position.
svn path=/trunk/mcs/; revision=17081
* support.cs (SeekableStreamReader.cs): New public class.
* cs-tokenizer.cs, cs-parser.jay, driver.cs: Use the new
SeekableStreamReader instead of the normal StreamReader.
svn path=/trunk/mcs/; revision=17080
stuff.
* SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
* TypeData.cs: Added property that returns a TypeData that represents an array of
the given TypeData.
* TypeTranslator.cs: Added GetArrayName() method.
Added TypeDatas for missing primitive types.
* XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
XmlRootAttribute. Added the namespace to all attributes being generated.
Other fixes in the generation of code.
* XmlReflectionImporter: store the namespace of the type in the maps.
* XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
class can generate text. Do not export inherited attributes of a class.
Use the new root namespace stored in the map when generating the root element.
* XmlSerializationWriter: Always write a prefix when writing a qname, even if the
namespace is the default namespace.
* XmlSerializationWriterInterpreter.cs: fixed missing "else".
* XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
namespace instead of the map namespace (which can be different if the type
has a XmlRoot element).
* XmlTypeMapMember.cs: Set the default value of the DefaultValue property
to System.DBNull.Value.
* XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
the collection if it has not yet been created.
* XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
of the type. It may be different from the namespace of the map if the type
has a XmlRoot element. Also added IsSimpleType property.
In ClassMap, added AllMembers property.
svn path=/trunk/mcs/; revision=17075
In Compile(): ignore included schemas that do not have a value
in SchemaLocation. It means that FindElement can return null
if the referred schema was ignored. Added check for that case.
Compile schema after reading it.
* XmlSchemaCollection.cs: The targetNamespace of a schema may
be null. Make XmlSchemaCollection work for this case.
* BuiltInDataType.cs, XmlSchemaDataType.cs: added new primitive
types: float, base64Binary, boolean.
svn path=/trunk/mcs/; revision=17074
* XmlReaderCommonTests.cs : Its XmlValidatingReader.EntityHandling
should be ExpandCharEntities.
* XmlValidatingReaderTests.cs : added ResolveEntity(),
ResolveEntity2() and ResolveEntityWithoutDTD().
svn path=/trunk/mcs/; revision=17073
* DTDValidatingReader.cs :
Added full ExpandEntities support for text node and entity reference
node (although require many usage tests). Almost all methods and
properties now have currentTextValue != null check, that field means
that there are cached (entity-resolved) text.
Implemented default attribute aware XmlLang and XmlSpace.
* XmlNodeReader.cs : ResolveEntity() should not require DTD.
svn path=/trunk/mcs/; revision=17072
Demakov <[email protected]> to fix formatting for Big power of 10
floating point values. This fixes bug #46175.
* FloatingPointFormatterTest.cs: New file. Added with one test by
Aleksey Demakov <[email protected]>.
svn path=/trunk/mcs/; revision=17057
* cs-parser.jay (CLOSE_PARENS_CAST, CLOSE_PARENS_NO_CAST,
CLOSE_PARENS_OPEN_PARENS, CLOSE_PARENS_MINUS): New tokens to
deambiguate casts and delegate invocations.
(parenthesized_expression): Use the new tokens to ensure this is
not a cast of method invocation.
* cs-tokenizer.cs (is_punct): Return one of the new special tokens
when reading a `)' and Deambiguate_CloseParens () was previously
called.
* expression.cs (ParenthesizedExpression): New class. This is
just used for the CS0075 test.
(Binary.DoResolve): Check for CS0075.
svn path=/trunk/mcs/; revision=17052
* mono-debug-debugger.c: Completely reworked the type support; the
most important thing is that we're now just using one single
`MonoType' instance per type.
svn path=/trunk/mono/; revision=17049
* ExternTypeRef.cs: Add functionality for valuetypes
* MethodDef.cs: Handle Vararg signatures individually. Fixes for
new Sentinel type in vararg signatures
* MethodRef.cs: Use new SentinelTypeRef instead of Sentinel type
ref constant.
* ParamDef.cs: New method to check if this parameter is the sentinel
* TypeRef.cs: Add some functionality for creating valuetypes
* Sentinel.cs: New type represents the sentinel
svn path=/trunk/mcs/; revision=17042
* Compiler.cs: Add method LocalNameOf, to get the local name of a
string.
* XslTransformProcessor.cs: Support for setting the XmlResolver.
* XslElement.cs, XslAttribute.cs: Better support for namespaces.
* XslAvt.cs: When precalculating, if the AVT is null (ie, the
attribute was not specified), just return null, that will be the
result.
* ManagedXslTransform.cs: use the resolver given.
svn path=/trunk/mcs/; revision=17040
* ArrayList.cs: added / so that gvim syntax highlight doesn't go crazy.
* CollectionBase.cs: fixed several bugs reported by Carlos Barcenilla
([email protected]). Most of the patch is also his.
svn path=/trunk/mcs/; revision=17036
types use LabelInfos for label references now.
* BranchInstr.cs: Take a LabelInfo instead of information on a label.
* HandlerBlock.cs: Take a LabelInfo instead of information on a label.
* MethodDef.cs: Return LabelInfo from AddLabel methods. New method for
adding a reference to a label.
svn path=/trunk/mcs/; revision=17022
* DTDObjectModel.cs : Added BaseURI (but not used yet).
DTDAttListDeclaration.ctro() now requires root dtd object model.
* DTDValidatingReader.cs : Read() now expands EntityReference if
entity handling of validating reader is ExpandEntities.
* XmlReader.cs,
XmlTextReader.cs,
XmlNodeReader.cs,
XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
ReadOuterXml which are modified in MS.NET 1.1.
* XmlConstructs.cs : added int version of IsValid, IsInvalid,
IsContent, IsMarkup and IsNCNameStart.
Fixed int version of IsXXX() to check array index range.
Added IsValidName (string).
* XmlTextReader.cs :
- Read() handles document with non document element as an error.
- ReadText() and ReadCharacterReference() checkes illegal characters.
- ReadEntityReference() checks name validity.
- ReadProcessingInstruction() rejects such name that starts with
"xml" ignoring case, and checks attributes more strictly.
- ReadDeclaration() rejects unrecognized kind of declaration.
- In many places, added "required whitespace" check in DTD markup.
- DTD content model now disallows mixing use of '|' and ','.
svn path=/trunk/mcs/; revision=17012
* MethodDef.cs: Less elegant but more bugfree method of doing explicit
offsets for labels. Just put the offset labels in another list and
define them in another loop.
svn path=/trunk/mcs/; revision=17007
needed so the call conv can be modified for the newobj operation which
is implicitly instance.
* ExternMethodRef.cs: Expose call conv. Don't resolve vararg methods
more then once.
* GlobalMethodRef.cs: Expose call conv
* TypeSpecMethodRef.cs: Expose call conv
* MethodInstr.cs: For newobj operations set the call conv to instance
svn path=/trunk/mcs/; revision=17005
shift the words of a float64 value on ARM.
* icall.c: new icall ves_icall_System_Double_AssertEndianity to utilise
above macro.
svn path=/trunk/mono/; revision=17002
* XmlDocumentFragment.cs : I missed to add it in relation to the
previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
* XmlNodeReader.cs : removed some TODO attributes.
* DTDValidatingReader.cs,
XmlValidatingReader.cs : Implemented ResolveEntity().
svn path=/trunk/mcs/; revision=17001
* XmlSchema.cs :
- Changed missingElementTypeRefs from Hashtable to ArrayList.
- Added internal XmlSchemas for keeping imported schemas.
- Added private Compile() that takes the original rootSchema and
schema location stack for nested inclusion check.
- Added basic xs:import and xs:include support.
- Compile() is now aware of included XmlSchemaObject items.
- Changed Compile() to fill missing elements' types and that of
referencing elements.
- Read() now adds SourceUri property (although only to itself).
* XmlSchemaCollection.cs : Implemented Add().
* XmlSchemaCollectionEnumerator.cs :
Changed .ctor() to use schema collection as its argument.
Fixed Current to return hashtable's Value, instead of Current
(which returns DictionaryEntry).
* XmlSchemaComplexType.cs :
Added internal static AnyType.
Compile() is now searches for its base type into other schemas.
* XmlSchemaElement.cs : anyType is supported.
It now searches for type information after Compile().
SetReferedElementInfo() is now changed to SetSchemaType().
* XmlSchemaObjectTable.cs :
It had problems similar to schema collection. Now it uses internal
class XmlSchemaObjectTableEnumerator to support GetEnumerator().
* XmlSchemaParticle.cs : added internal class XmlSchemaParticleEmpty
and internal static Empty.
svn path=/trunk/mcs/; revision=17000
the site name.
* IsolatedStorageInfo.cs (CreateAssemblyFilename):
(CreateDomainFilename): Replace String.Format with Path.Combine.
svn path=/trunk/mcs/; revision=16967
NET_1_1.
* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.
svn path=/trunk/mcs/; revision=16966
* Compiler.cs: Add support for key, utility function to parse
QName's from the XsltContext. Store keys in the CompiledStyle, not
in the Stylesheet.
* XslKey.cs: Real implementation
* XslStylesheet.cs: Move the keys to CompiledStyle.
* XsltCompiledContext.cs: Implement the key function
* Iterator.cs: Allow creation of an EnumeratorIterator with an
XmlNamespaceManager
svn path=/trunk/mcs/; revision=16959
* unicode.c (ves_icall_System_Char_IsPunctuation): The set of
classes that are a punctuation character in .NET is not the same a
g_unichar_ispunct.
svn path=/trunk/mono/; revision=16958
* CryptoStreamTest.cs: New. Very basic test for CryptoStream + the
test case from bugzilla #46143 from Joerg Rosenkranz.
* RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
different from .NET 1.0 and 1.1.
svn path=/trunk/mcs/; revision=16954
* Parser.jay:
Nested predicates (uses ExprFilter instead)
more type safety
make grammar look more like w3c spec
* Expression.cs:
remove ExprStep, ExprPredicates
NodeTest is now a NodeSet
more type-safety
* Iterator.cs:
PredicateIterator now only takes a single predicate expression
more type-safety
* XPathNavigator.cs:
simplified SelectTest
* XPathException.cs:
fixed indenting
svn path=/trunk/mcs/; revision=16953
* XmlParserContext.cs,
XmlAttribute.cs,
XmlElement.cs : Added internal Dtd and new internal XmlParserContext
.ctor() that takes DTDObjectModel. And then rewrote classes which
uses DTD information. Changed DocTypeName, InternalSubset, PublicId
and SystemId to use DTDObjectModel.
* DTDObjectModel.cs :
Added DTDObjectModel.InternalSubsetHasPEReference.
Added DTDEntityDeclaration.IsInternalSubset.
* XmlTextReader.cs :
Added internal GetInternalParserContext (to build entity reader).
Added private isIntSubset to check if the DTD subset is internal or
external, which might affect well-formedness constraints.
Changed GenerateDTDObjectModel to return the resulting DTD model.
* XmlEntityReference.cs : implemented BaseURI.
* XmlNodeReader.cs :
- Implemented ResolveEntity() and CanResolveEntity(). In fact
it leads too many changes on almost all methods and properties,
since they now must be aware of entityReader.
- fixed ownerElement that might be used to return from attribute
value to the element through parent attribtues.
- Now changed indexer to call GetAttribute() and moved actual logic
to the matching GetAttribute() methods.
svn path=/trunk/mcs/; revision=16946
* XslVariable.cs: Add IsEvaluated.
* Compiler.cs: To resolve a variable you now need to pass the
processor, so that it can be passed to IsEvaluated. A local will
only be resolved if it has already been evaluated.
* XsltCompiledContext.cs: Pass along the processor.
svn path=/trunk/mcs/; revision=16942
* configure.in, etc.: portability fixes and support for
buidling outside the srcdir from Laurent Morichetti <[email protected]>.
svn path=/trunk/mono/; revision=16937
* ManagedXslTransform.cs: Hold reference to CompiledStyle, not the
XslTransformProcessor. Will help with thread safty.
* Compiler.cs, XslTemplate.cs, XslTransformProcessor.cs: Store
variable values in the XslTransformProcessor.
* XsltCompiledContext.cs: If the scope is null, don't look there!
* Debug.cs: New method Assert
* XslApplyTemplates.cs, XslCallTemplate.cs, XslCompiledElement.cs,
XslTemplateContent.cs, XslVariable.cs:
Store variable values in the XslTransformProcessor
svn path=/trunk/mcs/; revision=16917
(GetStore): Update storage_scope accordingly.
(GetUseStoreForAssembly): Include IsolatedStorageScope.User.
(GetUseStoreForDomain): Include IsolatedStorageScope.User and
IsolatedStorageScope.Assembly.
* IsolatedStorage.cs:
(CurrentSize):
(MaximumSize): throw InvalidOperationExceptions. This is a
subclass responsibility.
(Scope): Implemented using a static field, storage_scope.
(SeparatorInternal)
(SeparatorExternal): Implemented. Use Path.DirectorySeparatorChar
for SeparatorExternal.
svn path=/trunk/mcs/; revision=16915
* CryptoStream.cs: Fixed bug #46143 (exception) - however we dont
returns the same result as MS. Class needs to be re-written.
svn path=/trunk/mcs/; revision=16908
a TypeData without a Type. Added ListItemTypeData property.
* XmlTypeMapping.cs: Added property for checking if a ListMap represents an
array of arrays. Added also a property to get the nested array map.
* XmlCodeExporter.cs: First implementation of code exporter.
svn path=/trunk/mcs/; revision=16901
* AssemblyInfo.cs: Updated version to 0.25.99 (all tools).
* MakeCert.cs: Added support for Extended Key Usage (-eku).
It's now possible to create SSL certificate with the tool.
svn path=/trunk/mcs/; revision=16897
* Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
mini-sparc.h, tramp-sparc.c: Beginning of sparc support
from Mark Crichton <[email protected]> and Christopher Taylor
([email protected]).
svn path=/trunk/mono/; revision=16892
* UserControl.cs: Added attribute
* BasePartialCachingControl.cs: New class and paritally implemented
* DesignerDataBoundLiteralControl.cs: New class and implemented
* DesignTimeTemplateParser.cs:
* PartialCachingControl.cs:
* StaticPartialCachingControl.cs: New class and paritally implemented
svn path=/trunk/mcs/; revision=16883
* IntPtrStream.cs (Read): Use correct offset here; Change the
code to use a byte* instead of an IntPtr to reduce the number of
casts used.
svn path=/trunk/mcs/; revision=16858
* expression.cs (Invocation.MakeUnionSet): Patch from Lluis
Sanchez : use TypeManager.ArrayContainsMethod instead of a direct
reference comparison.
(TypeManager.ArrayContainsMethod): When we have a MethodInfo, also
examine the ReturnType for equality - this is necessary in the
cases of implicit and explicit operators whose signature also
includes the return type.
svn path=/trunk/mcs/; revision=16857
* conv-lib.cs: New Multi stage compilation test for bug #47043.
* conv-main.cs: Main for the above.
* Makefile: Update.
svn path=/trunk/mcs/; revision=16856
* ArrayList.cs: Deployed ArrayList from Tum; Fixed iterator to
allow nulls, and inline a few calls to make profiling more useful.
svn path=/trunk/mcs/; revision=16849
* IntPtrStream.cs (Read): Use Marshal.Copy instead of the now
deprecated MemCopy.
(IntPtrStream): New stream implementation, it maps to a region in
memory.
svn path=/trunk/mcs/; revision=16846
* icall.c: Add new MemCopy internalcall.
(ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
Simplified code; It is not necessary to handle all the cases here,
as the C# code takes care of it. Only handle the case of the name
resource embedded into the assembly.
Changed signature to return the data pointer and the size of the
data.
2003-07-26 Miguel de Icaza <[email protected]>
* reflection.c (mono_image_get_method_info): Allow for 0x40 to be
encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
svn path=/trunk/mono/; revision=16843
doesn't have the mehod, look at the parent of the parent.
* object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
to check if a parameter is an in or out parameter
(PARAM_ATTRIBUTE_IN is not set by default).
mono_method_return_message_restore(): Use mono_class_value_size to
get the size of a value type. mono_type_stack_size (parameterType)
does not return the correct value if parameterType is byRef.
mono_load_remote_field(), mono_load_remote_field_new(),
mono_store_remote_field(), mono_store_remote_field_new():
raise exception if the remote call returns an exception.
svn path=/trunk/mono/; revision=16837
* Type.cs, MonoType.cs, ArgIterator.cs: pass the handles values
to icalls, to avoid special cases in some call conventions.
svn path=/trunk/mcs/; revision=16832
makes it easier to create filters using braces, labels, or offsets
* HandlerBlock.cs: Allow handler blocks to be created using positions,
offsets, and labels.
* MethodDef.cs: Add methods to create labels all 3 ways, and emit
labels created by each of the methods.
* TryBlock.cs: Use a handler block instead of label strings. This
allows all three methods of label creation to be used.
svn path=/trunk/mcs/; revision=16828
2003-07-26 Miguel de Icaza <[email protected]>
* namespace.cs: Cache the result of the namespace computation,
instead of computing it every time.
2003-07-24 Miguel de Icaza <[email protected]>
* decl.cs: Use a global arraylist that we reuse over invocations
to avoid excesive memory consumption. Reduces memory usage on an
mcs compile by one meg (45 average).
* typemanager.cs (LookupTypeReflection): In .NET pointers are
private, work around that.
2003-07-23 Miguel de Icaza <[email protected]>
* literal.cs (IntLiteral): Define Zero and One static literals.
* cs-parser.jay (integer_literal): use static literals to reduce
memory usage for the most used literals (0, 1 and -1). 211kb
reduced in memory usage.
Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16808
* DefaultContext.cs: count() should return a double
* Expression.cs: better support for handling non-double numbers
svn path=/trunk/mcs/; revision=16799
grammar changes
2003-07-28 Miguel de Icaza <[email protected]>
* codegen.cs: Compute IsGeneric correctly.
* cs-parser.jay: Introduce OP_GENERIC_LT for the grammar ambiguity
resolution.
Bring back (temporarily) OP_LEFT_SHIFT, OP_RIGHT_SHIFT,
OP_SHIFT_RIGHT_ASSIGN, OP_SHIFT_LEFT_ASSIGN. There were too many
regressions, and I was chasing more bugs than I required.
* interface.cs: Use expressions for base type names (like classes
and structs have been doing for a while now), and resolve that.
This patch should probably go into head as well.
This makes it one less user of FindType.
svn path=/trunk/mcs/; revision=16794
* UnionCodeGroup.cs:
* Url.cs: Added to CVS, basic functionality implemented, except
for CreateIdentityPermission (Site, Url) and the Resolve methods
in UnionCodeGroup.
svn path=/trunk/mcs/; revision=16789
* expression.cs (Invocation.OverloadResolve): Fix the algorithm to
handle params methods the correct way by forming only one
applicable set with params and normal methods in them. Earlier we
were looking at params methods only if we found no normal methods
which was not the correct thing to do.
(Invocation.BetterFunction): Take separate arguments indicating
when candidate and the best method are params methods in their
expanded form.
This fixes bugs #43367 and #46199.
svn path=/trunk/mcs/; revision=16788
* System.Xml.dll.sources: Add new files
* XslTransform.cs: Use the new XslTransformImpl class
* XslTransformImpl.cs: An abstract class for Xsl transforms
* UnmanagedXslTransform.cs: Contains the code that was in
XslTransform.cs
svn path=/trunk/mcs/; revision=16786
* DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
attribute declaration should be got independently of elementdecl.
* XmlAttribute.cs :
Added internal SetDefault() to mark as default.
Removed InnerText implementation that is just the same as XmlNode.
* XmlDocument.cs : id shouldn't be removed from table at 'trying' to
get matching elements. ReadAttributeNode() now sets default mark.
* XmlElement.cs : WriteTo() should ignore default attributes.
* XmlTextWriter.cs : shuold allow valid name char such as digits.
svn path=/trunk/mcs/; revision=16783
* class.cs (TypeContainer.DefineMembers): Use the base type's full
name when looking up the base class of a nested class. Fixes#46977.
svn path=/trunk/mcs/; revision=16782
* mono-debug-debugger.c (mono_debugger_runtime_invoke): New
method. This is a wrapper around mono_runtime_invoke() which
boxes the instance object if neccessary.
svn path=/trunk/mono/; revision=16779
* cs0075.cs: This test case was incorrect; according to the spec,
`(double) -1' is allowed since `double' is a builtin type.
However, `(A) -1' is not allowed where `A' is a valuetype and has
an implicit conversion from int.
svn path=/trunk/mcs/; revision=16776
* cs-parser.jay: Solve the abiguities with casts; fixes bugs
#46923 and #35459.
(CAST_FOLLOWING_TOKEN, NO_CAST_FOLLOWING_TOKEN): New tokens;
they're returned by the tokenizer in some cases to resolve
ambiguities with casts.
(invocation_expression): Tell the tokenizer to check whether the
following token may follow a cast.
(cast_expression): A cast is only a cast if it's followed by a
token which may actually follow a cast.
* expression.cs (ParenthesizedExpression): New class.
(Binary.DoResolve): Fix#35459.
svn path=/trunk/mcs/; revision=16774
* XmlDsigC14NTransformTest.cs: Corrected test for .NET 1.1 (that was a
bug in .NET 1.0). There are no more unit test failures on Windows.
svn path=/trunk/mcs/; revision=16773
fixes the problem with ilasm creating blank files if their is a
failure in the parsing phase.
* ExternTable.cs: Do not reference the assemblies untill after the
PEFile untill the Resolve phase.
svn path=/trunk/mcs/; revision=16765
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16764
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16761
* XmlQualifiedName.cs : fields should never be null
* Expression.cs:
* Tokenizer.cs:
don't pass null to XmlQualifiedName constructor
* XsltArgumentList.cs:
fix type conversions in ValidateParam
allow creating params with null namespaceUri
svn path=/trunk/mcs/; revision=16753
* jscript-lexer-parser.g: Changed the namespace to
Microsoft.JScript.Tmp.
* jscript-lexer-parser.g: Fixwd a typo at source_elements rule.
* jscript-lexer-parser.g: Got the name of a
global_function_declaration and also its return type if
available.
* jscript-lexer-parser.g: Added syntatic rule for print_statement.
* jscript-lexer-parser.g: Initial construction of AST for
enum_statement and package_statement.
* jscript-lexer-parser.g: Fixed the enum_statement to accept
empty enum declarations.
* jscript-lexer-parser.g: Got the type of a
veriable_declaration.
* jscript-lexer-parser.g: Initial construction of AST for
primary_expression (in particular literal).
svn path=/trunk/mcs/; revision=16738
* driver.cs: Modified the driver structure to be compatible
with our new CodeGenrator and SemanticAnalizer. I
removed the builders from Reflection.Emit to the
CodeGenerator. Added an ASTList, SemanticAnalizer and
CodeGenerator here. Adde methods Run, GenerateCode
svn path=/trunk/mcs/; revision=16737
* Decided to change temporarly namespace name
Microsoft.JScript to Microsoft.JScript.Tmp in order to be able
to run the code generated by our CIL code generator (on next
commit will come). The problem is that we don't have the
runtime support for our compiler, this involve VsaEngine class
and its "friends", which I have not found a lot of
doumentation for. If someone knows a docs place for them,
don't hesitate to send me a email pointing to them.
* Changed from public to internal Visit function at some
classes.
* Package.cs: Added Name and Members fields.
* SemanticAnalizer.cs: Added methods VisitPrint and
VisitStringLiteral.
* VariableDeclaration.cs: Added Type field.
* Visitor.cs: Changed from public to internal. Added
VisitPrint and VisitStringLiteral methods.
* VsaEngine.cs: Fixed namespace name from Microsoft.JScript to
Microsoft.JScript.Vsa and then to Microsoft.JScript.Vsa.Tmp.
svn path=/trunk/mcs/; revision=16731
for OwnerElement.IsRooted to fix the build..
* SoapServices.cs (XmlNsForClrTypeWithNsAndAssembly):
Fixed typo. It's 'Ns', but 'Ms'.
svn path=/trunk/mcs/; revision=16721
* DTDValidatingReader.cs :
- Added ID support in ValidateAttributes().
- More refined ReadAttributeValue() support for non-expanding entity
situation
- It should handle LocalName, Name, Prefix, NamespaceURI and Value
correctly when the reader is on each of the value nodes of an
attribute. Now XmlDocument.ReadNode() should work well.
* XmlDocument.cs :
- added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
RemoveIdenticalAttribute()
- Implemented GetAttributeById().
* XmlAttributeCollection.cs :
- added private ownerDocument property and replaced
ownerElement.OwnerDocument with it.
- Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
It calls XmlDocument.{Add|Remove}IdenticalAttribute().
- Added RemoveIdenticalAttribute() and it is used in Remove().
(I also added AddIdenticalAttribute() but is not used.)
svn path=/trunk/mcs/; revision=16717
* XmlDocumentType.cs :
modified private DTD to dtd and added internal DTD (the same thing).
* XmlElement.cs :
Fixed SetAttributeNode() to check if specified attribute is already
set to the other element. In fact it is W3C DOM's specification but
MS.NET 1.0 failed to catch it.
* XmlTextReader.cs :
ReadAttributeValue() should check if the value of the attribute is
already read when the whole value is entity reference.
Also, Name of text nodes should be "", not "#text"
svn path=/trunk/mcs/; revision=16716
* BuiltInDatatype.cs : XsdIDRefs.ParseValue () should be implemented.
* XmlSchemaDatatype.cs : public Whitespace and protected Normalize()
should be internal.
svn path=/trunk/mcs/; revision=16715
* error-6.cs: New test for bug #46907.
* Makefile.am (test-multi-local): Run the multi-test tests.
(all-local): Run run-test-local and test-multi-local.
svn path=/trunk/mcs/; revision=16711
* expression.cs (Indexers.Indexer): New nested struct; contains
getter, setter and the indexer's type.
(Indexers.Properties): This is now an ArrayList of
Indexers.Indexer's.
(IndexerAccess.DoResolveLValue): Correctly set the type if the
indexer doesn't have any getters.
* assign.cs (Assign.DoResolve): Also do the implicit conversions
for embedded property and indexer assignments.
svn path=/trunk/mcs/; revision=16709
* cs-tokenizer.cs (Tokenizer.xtoken): Report a CS1040 if a
preprocessor directive is not the first non-whitespace character
on a line.
svn path=/trunk/mcs/; revision=16707
* namespace.cs (NamespaceEntry.Lookup): New method; rewrote the
namespace parsing, follow the spec more closely.
* rootcontext.cs (RootContext.NamespaceLookup): Use the new
NamespaceEntry.Lookup().
svn path=/trunk/mcs/; revision=16706
* FormatterServices.cs:
(GetSerializableMembers): check that all base types are serializable
when getting their fields. Fixes bug #46875.
svn path=/trunk/mcs/; revision=16705
* XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
with http://www.w3.org/XML/1998/namespace.
* XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
* XmlNode.cs : InnerText should handle CDATA and whitespaces.
* XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
* XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
attributes (as MS.NET does). It isn't good way and I may change it.
svn path=/trunk/mcs/; revision=16702
a toplevel 'make run-test' doesn't recurse through all the directories twice
(once to make test, once to run-test).
svn path=/trunk/mcs/; revision=16692
* expression.cs (Invocation.OverloadResolve): Perform the check
which disallows Invoke to be directly called on a Delegate.
(Error_InvokeOnDelegate): Report error cs1533.
svn path=/trunk/mcs/; revision=16683
* everywhere: Remove uses of direct invocation of the 'Invoke'
method on a delegate type - that is error cs1533 now flagged by
mcs.
svn path=/trunk/mcs/; revision=16681
* cpu-g4.md, cpu-pentium.md: updates for new instructions.
* mini.c, mini.h: first cut at generics support: some new instructions
added and changed the behaviour of some of the existing ones.
svn path=/trunk/mono/; revision=16678
* MethodCore.cs (OverridesSomething): New public field; it's set
from TypeContainer.DefineMembers if this method overrides
something (which doesn't need to be a method). Fix#39462.
svn path=/trunk/mcs/; revision=16673
* expression.cs (Indexers.GetIndexersForType): Only look in the
interface hierarchy if the requested type is already an
interface. Fixes#46788 while keeping #46502 fixed.
svn path=/trunk/mcs/; revision=16667
* interface.cs (Populate*): Get rid of code which emits attributes
since the stage in which we emit attributes is the 'Emit' stage,
not the define stage.
(Emit): Move attribute emission for interface members here.
svn path=/trunk/mcs/; revision=16665
out parameter.
* MethodCall.cs: Improved checking if the requested client type for the target
object can be casted to the server type. Now not only checks type name,
but also the type hierarchy and implemented interfaces. Also implemented
method ToString().
* MethodResponse.cs: Imlemented ToString().
* ReturnMessage.cs: In the exception constructor, allow the request to be null.
Implemented ToString().
* StackBuilderSink.cs: Check type of parameters before calling the target method.
(a wrong type would make the runtime to crash).
svn path=/trunk/mcs/; revision=16659
* class.cs (TypeContainer.DefineMembers): Check whether all
readonly fields have been assigned and report warning CS0649 if
not.
* statement.cs (LocalInfo.IsFixed): Always return true if this is
a valuetype.
svn path=/trunk/mcs/; revision=16655
* XmlDsigC14NTransformTest.cs: New tests from Aleksey Sanin.
* XmlDsigC14NWithCommentsTransformTest.cs: New tests from
Aleksey Sanin.
svn path=/trunk/mcs/; revision=16636
* decl.cs (MemberCache.AddMethods): Reverse the order of the array
returned from GetMethods to make things consistent with the
assumptions MCS makes about ordering of methods.
This should comprehensively fix bug #45127 and it does :-)
* ecore.cs (MethodGroupExpr.DeclaringType): Correct bug - the
ordering is actually reverse.
* Clean up some debug messages I left lying around.
svn path=/trunk/mcs/; revision=16627
This compiler can not self host currently. Need to fix that.
* Makefile: compile to `gmcs.exe'
* driver.cs: Turn on v2 by default on gmcs.
* generic.cs (ConstructedType): Does no longer take a container
type argument; That will be taken care of later.
(ConstructedType.DoResolve, ConstructedType.ResolveAsTypeStep):
Use SimpleName to resolve for now, so we can continue the work on
the parser, until we get Type.GetType that understands generics.
(ConstructedType.ToString): Implement
(TypeArguments.Resolve): Resolve the child expressions as types.
* cs-parser.jay: Rename interface_constraints to
type_parameter_constraints
(namespace_or_type_name): Only use constructed types for the basic
construction, we will deal with identifier<...> later.
(type/type_name): No longer call DecomposeQI, as
namespace_or_type_name is always decoded now.
svn path=/trunk/mcs/; revision=16624
* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
DTDNotationDeclarationCollection and replaced Hashtables with them.
Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
- It now reads attribute values into value collection.
- Renamed consumedDefaultAttribute to consumedAttribute, and
inContent to insideContent.
- GetAttribute() should allow reader's other node state than element.
- MoveToNextAttribute() should move when reader is placed other than
the first attribute.
- HandleError() now supports ValidationType.None (i.e. does nothing).
- ValidateAttribute() now collects and resolves attribute value
entity references. (On the other hand, it doesn't support
EntityHandling.ExpandCharEntity.)
- NodeType shouldn't return Attribute after ReadAttributeValue().
Now only Text is supported, but must also support EntityReference.
- Add FilterNormalization() and partially support Normalization.
svn path=/trunk/mcs/; revision=16615
2003-07-20 Miguel de Icaza <[email protected]>
* cs-parser.jay (namespace_name): do not use
namespace_or_type_name, use qualified_identifier, because
namespace_or_type_name will soon return a composed expression
instead of a string.
(namespace_or_type_name): Instead of returning a string, now this
production returns an expression.
* codegen.cs (EmitContext): Setup IsGeneric property based on
whether our DeclSpace is generic, our the method is generic.
* modifier.cs (Modifiers.METHOD_GENERIC): New definition, use if
the method is generic.
* cs-parser.jay (type_arguments, opt_type_argument_list,
type_parameters, type_parameter_list, opt_type_parameter_list,
type_parameter,, opt_type_parameter_constraints_clauses,
type_parameter_constraints_clauses,
type_parameter_constraint_clause, type_parameter_constraint,
interface_constraints): Add new production
* decl.cs (DeclSpace): IsGeneric, flag to track whether this
DeclSpace is generic or not.
(DeclSpace.SetParameterInfo): New routine, used to set the
parameter info for a type.
(DeclSpace.LookupGeneric): Lookups a name, and if it is a generic,
returns a GenericTypeExpr
* ecore.cs (SimpleName.ResolveAsTypeStep): If our container is
generic, lookup the generic argument.
* attribute.cs: Do not allow TypeParameterExpressions in
Attributes.
* class.cs: Do not allow the Main method to be defined in a
Generic container.
* expression.cs (SizeOf): Do not allow generic types to be used as
arguments to sizeof.
* typemanager.cs (IsGeneric): Wrapper for Reflection when we have
it: whether a type is generic or not. Only works for types we are
currently building for now.
2003-01-21 Miguel de Icaza <[email protected]>
* generic.cs: New file, contains support code for generics.
* cs-parser.jay: Remove OP_SHIFT_LEFT, OP_SHIFT_RIGHT,
OP_SHIFT_LEFT_ASSIGN, OP_SHIFT_RIGHT_ASSIGN.
Update parser for the above removals.
* cs-tokenizer.cs: Do not handle <<= or >>= specially. This is
now taken care of in the parser.
svn path=/trunk/mcs/; revision=16612
This directory is only for the development of the generics version of MCS,
we will later fold all those changes into the main branch. But wanted to
share the code with others in the meantime instead of keeping a separate
tree.
svn path=/trunk/mcs/; revision=16611
* XmlTextReader.cs :
Read() now handles parser context stuff (BaseURI, XmlLang and
XmlSpace) correctly for an empty element.
Normalization property now doesn't throw an error. Will be used soon.
* XmlValidatingReader.cs : added ValidationType.None support (wait for
the next DTDValidatingReader update for "not firing event handler).
* XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
svn path=/trunk/mcs/; revision=16609
* expression.cs (Invocation.OverloadResolve): Follow the spec more
closely: we eliminate methods in base types when we have an
applicable method in a top-level type.
Please see section 14.5.5.1 for an exact description of what goes
on.
This fixes bug #45127 and a host of other related to corlib compilation.
* ecore.cs (MethodGroupExpr.DeclaringType): The element in the
array is the method corresponding to the top-level type (this is
because of the changes made to icall.c) so we change this
accordingly.
(MethodGroupExpr.Name): This too.
* typemanager.cs (GetElementType): New method which does the right
thing when compiling corlib.
* everywhere: Make use of the above in the relevant places.
svn path=/trunk/mcs/; revision=16599
* Makefile: Boo-yah! Add corlib_plattest.dll, which is a
corlib test library built against the platform corlib. This
lets us test our corlib tests. On a non-mono-native platform
(Windows) we run those tests only; on a mono-native platform, we
run the full corlib test suite on our own tests.
* corlib_plattest.dll.excludes: Add this. (The result of
'grep Mono corlib_test.dll.sources')
* corlib_test.dll.sources: Extraneous newline was messing things
up.
svn path=/trunk/mcs/; revision=16597
* Makefile (SUBDIRS): Add System.Drawing.Design.dll to the
2003-07-23 Peter Williams <[email protected]>
* System.Drawing.dll.sources: Add Pens.cs
svn path=/trunk/mcs/; revision=16595
be public.
* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.
* SignatureHelper.cs: This class does not have the
SerializableAttribute.
* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.
* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.
* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.
* Guid.cs (NewGuid): Remove MonoTODOAttribute.
* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.
* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.
svn path=/trunk/mcs/; revision=16594
* win32functions.cs: Move functions that do not exist in WineLib
over to Win32_Wineless, so we do not trigger the warning messages
until a function tries to use them.
Win32() constructor: Set a hint on the appdomain that we would
prefer to have the System.Drawing API use the Win32 implementation
of the API.
* *.cs: Updated sources to use this.
svn path=/trunk/mcs/; revision=16591
* class.c: Fixes from Paolo in response to bug #45415 (Subclass
relationship between TypeBuilders while compiling corlib) and bug
45993 (Array types returned from the runtime while compiling
corlib were from the loaded corlib).
svn path=/trunk/mono/; revision=16588
* shared.c:
* daemon.c (maybe_exit): Avoid the race condition when the daemon is
closing but another client comes along when the shared data is still
visible. Should fix bugs 33671 and 35213.
svn path=/trunk/mono/; revision=16586
* cs-parser.jay: Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16562
* rules.make (withmcs): Add this developer utility target.
'make withmcs' will build 'all' using $(INTERNAL_MCS) as its compiler
no matter what, for testing corlib builds or on Windows. As requested
by Ravi.
svn path=/trunk/mcs/; revision=16558
IVsaItem.cs, IVsaItems.cs, IVsaPersistSite.cs, IVsaReferenceItem.cs,
IVsaSite.cs: InterfaceTypeAttribute can only be applied to interfaces,
no to interface members. Build failed on windows.
svn path=/trunk/mcs/; revision=16549
* cs-parser.jay (invocation_expression): Moved
`OPEN_PARENS expression CLOSE_PARENS unary_expression' here from
`cast_expression', but create a InvocationOrCast which later
resolves to either an Invocation or a Cast.
* ecore.cs (ExpressionStatement.ResolveStatement): New virtual
method; call this before EmitStatement() to make sure that this
expression can be used as a statement.
* expression.cs (InvocationOrCast): New class; resolves to either
an Invocation or a Cast.
* statement.cs (StatementExpression): Call ResolveStatement() on
the ExpressionStatement before emitting it.
svn path=/trunk/mcs/; revision=16537
xml serialization. Modified method of writing schema. Now it creates
a XmlSchema object and serializes it using XmlSerializer.
* XmlConstants.cs: Added constants for data type names.
* XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
type specified in the column.
svn path=/trunk/mcs/; revision=16530
* mono/tests/Makefile.am: Add missing test. Make tests interruptable
by Ctrl-C. Add testinterp target to run the tests with the interpreter.
Do not try to build vararg.cs under mcs.
svn path=/trunk/mono/; revision=16524
* class.c (mono_class_layout_fields): Fix gc aware auto layout by
initializing real_size only once. Also fix bug #46602.
svn path=/trunk/mono/; revision=16522
* interp.c: Use the new metadata_section lock instead of metadata_lock.
Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=16520
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs:
These are syntax errors which we'd need to catch in cs-parser.jay;
separate them from the other errors.
* cs0572.cs: New test.
svn path=/trunk/mcs/; revision=16497
* test-206.cs: New test for bug #46502.
2003-07-20 Martin Baulig <[email protected]>
* test-205.cs: New test for some namespace stuff.
svn path=/trunk/mcs/; revision=16496
* expression.cs (Invocation.VerifyArgumentsCompat): Check whether
`ref' and `out' attributes match; fixes#46220.
(MemberAccess.ResolveMemberAccess): You can't reference a type
through an expression; fixes#33180.
(Indexers.GetIndexersForType): Don't return the indexers from
interfaces the class implements; fixes#46502.
svn path=/trunk/mcs/; revision=16495
* decl.cs (AdditionResult): Added `Error'.
* enum.cs (AddEnumMember): Report a CS0076 if name is `value__'.
* typemanager.cs (TypeManager.ChangeType): Catch exceptions;
makes cs0031.cs actually work.
2003-07-20 Martin Baulig <[email protected]>
* namespace.cs: Fixed that bug which caused a crash when compiling
the debugger's GUI.
svn path=/trunk/mcs/; revision=16486
* object.c (mono_runtime_class_init): Take the metadata_section
mutex before obtaining the domain mutex.
* appdomain.h: Added definition of metadata_section mutex here.
* object.c: define metadata_mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* mini.c: Removed definition of metadata_shared mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* jit.c: Remove definition of metadata_section mutex from here
svn path=/trunk/mono/; revision=16485
empty array if the type is an array. Fixed.
ves_icall_MonoMethod_get_base_definition: if the base method
is abstract, get the MethodInfo from the list of methods of
the class.
* reflection.c: ParameterInfo.PositionImpl should be zero-based
and it was 1-based. Fixed in mono_param_get_objects.
svn path=/trunk/mono/; revision=16484
* CheckBoxList.cs: fixes bug reported on the list about the state of
the CheckButtons not being preserved across posts.
svn path=/trunk/mcs/; revision=16473
* Makefile: Add in corlib_res.dll, which we use as a basis
for tests on non-linux platforms. Nearly identical rules to
corlib_cmp: corlib - some files that cause the MS runtime to
barf.
* corlib_res.dll.excludes: Added.
svn path=/trunk/mcs/; revision=16462
of a generic type. ie Set<int32>
* TypeSpecFieldRef.cs: New File - A field ref that is attached to
a typespec. This can be used with modified types, and generic types.
* TypeSpecMethodRef.cs: New File - A method ref that is attached
to a typespec. This can be used with modified types, and generic types.
* GenericTypeRef.cs: Create method refs and field refs using the
new typespec classes.
* ITypeRef.cs: Types should now be able to have methods and fields
attached to them
* PeapiTypeRef.cs: Set UseTypeSpec to true if the type is modified
* PrimitiveTypeRef.cs: Add methods to attach fields and
methods. This just uses the TypeSpec* classes so I don't need to
create classrefs.
* TypeRef.cs: Set UseTypeSpec to true if a type is modified.
svn path=/trunk/mcs/; revision=16459
be added to type specs. This fixing bah-zillions of little
problems in ilasm. We can now add fields and methods to arrays,
reference types, and most importantly generics.
Add the GenericTypeInst class. This is an instance of a generic
type. ie Hash<int32, string>. GenericTypeSpecs now write their id
number as a compressed number, this matches the way the runtime
loads them and will allow generic types to have more then 255 type
parameters.
svn path=/trunk/mcs/; revision=16458
2003-07-20 Peter Williams <[email protected]>
* README.platforms: Update docs for changes below.
* platforms/win32.make (PLATFORM_CORLIB): Set this variable
to 'mscorlib.dll', instead of $(corlib) which everything links
against. *Almost* everything should link against our corlib --
with the exception of corlib_cmp and corlib_res.
* platforms/linux.make: Same here: corlib.dll
* rules.make: Define $(corlib) here.
class/corlib:
2003-07-20 Peter Williams <[email protected]>
* Makefile: Don't use real_corlib; use $(PLATFORM_CORLIB).
svn path=/trunk/mcs/; revision=16457
* nunit20/nunit-console/Makefile (PROGRAM): Put nunit-console.exe
in $(topdir)/class/lib so we can find our DLL's.
build:
2003-07-20 Peter Williams <[email protected]>
* config-default.make (TEST_RUNTIME): Use the platform runtime
to run tests, by default.
* profiles/default.make (TEST_RUNTIME): If our test runtime is
mono, use the --debug flag.
* executable.make (sourcefile): Add a basename so that we can
find the nunit sources and so we behave a bit more like
library.make
* config-default.make (TEST_HARNESS): Find nunit-console in its
new home.
svn path=/trunk/mcs/; revision=16456
* library.make ($(response)): Do a "Creating ..." line here.
* executable.make ($(response)): Same.
* config-default.make: Make warning more forceful.
* rules.make: Define a useful 'PLATFORM_MONO_NATIVE' that is
set if the platform does not have a native runtime (ie, linux).
Also reorder some definitions.
2003-07-20 Peter Williams <[email protected]>
* Created. See ../ChangeLog for entries earlier than
this.
svn path=/trunk/mcs/; revision=16453
* mono-debug.h: Set version number to 31.
(mono_debug_init): Added `MonoDomain *' argument.
* mono-debug-debugger.c: Reworked the type support; explicitly
tell the debugger about builtin types; pass the `klass' address to
the debugger.
svn path=/trunk/mono/; revision=16448
* typemanager.cs (LookupTypeReflection): Never expose types which
are NotPublic, NestedPrivate, NestedAssembly, or
NestedFamANDAssem. We used to return these, and later do a check
that would report a meaningful error, but the problem is that we
would not get the real match, if there was a name override.
svn path=/trunk/mcs/; revision=16444
* ChunkStream.cs:
(WantMore): true if we've not received the last chunk yet. Fixes
bug #45463. Thanks to Miguel for tracking this down and providing a
test case.
* WebConnection.cs: removed bogus ^M's.
* WebHeaderCollection.cs: provide more info when the header or value is
wrong.
svn path=/trunk/mcs/; revision=16441
* XmlSchema.cs : added support for collecting missing type references
at compilation-time.
* XmlSchemaType.cs, XmlSchemaComplexType.cs, XmlSchemaSimpleType.cs:
- Renamed qName to QNameInternal.
- Added BaseSchemaType and ContentTypeParticle support.
svn path=/trunk/mcs/; revision=16437
* XmlSchema.cs, XmlSchemaAll.cs, XmlSchemaAnnotated.cs,
XmlSchemaAnnotation.cs, XmlSchemaAny.cs, XmlSchemaAnyAttribute.cs,
XmlSchemaAttribute.cs, XmlSchemaAttributeGroup.cs,
XmlSchemaAttributeGroupRef.cs, XmlSchemaChoice.cs,
XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
XmlSchemaElement.cs, XmlSchemaGroup.cs, XmlSchemaGroupRef.cs,
XmlSchemaIdentityConstraint.cs, XmlSchemaImport.cs,
XmlSchemaInclude.cs, XmlSchemaKey.cs, XmlSchemaKeyref.cs,
XmlSchemaNotation.cs, XmlSchemaObject.cs, XmlSchemaRedefine.cs,
XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs, XmlSchemaUnique.cs,
XmlSchemaXPath.cs,
As to Compile() and Validate(),
- Added CompilationId and check it while compiling schema components.
- Code refactory. Replaced literal xmlns with XmlSchema.Namespace
- Replaced XmlSchemaInfo with compiling XmlSchema itself (XmlSchema
also has PSVI components inside it, so passing itself seems enough).
- Related to above change, IDCollection was moved to XmlSchema, and
blockDefault/finalDefault/blockResolved/finalResolved resolution
was changed to reference only to schema.BlockDefault/FinalDefault.
- The similar change has done against XmlSchemaForm related stuff.
- Changed compilation order of schema type definitions (it is
workaround). First it compiles types, and then it compiles others.
* XmlSchemaElement.cs : added ElementType PSVI contribution support.
svn path=/trunk/mcs/; revision=16435
* DTDValidatingReader.cs :
changed base class to XmlReader and implemented IXmlLineInfo members.
changed .ctor() argument from event handler to validating reader.
Removed some #if ... #else ... #endif blocks.
Added validation event support for Read() using HandleError().
* XmlValidatingReader.cs : added internal OnValidationEvent().
* XmlDocument.cs : ReadNode() now checks reader's state more strictly.
svn path=/trunk/mcs/; revision=16430
* namespace.cs (Namespace, Name): Do not compute the namespace
name dynamically, compute it in the constructor. This reduced
memory usage by 1697 KB.
* driver.cs: Use --pause to pause at the end.
svn path=/trunk/mcs/; revision=16417
* build/library.make (dist-local): Fancy make dist magic gives
way to boring old 'for'.
* build/executable.make (dist-local): Ditto.
class/corlib:
2003-07-18 Peter Williams <[email protected]>
* Makefile (dist-local): The fancy shell script was neat, but
ultimately unnecessary and counterproductive. Alas.
svn path=/trunk/mcs/; revision=16380
* Test/Mono.Directory.LDAP/BindSimpleTest.cs: csc interprets the bare LDAP
as a namespace, not as the class. Give it the fully qualified name.
* Test/Mono.Directory.LDAP/QueryRootDSETest.cs: Same.
svn path=/trunk/mcs/; revision=16375
* Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
we can't unless corlib is strongnamed too. Not a wonderful solution,
but I don't think this ever worked anyway.
svn path=/trunk/mcs/; revision=16374
* Mono.Data.SybaseTypes/SybaseDecimal.cs: csc.exe is more
stringent about namespaces than mcs. We need to disambiguate
System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16373
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16372
* FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
finer-grained icalls. Requires a matching runtime.
svn path=/trunk/mcs/; revision=16350
getting it from the "this" socket instance. Did not work
if the socket is a subclass of Socket.
Also fixed bug #35371.
svn path=/trunk/mono/; revision=16343
not necessary to query them for every object.
* ObjectWriter.cs: If the value being serialized is a value type (not boxed)
then there is no need to register it in the ObjectIDGenerator, because it is
not possible to have two references to the same value type object.
svn path=/trunk/mcs/; revision=16342
number of calls to GetType(). (Patch by Paolo).
Also added a NextId property that returns a new Id without registering
an object.
svn path=/trunk/mcs/; revision=16341
* metadata.c: fixed size for TypedByRef.
* loader.c: when searching for a method, consider the vararg amrker.
* unicode.c, decimal.c: constify some arrays.
svn path=/trunk/mono/; revision=16340
* expression.cs (LocalVariableReference.Emit, EmitAssign,
AddressOf): Do not use EmitThis, that was wrong, use the actual
this pointer.
svn path=/trunk/mcs/; revision=16323
* build/profiles/default.make: Try to make this smarter so
that we can build on Windows. Specifically, don't require
the mono runtime. Combined with the corlib $(BOOT_COMPILE) change,
this should make corlib build out of the box, I think.
2003-07-17 Peter Williams <[email protected]>
* Makefile ($(testlib)): Build with $(BOOT_COMPILE), not $(CSCOMPILE),
which sort of makes sense and is needed on Windows too.
($(corlib)): same.
$(cmplib): Don't include the makefrag to save the Windows build and some
time.
svn path=/trunk/mcs/; revision=16321
* interface.cs (Define): Do nothing here since there are no
members to populate etc. Move the attribute emission out of here
since this was just totally the wrong place to put it. Attribute
application happens during the 'Emit' phase, not in the 'Define'
phase.
(Emit): Add this method and move the attribute emission here
* rootcontext.cs (EmitCode): Call the Emit method on interface
types too.
svn path=/trunk/mcs/; revision=16308
A whole passel of build system changes. Doc updates:
* build/README.makefiles: Doc updates.
* build/profiles/net_1_0.make: Doc changes.
* INSTALL.txt: A few more touchups.
Better defaults:
* build/config-default.make (prefix): Default install prefix
should be /usr/local.
* build/profiles/bootstrap.make: This profile ...
* build/profiles/default.make: ... is now the default.
* build/profiles/atomic.make: And the default is now this.
Fixes for pre-build checks:
* Makefile: Do the platform and (new) profile checks
before the build, which took some infrastructure changes.
* build/rules.make: Allow a Makefile to specify its own all/install/etc
targets.
* build/profiles/default.make (profile-check): Add a blank
target here.
* build/profiles/atomic.make: Check for a full MCS install to
build against.
HP/UX fixes with help from Bernie Solomon:
* build/config-default.make (ECHO_ESCAPE): HP/UX 'echo'
doesn't need a -e parameter to interpret escape codes. Test for
that and define a configuration parameter.
* build/library.make ($(makefrag)): Use $(ECHO_ESCAPE)
instead of assuming that 'echo -e' will interpret escape
codes.
* build/executable.make ($(makefrag)): Here too.
A make distcheck fix:
* Makefile: Inherit the current prefix so that the build can
find the right System.Xml.dll.
And Windows build fixes with the invaluable help of Sebastian
Pouliot (in various subdirectories).
class/Mono.Data.SqliteClient:
2003-07-16 Peter Williams <[email protected]>
* Makefile (LIB_MCS_FLAGS): Add /r:System.dll here. Why wasn't
this necessary with MCS? (csc.exe needs it.)
class/System:
2003-07-16 Peter Williams <[email protected]>
* Makefile (SCARY_LIB): Flip around since what was bootstrap
is now default.
class/System/Test/System.Net:
2003-07-16 Peter Williams <[email protected]>
* IPAddressTest.cs: #if NET_1_1 for some IPv6 tests that
rely on some NET_1_1-only features.
class/System/Test/System.Net.Sockets:
2003-07-16 Peter Williams <[email protected]>
* TcpListenerTest.cs: Initialize outSock to null to
prevent an mcs compile error.
class/System.Data:
2003-07-16 Peter Williams <[email protected]>
* Makefile: Flip around for the new default build
profile. (In a separate commit)
class/System.Windows.Forms:
2003-07-16 Peter Williams <[email protected]>
* System.Windows.Forms.dll.sources: Don't build with two
AssemblyInfo.cs files.
class/corlib:
2003-07-16 Peter Williams <[email protected]>
* Makefile ($(test_makefrag)): Use $(ECHO_ESCAPE) for HP/UX
portability fixes.
(all-local): Don't build $(cmplib) by default, it's not something
most people need, and the build is broken on Windows right now anyway.
ilasm:
2003-07-16 Peter Williams <[email protected]>
* Makefile (ILParser.cs): Move this from parser/ so we avoid
slash direction issues on the Windows build.
* .cvsignore: Add ILParser.cs here.
ilasm/parser:
2003-07-16 Peter Williams <[email protected]>
* .cvsignore: ILParser.cs has been moved.
tools:
2003-07-16 Peter Williams <[email protected]>
* Makefile (DIST_ONLY_SUBDIRS): Don't build SqlSharp, it's
very old and doesn't build on Windows.
svn path=/trunk/mcs/; revision=16292
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test: If we are not public
(use new test here: use the computed MethodAttributes directly,
instead of the parsed modifier flags) check if the `implementing'
method comes from an interface or not.
* pending.cs (VerifyPendingMethods): Slightly better error
message.
* makefile: add test target that does the mcs bootstrap.
svn path=/trunk/mcs/; revision=16286
* socket-io.c: Fixed compilation for gcc < 3.2.
Fixed compilation for machines that don't have AF_INET6 (thanks to
Bernie Solomon <[email protected]> for that part.)
Fixed compile warnings.
Fixed formatting and line endings.
svn path=/trunk/mono/; revision=16270
* XmlAttribute.cs :
.ctor() should reject xml- or xmlns-prefixed node.
* XmlNamespaceManager.cs :
added some xmlns validity check.
* XmlNode.cs :
optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
avoiding XmlNamespaceManager creation.
* XmlNodeReader.cs :
doctype node should return PUBLIC and SYSTEM for its indexer,
and Value should be internal subset,
svn path=/trunk/mcs/; revision=16266
maps with the same name and namespace. To avoid this, maps must be registered
using the real map namespace, not the default namespace (the namespace can
change if the type has a XmlType or SoapType attribute).
* XmlArrayItemAttribute.cs: Set IsNullable to true by default.
* XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
Other small fixes.
* XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
is null.
svn path=/trunk/mcs/; revision=16262
* Makefile: Make sure that we use the newly generated compiler
to run the tests, not the installed one.
Modify targets to compile and run in one go instead of separate
targets for each task.
* test-196.cs: Fix careless error - returning a value from a void
Main ().
Add it back to the test suite.
svn path=/trunk/mcs/; revision=16253
* expression.cs (OverloadResolve): Report error only if Location
is not 'Null' which means that there was a probe going on.
svn path=/trunk/mcs/; revision=16252
* Hashtable.cs: Patch from [email protected], GetEnumerator should be
returning DictionaryEntrys, instead of just the Key of the table.
svn path=/trunk/mcs/; revision=16251
* build/rules.make (dist-recursive): Fix recursive rules
to work on HP/UX /bin/sh. Patch from Bernie Solomon
<[email protected]>.
svn path=/trunk/mcs/; revision=16244
* TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
* XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
* XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
* XmlSchemaExporter.cs: Implemented.
* XmlSchemas.cs: Support schemas with TargetNamespace set to null.
* XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
* XmlSerializationWriterInterpreter.cs: Fixed management of default values.
GetStringValue() returns null if the value is null, instead of empty string.
(attributes with null values are not written).
* XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
* XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
DataType value can is now in TypeData.
* XmlTypeMapMemberElement.cs: Small fix.
* XmlTypeMapping.cs: Added FindMember method and BaseMap property.
svn path=/trunk/mcs/; revision=16235
* test-204.cs: User defined conditional logical operators; bug #40505.
2003-07-14 Martin Baulig <[email protected]>
* test-203.cs: Added test for bug #33026.
svn path=/trunk/mcs/; revision=16226
* expression.cs (ConditionalLogicalOperator): New public class to
implement user defined conditional logical operators.
This is section 14.11.2 in the spec and bug #40505.
svn path=/trunk/mcs/; revision=16224
* codegen.cs (EmitContext.InFixedInitializer): New public field.
* ecore.cs (IVariable.VerifyFixed): New interface method.
* expression.cs (Unary.ResolveOperator): When resolving the `&'
operator, check whether the variable is actually fixed. Fixes bug
#36055. Set a variable definitely assigned when taking its
address as required by the spec.
* statement.cs (LocalInfo.IsFixed): New field.
(LocalInfo.MakePinned): Set `IsFixed' to true.
svn path=/trunk/mcs/; revision=16214
* attribute.cs (Attribute.Resolve): While doing a Member lookup
for .ctors, ensure that we only ask for members declared in the
attribute type (BindingFlags.DeclaredOnly).
Fixes bug #43632.
* expression.cs (Error_WrongNumArguments): Report error 1501
correctly the way CSC does.
svn path=/trunk/mcs/; revision=16210
* ServicePoint.cs: Removed Connect and GetEndPoint methods.
Removed reverse resolution when uri is literal IP address.
* WebConnection.cs: IPv6 compatibility update: Try to connect
to all addresses returned by IPHostEntry.
* WebConnectionGroup.cs: Removed unused parameter.
svn path=/trunk/mcs/; revision=16209
* DiagnosticsConfigurationHandler.cs: Removed a never used variable
* EventLog.cs: Small update to prevent a warning
* EventLogPermission.cs: Implemented or implementation added
* EventLogPermissionAttribute.cs: Implemented or implementation added
* EventLogPermissionEntry.cs: Implemented or implementation added
* EventLogPermissionEntryCollection.cs: Implemented or implementation added
* EventLogTraceListener.cs: Implemented or implementation added
* PerformanceCounterManager.cs: Implemented or implementation added
* PerformanceCounterInstaller.cs: Made internal
* PerformanceCounterCategory.cs: Implemented few members
* PerformanceCounterPermission.cs: Implemented or implementation added
* PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
* PerformanceCounterPermissionEntry.cs: Implemented or implementation added
* PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
svn path=/trunk/mcs/; revision=16177
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c (interp_mono_runtime_invoke): Unbox value type instances
before calling the method. Fixes appdomain2.exe.
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
* interp.c: Implement CEE_ISINST and CEE_CASTCLASS using
mono_object_isinst. Fixes bug #45539 and reflection-enum.exe.
svn path=/trunk/mono/; revision=16170
* mono/tests/cattr-object.cs: Make it run under both mono and MS.NET.
* mono/tests/struct.cs: Add test for unboxing trampolines.
* mono/tests/bug-27420.cs: new regression test.
* mono/tests/Makefile.am: skip vararg test since it does not compile
under mono. Add testinterp target. Add new tests.
svn path=/trunk/mono/; revision=16168
* test-202.cs: Added test for bug #41975.
2003-07-13 Martin Baulig <[email protected]>
* test-201.cs: Added test for bug #35631.
2003-07-12 Martin Baulig <[email protected]>
* test-200.cs: Added test for bug #45854.
svn path=/trunk/mcs/; revision=16165
* expression.cs (MemberAccess.ResolveAsTypeStep): Try to do a type
lookup on the fully qualified name, to make things like "X.X" work
where "X.X" is a fully qualified type name, but we also have a
namespace "X" in the using list. Fixes#41975.
svn path=/trunk/mcs/; revision=16164
* assign.cs (Assign.GetEmbeddedAssign): New protected virtual
function. If we're a CompoundAssign, we need to create an embedded
CompoundAssign, not an embedded Assign.
(Assign.DoResolve): Make this work for embedded CompoundAssign's.
Fixes#45854.
svn path=/trunk/mcs/; revision=16163
* class.cs (Operator.Emit): Do not emit attributes here - it is
taken care of by the Method class that we delegate too. This takes
care of bug #45876.
svn path=/trunk/mcs/; revision=16161
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
svn path=/trunk/mono/; revision=16160
* class.c (mono_class_is_assignable_from): New function to implement
the is_assignable_from logic. Used by mono_object_isinst,
Type::IsAssignableFrom () and the interpreter.
* class.c (mono_class_is_subclass_of): Make all classes a subclass of
Object, even interfaces.
* object.c (mono_object_isinst): Implement in terms of
is_assignable_from.
* icall.c (ves_icall_type_is_assignable_from): New icall.
svn path=/trunk/mono/; revision=16155
* MissingNameSpace.cs: Fixed the case where a private/ internal class that per chance has a class with the same name
in the compared assembly gets compared -> now only public classes are compared.
* MissingType: Internal nested types were always compared -> internal nested types are never compared
svn path=/trunk/mcs/; revision=16149
* XmlAttribute.cs,
XmlElement.cs : Fixed CloneNode() for bug #46129.
* XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
String.Format arguments, and basically XmlException.ctor(
IXmlLineInfo, message) seems good idea to use.
* XmlTextReader.cs :
- Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
required non-null context which don't have to exist.
- Added state check. Introduced 'currentState' and 'maybeTextDecl'
(for external entity) and removed hasEnteredDocument. Added
state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
- Replaced throw ReaderError() with throw new XmlException() and
fixed that some error hadn't thrown, only created.
- ResetState() should re-initialize existing private members other
than some specified fields.
- Private AddAttribute() should check if the same-named attribute
already exists.
* DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
svn path=/trunk/mcs/; revision=16131
* AssemblyFlagsAttribute.cs: Added new constructor from NET 1.1.
* AssemblyFlagsAttribute.cs: Added new property from NET 1.1.
svn path=/trunk/mcs/; revision=16124
* AssemblyBuilder.cs: Added argument checking to all methods according
to the MSDN docs. Also marked DefineUnmanagedResource and its friends
as not implemented.
* ModuleBuilder.cs: Added new property FileName used by AssemblyBuilder.
svn path=/trunk/mcs/; revision=16121
Fix for this case.
* SoapHttpClientProtocol.cs: Implemented support for asynchronous calls
(BeginInvoke and EndInvoke).
svn path=/trunk/mcs/; revision=16097
* image.h image.c: Store the metadata version string in MonoImage.
* icall.c: New icall to retrieve the image version.
* reflection.c (create_dynamic_image): Fill in the image version field
* reflection.c (build_compressed_metadata): Use the image version
from the image structure.
svn path=/trunk/mono/; revision=16088
* rootcontext.cs (RootContext.NamespaceLookup): Take a DeclSpace,
not a NamespaceEntry, so we can use DeclSpace.CheckAccessLevel().
* decl.cs (DeclSpace.FindType): Use DeclSpace.CheckAccessLevel().
* typemanager.cs (TypeManager.IsAccessibleFrom): Removed.
svn path=/trunk/mcs/; revision=16087
* expression.cs (ArrayCreation): Don't use a byte blob for arrays
of decimal. Fixes#42850.
NOTE: I also fixed the created byte blob, but this doesn't work on
the MS runtime and csc never produces any byte blobs for decimal
arrays.
svn path=/trunk/mcs/; revision=16083
* SoapClientFormatterSink.cs, SoapClientFormatterSinkProvider.cs SoapServerFormatterSink.cs, SoapServerFormatterSinkProvider.cs, SoapMessageFormatter.cs: Support for the soap serialization added to the remoting infrastructure
svn path=/trunk/mcs/; revision=16062
Added support for soap extensions. Moved some code to
WebServiceHelper. Implemented support for the two types of RoutingStyle. Added support
for In and Out headers. Improved management of exceptions.
* SoapClientMessage.cs: code to retrieve soap headers moved to SoapMessage.
* SoapExtension.cs: Added methods for getting and creating soap extensions.
* SoapMessage.cs: Added methods for getting and assigning headers to an object.
* SoapServerMessage.cs: Added setter for MethodStubInfo. Other minor fixes.
* WebServiceHandler.cs: Added support for In and Out headers. Fixed management of exceptions.
* WebServiceHandlerFactory.cs: Check if the request protocol is supported.
* WebServiceHelper.cs: Added method for reading a soap request.
svn path=/trunk/mcs/; revision=16057
* jscript-lexer-parser.g: Added conditional_compilation_directive,
which is the beginning of our support for conditional compilation
statements and directives in our parser. Added
cc_on_statement, and some lexer rules for getting the needed
tokens (COND_SET, COND_DEBUG, COND_POSITION, COND_POSITION,
COND_IF, COND_ELIF, COND_ELSE, COND_END and CC_ON.
svn path=/trunk/mcs/; revision=16049
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16046
* BaseCompiler.cs: first look for cached items, then generate the tree.
This should speed things up.
* CachingCompiler.cs: when compiling web services, use the full path of
the .asmx file as key when caching.
* WebServiceCompiler.cs: first look for cached items, then generate
the source file.
svn path=/trunk/mcs/; revision=16045
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
svn path=/trunk/mcs/; revision=16044
* appdomain.c: modified comment.
* gc.c: finalizer_thread can call finalizers even when finished == TRUE.
That will be its last iteration when mono_gc_cleanup is called from
mono_runtime_cleanup and before the domain is unloaded.
Fixes bug #45962.
svn path=/trunk/mono/; revision=16039
* System.Web/HttpContext.cs: Session doesn't have a setter.
* System.Web/HttpResponse.cs: Request is private.
* System.Web.SessionState/SessionDictionary.cs: locking.
* System.Web.SessionState/SessionInProcHandler.cs: use the new method
instead of the setter.
svn path=/trunk/mcs/; revision=16029
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16027
Rewrote the handling of namespaces to fix a lot of the issues
wrt. `using' aliases etc.
* namespace.cs (Namespace): Splitted this class into a
per-assembly `Namespace' and a per-file `NamespaceEntry'.
* typemanager.cs (TypeManager.IsNamespace): Removed.
(TypeManager.ComputeNamespaces): Only compute namespaces from
loaded assemblies here, not the namespaces from the assembly we're
currently compiling.
svn path=/trunk/mcs/; revision=16025
* typemanager.cs: Reverted patch from Gonzalo, my previous patch
already fixed it.
I thought about the memory savings here, but LookupTypeReflection
is used under already very constrained scenarios. Compiling
corlib or mcs only exposes one hit, so it would not really reduce
any memory consumption.
svn path=/trunk/mcs/; revision=16022
* EventLog.cs: Removed unneccesary attribute according to corecompare
* EventLogEntry.cs: Removed unneccesary attribute according to corecompare
* Process.cs: Removed unneccesary attributes according to corecompare, added attribute
* ProcessModule.cs: Removed unneccesary attribute according to corecompare
* ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
* ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
svn path=/trunk/mcs/; revision=16010
* CodeDomProvider.cs: Removed unneccesary attribute according to corecompare
* Executor.cs: Fixed signature with ref calls according to corecompare and made neccessary changes
svn path=/trunk/mcs/; revision=16008
* corlib_linux_test.args:
* corlib_test.args: added AppDomainSetupTest and fixed a couple of typos
to make this compile.
* System/AppDomainSetupTest.cs: new tests.
svn path=/trunk/mcs/; revision=16000
* VBCodeGenerator.cs: Added and nearly completely implemented
(it compiles, but the functionallity is completely untested)
(also without a working mbas the compilaton options will fail)
(once all command line arguments for mbas are final and the warning output is final
change the apropriate code to generate these options)
* VBCodeProvider.cs: Added and implemented
svn path=/trunk/mcs/; revision=15995
* CodeCompiler.cs: Nearly completely implemented
* CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
* CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
* CodeParser.cs: Added and implemented (ok no real implementation needed ;)
* CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
* CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
* CompilerResults.cs: Added Evidence property, added initial values
* Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)
* CompilerOptions.cs: Deleted this file (such a class does not exist)
svn path=/trunk/mcs/; revision=15992
* XmlDocument.cs : Load(string filename) should close its stream.
Small change for the latest DTDObjectModel change.
* XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
changed methods are only related to DTD stuff).
Now uses XmlSchemaDatatype for attribute type definition.
* XmlValidatingReader : initial (limited) support for DTD validation.
It can handle only XmlTextReader.
* DTDObjectModel.cs : changed radically for initial validation support.
* added DTDAutomata.cs and DTDValidatingReader.cs.
svn path=/trunk/mcs/; revision=15983
* XmlElement.cs : Removed extraneous xmlns output support (it should
be done by XmlTextWriter).
* XmlNode.cs : InsertBefore() now checks validity of the newChild (and
most of the changes are in fact indentation changes).
* XmlWriter.cs : WriteAttributes() now can write entity references.
WriteNode() now writes xmldecl attributes correctly.
Removed namespaceManager and xmlns check logic, since it should be
done by individual XmlTextWriter.
* XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
written multiple xmlns declarations.
Moved namespaceManager from abstract XmlWriter.
Write{Start|End}Attribute() and WriteString() now checks xmlns
attribute value. (MS.NET holds value only with this write method).
svn path=/trunk/mcs/; revision=15982
* DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* DSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
* RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* RSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
svn path=/trunk/mcs/; revision=15974
* AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class.
Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now
uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
* RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* RSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
svn path=/trunk/mcs/; revision=15971
* DSAManaged.cs: Fixed bugs that appeared with the new unit tests.
* RSAManaged.cs: Fixed bugs that appeared with the new unit tests.
svn path=/trunk/mcs/; revision=15970
* pending.cs (PendingImplementation.ParentImplements): Don't
create the proxy if the parent is abstract.
* class.cs (TypeContainer.DefineIndexers): Process explicit
interface implementations first. Fixes#37714.
svn path=/trunk/mcs/; revision=15963
* XslTransform.cs : fixed WriteTree() and WriteCurrentNode() to follow
the recent changes of XPathNavigator implementations.
svn path=/trunk/mcs/; revision=15959
* expression.cs (MemberAccess.ResolveMemberAccess): Events are
defined recursively; but since we modify the input parameters
(left is set to `this' temporarily), we reset this value if the
left_is_explicit is false, which gives the original semantics to
the code.
svn path=/trunk/mcs/; revision=15953
* literal.cs (NullPointer): new class used to represent a null
literal in a pointer context.
* convert.cs (Convert.ImplicitReferenceConversion): Is the target
type is a pointer, use a NullPointer object instead of a
NullLiteral. Closes 43687
svn path=/trunk/mcs/; revision=15951
* convert.cs (ExplicitConversion): Convert pointer values using
the conv opcode to the proper type.
* ecore.cs (New): change ValueTypeVariable property into a method,
that returns whether the valuetype is suitable for being used.
* expression.cs (Binary.DoNumericPromotions): Only return if we
the int constant was a valid uint, and we can return both left and
right as uints. If not, we continue processing, to trigger the
type conversion. This fixes 39018.
svn path=/trunk/mcs/; revision=15950
* statement.cs (Block.EmitMeta): During constant resolution, set
the CurrentBlock property on the emitcontext, so that we resolve
constants propertly.
svn path=/trunk/mcs/; revision=15941
then the result object array only contain output parameters.
* Methods.cs: In class MethodStubInfo, added support from some server properties
taken from WebMethodAttribute. Now MethodStubInfo can be created without SoapDocument*
or SoapRpc* attributes, in which case takes default values from TypeStubInfo.
Added method for getting header info.
In class Fault: added constructor for creating a fault from a SoapException.
In class TypeStubInfo: new way to manage serializers for headers. Now it is possible to
get a header using a name and namespace (used when deserializing).
* SoapHttpClientProtocol.cs: moved WriteSoapEnvelope method to WebServiceHelper (so it can be shared).
Also moved other serialization stuff to WebServiceHelper.
* SoapMessage.cs: Added some convenient constructors and internal properties.
Implemented GetOutParameterValue and GetReturnValue.
* SoapServerMessage.cs: Implemented.
* WebServiceHandler.cs: Implemented method Invoke.
* WebServiceHandlerFactory.cs: Basic implementation.
* WebServiceHelper.cs: Added. Has some methods shared between client and server classes.
* HttpSoapWebServiceHandler.cs: Added. IHttpHandler implementation for HttpSoap requests.
svn path=/trunk/mcs/; revision=15909
* System.Web.Compilation/BaseCompiler.cs: made Compiler property
virtual.
* System.Web.Compilation/CachingCompiler.cs: added support for compiling
web services.
* System.Web.Compilation/WebServiceCompiler.cs: implemented.
* System.Web.UI/SimpleWebHandlerParser.cs: updated to new compilation
interface.
* System.Web.UI/TemplateParser.cs: use the new parameter when compiling.
svn path=/trunk/mcs/; revision=15892
* PKCS1.cs DSAManaged.cs: Changed strange characters in comments to
human-readable ones, since they break XML export in monocov.
svn path=/trunk/mcs/; revision=15888
* MailAddress.cs: return null instead of exception when the address is
empty.
* MailAddressCollection.cs: ignore null addresses.
* SmtpMail.cs: add the exception we get as inner exception so we know
where the error is.
Fixes bug #45746.
svn path=/trunk/mcs/; revision=15886
* codegen.cs (EmitContext.NeedExplicitReturn): New public variable.
(EmitContext.EmitTopBlock): Emit an explicit return if it's set.
* statement.cs (Try.Resolve): Set ec.NeedExplicitReturn rather
than emitting it here.
* statement.cs: Fixed some more flow analysis bugs.
svn path=/trunk/mcs/; revision=15877
* class.cs (MethodData.Define): When implementing interface
methods, set Final unless we're Virtual.
* decl.cs (MemberCore.CheckMethodAgainstBase): Make the CS0506
check work for interface methods.
svn path=/trunk/mcs/; revision=15876
* ecore.cs (EmitContext.This): Replaced this property with a
GetThis() method which takes a Location argument. This ensures
that we get the correct error location for a CS0188.
svn path=/trunk/mcs/; revision=15874
* timed-thread.c (_wapi_timed_thread_exit):
* threads.c: Let the timed thread code deal with deleting the
thread info struct. (Valgrind noticed that the join_mutex could
be locked when it was being deleted.)
svn path=/trunk/mono/; revision=15862
* XslTransform.cs (Transform): Call xsltSaveResultToFilename instead
of first reading the result into a string to conserve memory.
svn path=/trunk/mcs/; revision=15857
* object.h, reflection.h, verify.c: fixes for some 64bit issues,
mostly from a patch by Laramie Leavitt <[email protected]>.
svn path=/trunk/mono/; revision=15852
* ChangeLog: Sorry it seems that I couldn't find the right combinaison
just to commit the change to changelog (probably due to convertion to
windows).
* GenericPrincipal.cs: Fixed issues found during unit testing.
svn path=/trunk/mcs/; revision=15836
* threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
using MonoGHashTables. Fixes threadpool bug posted to list.
svn path=/trunk/mono/; revision=15820
* ISessionHandler.cs:
* SessionInProcHandler.cs:
* SessionStateModule.cs: UpdateContext returns a bool indicating if we
started a new session. Only call session start event if that is true.
svn path=/trunk/mcs/; revision=15812
* HttpApplication.cs: prevent nullref if an error happens before context
is set.
* HttpException.cs: small fix in the stack trace sent.
* HttpUtility.cs: the lock is not needed.
svn path=/trunk/mcs/; revision=15811
* StackFrameTest.cs (TestGetMethod): Remove test for method name, since
it is not guaranteed to be 'InternalInvoke'.
svn path=/trunk/mcs/; revision=15807
* image.h, image.c: added support to load an assembly from a byte array.
* Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
assembly bundle support.
svn path=/trunk/mono/; revision=15804
* TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
can have other names.
* TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
* XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
Fix support for DataType in class members.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
Added support for array of primitive types in attributes.
svn path=/trunk/mcs/; revision=15791
* class.cs (Constructor.Define): Turn off initlocals for unsafe
constructors.
(MethodData.Define): Turn off initlocals for unsafe methods.
svn path=/trunk/mcs/; revision=15784
* mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
Moved inlined mempcy code to its own function so that is can be
reused. Added an inline memset function as well (optimized initobj).
* cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
svn path=/trunk/mono/; revision=15780
* XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
essentially changed most of the property handling (e.g. removed attribute
enumerator and it now became really cloneable).
* XmlNodeReader.cs : ReadInnerXml() changes its state as error
when the method is called at Initial state.
svn path=/trunk/mcs/; revision=15773
* XslTransform.cs (GetStringFromDocument): Read the result using
xsltSaveResultToString, since the XML document returned by
applyStylesheet is missing the output processing done due to the
usage of the xsl:output directive.
svn path=/trunk/mcs/; revision=15770
* SimpleWorkerRequest.cs:
-adds PATH_INFO support
- updates GetFilePathTranslated() to make use of Path.Combine()
- gets rid of the null check in GetPathInfo() (we're setting
_PathInfo to String.Empty now)
- fixed CreatePath() so that it doesn't return String.Empty if
the _AppVirtualPath is not "/" (to match MS runtime -- does
anyone know why it was returning String.Empty?)
svn path=/trunk/mcs/; revision=15758
* Console.cs: Turn off buffering for the streams returned by
OpenStandardOutput () and OpenStandardError () if the buffer size is 0.
svn path=/trunk/mcs/; revision=15744
* FileStream.cs (Dispose): Flush the buffer even if we don't own the
handle.
* FileStream.cs: Add a new constructor parameter to turn off buffering.
This is used by the Console.OpenStandard...() methods. Also fix
argument checking in InitBuffer(), so a zero buffer size is also
rejected.
svn path=/trunk/mcs/; revision=15743
* WebConnection.cs: fixed header writing the reusing a connection and
the server does not send 100-continue response.
svn path=/trunk/mcs/; revision=15726
* decl.cs (DeclSpace.CheckAccessLevel): Make this routine
complete; Fixes#37521.
* delegate.cs: Use Modifiers.TypeAttr to compute the
TypeAttributes, instead of rolling our own. This makes the flags
correct for the delegates.
svn path=/trunk/mcs/; revision=15722
* CodeAccessPermission.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
* NamedPermissionSet.cs : Changed some code from result of unit
tests. Updated MonoTODO attributes.
* PermissionSet.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
Added code to some methods.
* SecurityManager.cs: Added missing MonoTODO attributes.
svn path=/trunk/mcs/; revision=15710
called with maxvalue==0 or minvalue==maxvalue, MS.NET internally generates
a new random number (although it is not needed), while mono did not.
As a result, the sequence of random numbers could be different for the
same seed.
svn path=/trunk/mcs/; revision=15702
be overlodaded, so it is not good for this.
* XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
svn path=/trunk/mcs/; revision=15698
* ListControl.cs: save viewstate data when any of the 3 values is not
null. Fixed condition to save selection indices. Closes bug #45493.
svn path=/trunk/mcs/; revision=15661
a hashtable from which one element has been deleted. The Object instance
used as a removed marker is not detected as a such, since the
serializer creates a different instace.
svn path=/trunk/mcs/; revision=15641
* DateTime.cs: Fixed _DoParse() so it correctly applies the utc offset
to the resulting date. Also fixed _ToString so now correctly formates the
UTC offset.
svn path=/trunk/mcs/; revision=15640
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
as non-empty, and XmlElement's IsEmpty is designed as such.
Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
doctype node.
* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
instead of returning undefined enum value.
Modified some code comments.
* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
when XmlReader's node is not at empty element or at EndElement.
Fixed XmlDeclaration's standalone check.
svn path=/trunk/mcs/; revision=15632
* threadpool.c (mono_thread_pool_add): Don't set up a finaliser
for the async object, the WaitHandle object will close the handle.
Fixes bug 45321.
svn path=/trunk/mono/; revision=15630
* class.c: in mono_array_class_get (), lookup from the hash with the
same type we insert: this works around a bug in
mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
lluis. The real fix will have to wait for after the release.
svn path=/trunk/mono/; revision=15629
* mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
arch code can setup the cpu for CLR execution, if needed.
We use it on x86 to set the precision of FP operations.
svn path=/trunk/mono/; revision=15622
* cs-parser.jay: Applied patch from Jackson that adds support for
extern and unsafe modifiers to destructor declarations.
svn path=/trunk/mcs/; revision=15616
before asyncWrite.SetCompleted, to make sure that the waiting thread
does not start to send more information before SendRequestHeaders has
finished.
svn path=/trunk/mcs/; revision=15612
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
array if the namespace is not specified in XmlArrayItemAttribute.
svn path=/trunk/mcs/; revision=15611
* class.cs (TypeContainer.Emit): Only call EmitFieldInitializers
if we do not have a ": this ()" constructor initializer. Fixes 45149
svn path=/trunk/mcs/; revision=15599
* class.c: handle field offset correctly when class size
is set (bug# 45182, partially from a patch by [email protected] (Jerome Laban)).
svn path=/trunk/mono/; revision=15570
* namespace.cs: Add some information to reduce FAQs.
2003-06-13 Miguel de Icaza <[email protected]>
* cfold.cs (BinaryFold): BitwiseAnd, BitwiseOr: handle other
underlying enumeration types. Fixes#43915.
* expression.cs: Treat ushort/short as legal values to be used in
bitwise operations.
svn path=/trunk/mcs/; revision=15569
* System.ComponentModel/IExtenderProvider.cs: mono-stylized.
* System.ComponentModel/IComNativeDescriptorHandler.cs:
* System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr.
svn path=/trunk/mcs/; revision=15567
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
.NET, and it works fine on both if you cd to the proper dir before
running these tests.
svn path=/trunk/mcs/; revision=15564
* DecimalTest.cs: Make pass on .NET 1.1
* MarshalByRefObjectTest.cs: Avoid port conflict with other tests.
* SingleFormatterTest.cs: Ignore user overridden settings.
svn path=/trunk/mcs/; revision=15563
* DateTimeTest.cs (TestOA): Compare DateTime values instead of strings
to avoid "culture shock". Made a new AssertEquals() that is more
DateTime-friedly.
svn path=/trunk/mcs/; revision=15561
* NameTable.cs: Now uses a custom hashtable to implement. As a
result, when Get (char[], int, int) is called, a string is only
allocated if it is actually a new entry.
(StrEqArray) Compares a string and a char[]
(AddEntry) Adds a new entry to the hashtable
(Entry) Represents a hashtable entry.
svn path=/trunk/mcs/; revision=15551
* HttpWebClientProtocol.cs: handle cookies if the request is a
HttpWebRequest. It gets the cookies set in the response and sends them
on subsequent requests.
* SoapHttpClientProtocol.cs:
(GetWebRequest): just calls the base method.
(SendRequest): set the method here.
(Invoke): call GetWebResponse instead of request.GetResponse.
* WebClientProtocol.cs:
(GetWebRequest): set some properties of the request.
(GetWebResponse): if we get a WebException containing a response, return
that as the response and ignore the exception.
(GetWebResponse (req, async)): only call EndGetResponse.
svn path=/trunk/mcs/; revision=15536
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
milliseconds.
* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
svn path=/trunk/mcs/; revision=15535
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.
svn path=/trunk/mcs/; revision=15533
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
svn path=/trunk/mcs/; revision=15530
* mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
just distinguish between variables in registers and variables at
an offset relative to a register.
svn path=/trunk/mono/; revision=15509
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
channel" errors. Tests now pass.
* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
.NET 1.1 stuff.
svn path=/trunk/mcs/; revision=15490
* FileSystemInfoTest.cs: Works on .NET 1.1 now. If these values are
different on 1.0 then we need to wrap with a #if NET_1_1.
svn path=/trunk/mcs/; revision=15469
* XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
is not specified in the xsi attribute.
* XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
* XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
svn path=/trunk/mcs/; revision=15459
* io.c (SetFileAttributes): Implement the ReadOnly attribute, and
ignore the unsupported ones ("fixes" bug 44977).
2003-06-17 Dick Porter <[email protected]>
* file-io.h:
* file-io.c: File attributes need to be tweaked slightly when
passed from the managed to the w32 world.
svn path=/trunk/mono/; revision=15458
* profiler.h profiler-private.h profiler.c: Added infrastructure for
instruction level coverage data collection.
* profiler.h profiler.c (: Added new callback function which can be
used by the profiler to limit which functions should have coverage
instrumentation.
* profiler.c (mono_profiler_load): Call g_module_build_path to
generate the file name of the profiler library.
svn path=/trunk/mono/; revision=15448
* OptionDetails.cs :
- Now handles correctly options specifiying maxOccurs != 1 (that was preventing mbas from being useable)
- Now indicates if option parsing consumed a parameter or not (also checks if it is available first)
- Now multivalued options can either be given as many pairs option/parameter and also as a pair option/comma-separated-list, and both
Example: -r System.Data -r System.Xml or /r System.Data,System.Xml
- Now it is more lax in the form matching: -r /r -reference --reference /reference are valid for a ('r',"reference") option
* Options.cs : new BreakSingleDashManyLettersIntoManyOptions field to make more GNUish parsing of single letter options.
Makes -zxf become -z -x -f if set to true
svn path=/trunk/mcs/; revision=15443
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
this method set current node null.
* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
String.Empty instead of null (expected value).
* XmlTextReader.cs,
XmlUrlResolver.cs,
XmlInputStream.cs : fixed BaseURI problem (bug #44231).
svn path=/trunk/mcs/; revision=15440
* driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
is now implemented in the profiling API. Get rid of a couple of
unnecessary global variables.
svn path=/trunk/mono/; revision=15438
* System.Data.Common/DbDataAdapter.cs:
Add the DataTable to the result set even if it contains
no rows. Based on report by Krieg Andreas.
svn path=/trunk/mcs/; revision=15436
* RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
optimization when using the private key (DecryptValue). This
cut more than 5 seconds of nunit on my system (out of 14 sec
for complete asymmetric tests). Thanks to Ben Maurer for help!
svn path=/trunk/mcs/; revision=15431
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
* XmlTextReaderTests.cs : added ExternalDocument() which will result
in BaseURI test and DTD parameter entity test.
svn path=/trunk/mcs/; revision=15427
* XmlNodeReader.cs : this [name] and this [name, ns] (and
GetAttribute() methods in turn) returns null instead of String.Empty.
* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
prefix before auto-generating prefixes.
Implemented WriteBase64().
svn path=/trunk/mcs/; revision=15412
* .cvsignore: Ignore generated files (remove with make clean).
* CertificateFormatter.cs: Commented 2 lines as it didn't compile
with MCS (but did compile with CSC).
* gcertview.cs: Change app.ico (non-existing) to mono.bmp (16x16).
* gcertview.exe.config: New. Configuration file for gcertview (same
as certview.exe.config except it reference gcertview.exe instead of
certview.exe).
* makefile: Updated for linux by Ben Maurer.
svn path=/trunk/mcs/; revision=15410
in TypeStubInfo so serializers for headers they can be shared by several methods.
* SoapClientMessage.cs: Headers added in the constructor.
* SoapMessage.cs: Added header list initialization.
* SoapHttpClientProtocol.cs: Added support soap headers.
svn path=/trunk/mcs/; revision=15382
* threads.c (start_wrapper): Remove the reference to the thread
object in the TLS data, so the thread object can be finalized.
This won't be reached if the thread threw an uncaught exception,
so those thread handles will stay referenced :-( (This is due to
missing support for scanning thread-specific data in the Boehm GC
- the io-layer keeps a GC-visible hash of pointers to TLS data.)
svn path=/trunk/mono/; revision=15381
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
Set-Cookie* headers.
* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
been provided to the request.
svn path=/trunk/mcs/; revision=15379
* reflection.c: ensure streams and tables are first allocated with
ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
svn path=/trunk/mono/; revision=15378
2003-06-13 Herve Poussineau <[email protected]>
* SortedList.cs: Can enumerate on DictionaryEntries, not only on
keys on values. Enumerate by default on DictionaryEntries.
2003-06-14 Duncan Mak <[email protected]>
* SortedListTest.cs
(TestIndexer):
(TestEnumerator): Incorporated these two tests from Philippe
Lavoie <[email protected]>.
svn path=/trunk/mcs/; revision=15376
* reflection.c (mono_reflection_create_runtime_class): Add support for
properties to dynamically created classes.
* reflection.c: Fix a few places where non-MonoObjects were inserted
into the tokens hashtable.
svn path=/trunk/mono/; revision=15371
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
node for attributes. Modified to use private "document" property.
svn path=/trunk/mcs/; revision=15370
* System.Net/AuthenticationManager.cs: get the list of authentication
modules from the configuration files. Added Clear and fixed Unregister.
* System.Net/BasicClient.cs: fully implemented.
* System.Net/HttpWebRequest.cs: added support for Basic authentication
when credentials are set.
* System.Net/NetworkCredential.cs: fixed GetCredential.
* System.Net.Configuration/NetAuthenticationModuleHandler.cs: register
the modules using AuthenticationManager.
svn path=/trunk/mcs/; revision=15367
* HttpWebRequest.cs: *really* take care of requestSent to prevent
sending the same request twice.
* WebAsyncResult.cs: don't close the handle. Just Reset.
* WebConnectionStream.cs: removed unneeded line.
svn path=/trunk/mcs/; revision=15354
* HttpWebRequest.cs: use InternalClose when we are not going to send the
rest of the request stream because of an error after sending the
headers.
* WebConnection.cs: check for completion after setting the response.
Enable reading in NextRead.
* WebConnectionStream.cs: re-fixed the count for partially buffered
reads. If the network stream returns 0 bytes, we're done.
svn path=/trunk/mcs/; revision=15351
* object.h, object.c: more portability stuff from Bernie Solomon.
Unexport mono_object_allocate(). Added mono_object_unbox ().
Set exitcode when an unhandled exception is thrown.
svn path=/trunk/mono/; revision=15338
* FileStream.cs: Fix errors in previous checkins:
(Write): Only take the shortcut route if the data is longer than the
buffer length.
(Write): Flush the buffer before writing out the new data
(Write): Flush the buffer after writing out a segment since otherwise
we will go into an infinite loop.
(FlushBuffer): Remove my last change since it was clearly wrong.
(Seek): Run FlushBuffer () after the in-buffer seek optimization.
(Seek): Only use the in-buffer optimization if the buffer is not
empty.
(Length): Call FlushBuffer () since buffer data might change the size
of the stream.
svn path=/trunk/mcs/; revision=15336
* CommandTests.cs: Changed code to use parameter names starting with ':'. Added test for empty query.
* DataReaderTests.cs: Added test for parameter names overlap. Added test for nonexistent parameter name.
svn path=/trunk/mcs/; revision=15333
* NpgsqlCommand.cs: Fixed parameter replace bug when parameter names overlap. Thanks Ishpal Singh. Cleaned up the code.
* NpgsqlDataReader.cs: Fixed NPE bug when handling queries which doesn't return anything.
* NpgsqlParameter.cs: Added code to format parameter names to start with ':'.
* NpgsqlParameterCollection.cs: Added code to format parameter names to start with ':'.
svn path=/trunk/mcs/; revision=15332
* DSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into DSAManaged.
* RSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into RSAManaged.
* RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
* RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
svn path=/trunk/mcs/; revision=15330
* DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
be reused outside [ms]corlib because DSA constructor is internal :-(
* PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
(i.e. not limited to pre-calculated values for known hashes). Some
other API changes to ease the use of other hash algorithms.
* RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
class is required for custom PKCS#1 padding in SSL (which is not
possible using RSACryptoServiceProvider).
svn path=/trunk/mcs/; revision=15328
* BigInteger.cs: Added Clear to zeroize big integers and code to allow
compares with null (because operators == and != are re-defined). Note:
The class may still leak some private info in temp arrays (thanks Ben).
svn path=/trunk/mcs/; revision=15327
Added support for DefaultValueAttribute.
* XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
the value of an enum.
* XmlTypeMapMember.cs: Added DefaultValue attribute.
* XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
integer values.
svn path=/trunk/mcs/; revision=15326
* SybaseConnection.cs:
Make connection parameter parsing "more correct"
and throw appropriate exceptions, similar to MS SqlClient
* SybaseBinary.cs:
* SybaseBoolean.cs:
* SybaseByte.cs:
* SybaseDateTime.cs:
* SybaseDecimal.cs:
* SybaseDouble.cs:
* SybaseMoney.cs:
* SybaseString.cs:
Mass import of code from SqlClient to make this behave
better.
svn path=/trunk/mcs/; revision=15324
* MonoType.cs: don't throw nullref when the return type for a property
is specified and the property doesn't have a get accessor.
svn path=/trunk/mcs/; revision=15293
* XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
* XmlCustomFormatter.cs: small fixes.
* XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
* XmlSerializationWriter.cs: Implemented TopLevelElement().
WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
* XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
root elements.
svn path=/trunk/mcs/; revision=15288
generated, and a namespace declaration must be added.
* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
svn path=/trunk/mcs/; revision=15287
* acconfig.h:
* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
available.
2003-06-10 Dick Porter <[email protected]>
* socket-io.c: Don't assume that one of struct ip_mreqn or struct
ip_mreq is available
2003-06-10 Dick Porter <[email protected]>
* atomic.c: Delete the useless compile warning
svn path=/trunk/mono/; revision=15284
* Added Paolo's comments about CVS commits and changing code.
Also reorganized it a bit. Hopefully this is a more logical ordering.
svn path=/trunk/mono/; revision=15283
* configure.in: Make the libgc stuff actually work; we now create
a shared libmonogc.so when using the included libgc.
svn path=/trunk/mono/; revision=15264
* XmlDocumentNavigator.cs (GetNode): Make it implement
IHasXmlNode.
Hopefully I fixed the space/tab thing. Let's just all use
spaces, it's just easier....
svn path=/trunk/mcs/; revision=15262
* WebConnectionStream.cs: when the read is partially filled from the
initial buffer, add those bytes too. Thanks to Lluis for debugging this.
svn path=/trunk/mcs/; revision=15256
* CryptoConfig.cs: Now support OID in machine.config.
* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* RNGCryptoServiceProvider.cs: Changed USE_VERSION_
svn path=/trunk/mcs/; revision=15255
* HttpWebRequest.cs: added ExpectContinue property.
* WebConnection.cs: allow 100 Continue to be delayed after waiting for
it.
svn path=/trunk/mcs/; revision=15252
* class.c: ensure instance size always includes the parent's size
even whem class size is set explicitly (fixes bug#44294).
svn path=/trunk/mono/; revision=15248
* Makefile.am, mini-x86.c: rename cpu description array to
pentium_desc, since some compilers define the 'pentium' preprocessor
symbol.
svn path=/trunk/mono/; revision=15247
* daemon.c: Lookup env as a string array. Fixes bug 44289. Also
make setting the process handle value in the environment actually
work.
* processes.c: Pretty up the process name, if it happens to be
"mono" such as when another mono process forks "mono foo.exe"
svn path=/trunk/mono/; revision=15246
* Array.cs: Revert the last revert. I fixed it.
Here's a lesson: only commit the patches that you're absolutely
sure about. See, I committed 3 changes below, the Sort change
being the last one, and I was the least confident with it. But I
committed them all anyway. Big mistake.
So here we go again:
(Sort): Put a try-catch block around qsort, and wrap whatever
Exception we get into a InvalidOperationException.
svn path=/trunk/mcs/; revision=15228
* Array.cs: Throw more exceptions. This fixes the errors we see
from the Rotor testsuite.
(CreateInstance): Throw ArgumentNullException when the input are
null. Throw ArgumentOutOfRangeException when bounds + length is
greater than Int32.MaxValue.
(LastIndexOf): Throw ArgumentOutOfRangeException if index is outside
the valid range of indices of array.
(Sort): Throw InvalidOperationException when comparer is null and
none of the elements in keys implements IComparable.
svn path=/trunk/mcs/; revision=15209
* StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
a few Rotor bugs.
* ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
checking
We are now passing 37% of the System.Collections.* tests that were failing!
svn path=/trunk/mcs/; revision=15207
* FeatureAttr.cs: New file - Attributes for features (events and
properties)
* MethodRef.cs: Only resolve methods once.
* TypeDef.cs: Allow Events to be added to types. Also add
functionality to add generic type parameters to types. The
actually emission of these type parameters is commented out untill
I commit my patches to PEAPI and work out the syntax of constraints.
svn path=/trunk/mcs/; revision=15202
* libgc/: Integrate the libgc module here.
[Note: A simple `cvs update' won't work this time; you either need
to re-checkout the `mono' module or manually move the `libgc'
module here.]
* configure.in (--with-gc): Added `included' option to use the
included libgc. This is now also the default.
(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
(INCLUDED_LIBGC): New automake conditional.
(USE_INCLUDED_LIBGC): #define this if appropriate.
* autogen.sh: Run libgc/autogen.sh.
* Makefile.am (SUBDIRS): Added libgc.
svn path=/trunk/mono/; revision=15185
Length of the input array 'lengths' is greater than 255 so that we
won't see the g_assert that is in mono_array_class_get in class.c.
svn path=/trunk/mcs/; revision=15183
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
is known not to respond to that.
* ServicePoint.cs: added SendContinue property.
* WebConnection.cs: only wait 2 seconds for a continue reply. If it
timeouts, set SendContinue to false and proceeed sending data.
* WebConnectionStream.cs: if 100-continue is not received and instead we
get a 417 or anything else, don't send the data.
* WebClient.cs: implemented all missing properties and methods except
UploadFile.
svn path=/trunk/mcs/; revision=15180
* Stack.cs: Contains (null) works correctly. We never have the
array sized less than 16, so that the doubling logic works no
matter what. The enumerator is IClonable, like in ms. The
Enumerator correctly throws an exception if Current is called
before the enumerator is started. We now pass all the Rotor tests
for this file!
svn path=/trunk/mcs/; revision=15179
- Throw was added
- Multi-line statements partly implemented (still choking on some constructs)
- Fixed line continuation character ('_')
- Fixed Mod operator
- New runtime conversion (String -> CharArray) supported
- Array declaration code was completely rewritten to allow for expressions
to be used in a declaration
- Many sparse grammar fixes
- Started work to make the resolver case-insensitive (partially working)
svn path=/trunk/mcs/; revision=15176
* list.unix: added files.
* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
* System.Net/WebRequest.cs: added methods that are used by the new
configuration handler to set prefix/type name requests creators.
* System.Net.Configuration/WebRequestModuleHandler.cs: handles
system.net/webRequestModules configuration section.
svn path=/trunk/mcs/; revision=15160
* mini.c (mini_select_instructions): add explicit branch if the
following block is not the false target of a conditional branch -
we need this with any optimization that reorder or remove bblocks
* mini.c (optimize_branches): bug fixes
svn path=/trunk/mono/; revision=15159
* driver.c: Set the glib log levels to not abort if g_message
recurses.
g_set_prgname() has to happen before mini_init() so that the
process handle gets the info.
svn path=/trunk/mono/; revision=15139
* processes.c (process_set_current): Don't do an expensive handle
search at application startup, check the environment to see if the
process handle has already been created.
* io.c: Don't do an expensive handle search when creating stdin,
stdout and stderr handles, just create them all the first time one
is requested.
* wapi-private.h:
* shared.c:
* shared.h:
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon-private.h:
* daemon.c: Support for "unlimited" number of handles and scratch
data.
Speed up application startup by passing process handle in the
environment, rather than let the app scan all handles (which gets
really slow when there are more than a few thousand to check.)
Initialise some structs passed to syscalls, noticed by valgrind.
svn path=/trunk/mono/; revision=15137
* TypeTranslator.cs: added IsPrimitive() method
* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
used by that one. Also added Format property, that can be literal or encoded.
* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
* XmlSerializationReaderInterpreter.cs: added support for encoded format.
* XmlSerializationWriter.cs: added support for encoded format.
* XmlSerializationWriterInterpreter.cs: added support for encoded format.
* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
and a map is needed for them).
* XmlTypeMapMemberElement.cs: small fixes.
* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
svn path=/trunk/mcs/; revision=15130
* profiler.h, profiler.c: made the simple profiler thread-safe,
get more accurate timing info. Allow the loading of an
externally-developed profiler module.
svn path=/trunk/mono/; revision=15128
* delegate.cs: transfer custom attributes for paramenters from
the delegate declaration to Invoke and BeginInvoke.
svn path=/trunk/mcs/; revision=15099
* ArrayList.cs: nullify the array in Clear ().
* Queue.cs: nullify the array in Dequeue ().
* Stack.cs: nullify the array in Pop ().
svn path=/trunk/mcs/; revision=15094
* RandomTest.cs: Added a test to compare Mono's random streams with
MS implementation (framework and Rotor). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=15078
* KeyInfoRetrievalMethodTest.cs: Changed RetrievalElement to
RetrievalMethod to match W3C specification and framework 1.1.
svn path=/trunk/mcs/; revision=15075
* Queue.cs: Added argument checking in constructors according to
specs. Also changed default size to 32 as required by the specs.
svn path=/trunk/mcs/; revision=15074
* mini.c (mono_find_block_region): bug fix in region code
(mini_method_compile): enable removing unreachable code again, but
only in methods without exception clauses.
svn path=/trunk/mono/; revision=15068
* DoubleFormatterTest.cs: added the last changes from the author of
this test (Patrick Kalkman <[email protected]>).
* SingleFormatterTest.cs: added the first release of this test from
the same author: Patrick Kalkman <[email protected]>.
svn path=/trunk/mcs/; revision=15063
form [assembly]name first check if the assembly is this
assembly. Implement scope_blocks, and implement scope block form
exception handling.
svn path=/trunk/mcs/; revision=15045
* HandlerBlock.cs: Make label fields public so they can be
accessed in a TryBlocks constructor.
* MethodDef.cs: Allow random labels to be inserted at the current
position. These are use for scope blocks.
* TryBlock.cs: New constructor takes from and to labels as a HandlerBlock
svn path=/trunk/mcs/; revision=15044
but my response serializer still can not cope with the <return> feature of the RPC
model.
2003-06-01 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): If creating an RPC call, pass an
optional XmlElementAttribute with the namespace set to null; Use
this on each element of the request and response serializers.
(MakeRequestSerializer, MakeResponseSerializer): Use the empty
element for the return values.
* SoapRpcMethodAttribute.cs: Drop the default name on the
SoapRpcMethodAttribute, it was incorrectly given a default name.
svn path=/trunk/mcs/; revision=15043
* BitArray.cs: Rewrote, as it was failing most of the Rotor
tests. It now passes them 100%. Also fixes bug #43667.
svn path=/trunk/mcs/; revision=15036
is actually a primitive object type (System.String,
System.Object). Add custom attributes to types. Handle the il
keyword the exact same way as cil. Add ellipsises to param and sig
lists. Add an optional name to typelists, this is just parsed it
is not implemented properly. Add custom attributes to
methods. Implement custom types (just methodrefs to ctors).
svn path=/trunk/mcs/; revision=15027
* InstrTable.cs: Add stelem.r4 and stelem.r8 instructions. Add
. tail to unaligned modifier.
* LdtokenInstr.cs: Add type tokens.
* MethodDef.cs: Fix IsVararg, add method to add custom attributes,
emitting custom attributes when writing code, allow for Ellipsises
in param lists, add coma between args in signatures.
* ParamDef.cs: Add the Ellipsis pseudo param
* PrimitiveTypeRef.cs: System.String and System.Object can be
referenced without an [mscorlib] assembly prefix.
* TypeDef.cs: Add Custom attributes.
svn path=/trunk/mcs/; revision=15025
attributes. Attributes can now be added to ClassDefs and
MethodDefs. Still need to implement for other metadata elements.
Added the stele.r4 and stelem.r8 instructions, this should also
shift the stelem.ref instruction to the proper value (0xA2)
svn path=/trunk/mcs/; revision=15020
* RegisteredWaitHandle.cs: check that the callback is not null before
invoking.
* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
#43963). Queue the item before setting the handle. If there's a timeout,
avoid trying to Dequeue, getting the exception et al, just continue the
loop.
svn path=/trunk/mcs/; revision=15016
not the parameters. So still confused. Only needed for Google
2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): Start support for RPC style as well
as Literal style. Take an object instead of a
SoapDocumentMethodAttribute, and allow the value to be also a
SoapRpcMethodAttribute. Pull data from both.
Kill SoapBindingUse, we only use this during validation.
Turn out Google uses RPC/Literal, and its a good demo.
svn path=/trunk/mcs/; revision=15014
* Methods.cs (MakeResponseSerializer): OneWay is not the only
condition to catch; Also void return types are not required to
have a response.
(MakeRequestSerializer): InParameters *might* be ref parameters,
deal with that here too.
Add some debugging code for tracking down missing implementation
details in serialization creation.
svn path=/trunk/mcs/; revision=15013
* Methods.cs (MakeResponseSerializer): DUH. Use the
ResponseName/ResponseNamespace for the member import, not the
RequestName and RequestNamespace. The bugs of cut-and-paste.
svn path=/trunk/mcs/; revision=15011
* mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
Implemented arglist opcode and handling of TypedReference type.
Fixed x86 call convention when a structure is returned.
Minimal support for calling static vararg methods.
svn path=/trunk/mono/; revision=15009
* class.c, domain.c, icall.c, metadata.h, object.h: support for
handling TypedReference and ArgIterator.
* loader.c, loader.h: added function to get signature at call site.
svn path=/trunk/mono/; revision=15005
* mini.c (mini_method_compile): always remove unreachable code,
because the code in them may be inconsistent (access to dead
variables for example).
svn path=/trunk/mono/; revision=15004
a Soap invocation.
The result is still not handled though.
2003-05-29 Miguel de Icaza <[email protected]>
* SoapHttpClientProtocol.cs (CreateMessage): Kill. Move
functionality to Invoke.
(Invoke): Use new TypeStubInfo/MethodStubInfo instead.
* SoapClientMessage.cs: Drop old mechanism, use MethodStubInfo instead.
* Methods.cs: New file. Contains the managed for TypeStubs and
MethodInfoStubs.
A MethodInfoStub contains the serializers we use for the SOAP
request.
* SoapClientMessage.cs: Drop parameters from the clientmessage, it
does not belong here. Drop oneway, we canextract that from the
SoapDocumentMethodAttribute class that we pass.
svn path=/trunk/mcs/; revision=15003
* HttpWebRequest.cs (Close): Move the code that accumulates the
output to Close from Flush. Flush could have been called in the
middle of the processing, and would have generated invalid results
(which it did).
svn path=/trunk/mcs/; revision=15000
* PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
(as it's result isn't valid on both framework 1.0 and 1.1).
* RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
cloned the previous error into many more tests. Hopefully fixed.
svn path=/trunk/mcs/; revision=14999
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlMapping.cs: Added internal property.
* XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
* XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
* XmlReflectionMember.cs: XmlAttributes are now created by default
* XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
Implemented support for XmlMembersMapping.
* XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
svn path=/trunk/mcs/; revision=14997
* metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
data readonly. Buglets and warning fixes. Some MethodSpec support.
svn path=/trunk/mono/; revision=14987
* Array.cs: Added better argument checking to Array.Sort () (approved by Gonzalo)
* DBNull.cs: Made the conversions throw like they do in MS.
svn path=/trunk/mcs/; revision=14983
* RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
which doesn't throw the same exception under 1.1. Also converted
the tests to NUnit2 format.
svn path=/trunk/mcs/; revision=14982
from xml type to clr type.
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlReflectionMember.cs: Added default constructor.
* XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
* XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
Added support for enums. Added support for XmlElement and XmlNode.
Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
svn path=/trunk/mcs/; revision=14977
position, since MoveToNextAttribute may be called after it.
SetProperties(): attributes do not "inherit" the namespace.
* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
svn path=/trunk/mcs/; revision=14975
* XslTransform.cs: fixed NullReferenceExceptions after the last
change (which, btw, should have included a ChangeLog entry).
svn path=/trunk/mcs/; revision=14970
* XslTransform.cs: Initial support for extension objects.
Known issues:
Extension method signatures must match exactly to the
types of parameters that the method is called with from the stylesheet.
Node set parameters are converted to an ArrayList of strings.
* makefule.gnu: Added -unsafe flag, required by the above stuff.
* System.XML.build: Added /unsafe flag. Hope this is the right place.
svn path=/trunk/mcs/; revision=14951
* expression.cs (ArrayAccess.GetStoreOpCode): For System.IntPtr,
we use the stobj opcode.
(ArrayCreation.EmitDynamicInitializers): Revert Miguel's patch
since it wasn't the correct fix.
It still is puzzling that we are required to use stobj for IntPtr
which seems to be a ValueType.
svn path=/trunk/mcs/; revision=14944
* test-45.cs : Enable code which tests IntPtr array
initialization. This automatically serves as a test case for bug
#36030.
Improve test.
svn path=/trunk/mcs/; revision=14943
* mini.c: thread-static fields are registered in mono_class_vtable(),
so ensure the function is called before checking for them.
svn path=/trunk/mono/; revision=14937
* NativeWindow.cs : don't use CS_VREDRAW and CS_HREDRAW flags
* ImageList.cs
* ImageListStreamer.cs : small fixes
* TabControl.cs
* TabPage.cs : image list support was added
svn path=/trunk/mcs/; revision=14931
* ecore.cs (SimpleName.SimpleNameResolve): Consider using aliases
during regtular simple name resolution. Now, the trick is that
instead of returning for processing the simplename, we do a
TypeManager.LookupType (ie, a rooted lookup as opposed to a
contextual lookup type). If a match is found, return that, if
not, return for further composition.
This fixes long-standing 30485.
svn path=/trunk/mcs/; revision=14916
* X509CertificateTest.cs: Commented some tests in Certificate13 (the
DSA certificate without any key parameters) because MS implementation
cannot use the X509Certificate(X509Certificate) to instance it.
svn path=/trunk/mcs/; revision=14914
2003-05-26 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): For now, do not
free the string, until we get a chance to fix Gtk#
svn path=/trunk/mono/; revision=14909
* basic-long.cs: add regression test for (long)int * (long)int
* cpu-pentium.md: add op_bigmul specification
* inssel-long32.brg: add OP_BIGMUL rule
* mini-ops.h: add OP_BIGMUL
* mini-x86.c: register allocator: handle case where src1 needs to be
in EAX.
* mini.c: substitute special BIGMUL opcode in the tree for
(long)int * (long)int
svn path=/trunk/mono/; revision=14907
* DataViewTest.cs: Added new test from
Patrick Kalkman
* data_linux_test.args: Updated for new test in System.Data
svn path=/trunk/mcs/; revision=14902
* expression.cs (IndexerAccess.Emit, IndexerAccess.EmitAssign):
Pass `is_base_indexer' to Invocation.EmitCall instead of false.
Because if we are a BaseIndexerAccess that value will be true.
Fixes 43643.
svn path=/trunk/mcs/; revision=14897
* expression.cs (PointerArithmetic.Emit): If our operand is a
long, convert our constants to match the operand before
multiplying. Convert to I type before adding. Fixes 43670.
svn path=/trunk/mcs/; revision=14895
* NameTable.cs : Add() sets the given name string interned.
* XmlParserContext.cs : added internal PushScope() and PopScope() to
hold stacks of xml:base, xml:lang and xml:space.
* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
property for stacked attributes). Renamed Initialize() to Initialize-
Context(). Modified to use XmlParserContext.PushScope()/PopScope().
svn path=/trunk/mcs/; revision=14891
* win32functions.cs : added some prototypes required for ImageList impl.
* win32strcuts.cs : added new structs, switched to CharSet.Ansi for TCITEM struct
* win32Enums.cs : use ansi messages for tab control
svn path=/trunk/mcs/; revision=14888
* mini.h, mini.c: ensure correct initialization order for types that
require it. Prepare for lazy compilation of jit icall wrappers.
Provide a name for opcode emulation to reduce unneeded mallocing.
svn path=/trunk/mono/; revision=14880
* XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
to match framework 1.1 (this was a bug in framework 1.0).
svn path=/trunk/mcs/; revision=14876
* ExternMethodRef.cs: Resolve vararg methods
* GlobalMethodRef.cs: Set calling conventions, add vararg methods
* MethodDef.cs: Set calling conventions, add vararg methods
* MethodRef.cs: Set calling conventions, add vararg methods
* TypeDef.cs: Resolve vararg methods
* TypeRef.cs: Add Ellipsis pseudo type, this should never really
be used as a type, but is stored in arrays with other types. Pass
call convs to methodref constructor.
svn path=/trunk/mcs/; revision=14869
from labels.
* FaultBlock.cs: Remove typo causing to labels to be the same as
from labels.
* FilterBlock.cs: Remove typo causing to labels to be the same as
from labels.
* MethodDef.cs: Allow for multiple labels to point to the same
line. ie:
END_BLOCK:
PASS:
do stuff
svn path=/trunk/mcs/; revision=14853
block
* FaultBlock.cs: New file - Initial implementation of a fault
block
* FilterBlock.cs: New file - Initial implementation of a filter
block
* FinallyBlock.cs: New file - Initial implementation of a finally
block
* HandlerBlock.cs: New file - A handler block is the block
assosciated with a SEH clause
* ISehClause: New file - Interface that structured exception
handling clauses must implement.
* TryBlock.cs: New file - Initial implementation only supports
label form SEH. This TryBlock is added to a method as an
instruction out of convenience, tryblock is not an instruction.
svn path=/trunk/mcs/; revision=14826
referenced in the grammar. need to check if these keywords work on
MS ilasm.
* NumberHelper.cs: Parse numbers as Unsigned then cast to long
otherwise an overflow exception is thrown. (is this a classlib bug?)
svn path=/trunk/mcs/; revision=14822
only INT_I8 instruction is ldc.i8 so this new code does more
checks then needed but is written in anticipation of some new long
instructions being found. Implement signature instructions, token
instructions, and signatures. Convert INT32s masquerading as
INT64s to Int64.
svn path=/trunk/mcs/; revision=14789
* Ldtoken.cs: New file - The ldtoken instruction
* InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
MiscToken.ldc_i8 value.
svn path=/trunk/mcs/; revision=14787
* enum.cs (ImplicitConversionExists) : Rename to
ImplicitEnumConversionExists to remove ambiguity.
* ecore.cs (NullCast): New type of cast expression class which
basically is very similar to EmptyCast with the difference being
it still is a constant since it is used only to cast a null to
something else
(eg. (string) null)
* convert.cs (ImplicitReferenceConversion): When casting a null
literal, we return a NullCast.
* literal.cs (NullLiteralTyped): Remove - I don't see why this
should be around anymore.
The renaming (reported was slightly wrong). Corrections:
ConvertImplicitStandard -> ImplicitConversionStandard
ConvertExplicitStandard -> ExplicitConversionStandard
* expression.cs (StaticCallExpr.MakeSimpleCall): Resolve arguments
before passing them in !
* convert.cs (ImplicitConversionStandard): When comparing for
equal expr and target types, ensure that expr is not a
NullLiteral.
In general, we must not be checking (expr_type ==
target_type) in the top level conversion methods
(ImplicitConversion, ExplicitConversion etc). This checking is
done in the methods that they delegate to.
svn path=/trunk/mcs/; revision=14773
* mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
I1 to registers because there is no simply way to sign extend 8bit
quantities in caller saved registers on x86.
* inssel-float.brg: set costs of some rules to 2 so
that monobure always select the arch. specific ones if supplied,
regardless of the order we pass the files to monoburg.
svn path=/trunk/mono/; revision=14757
* icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
to return the invisible global type for a module.
* reflection.c (mono_image_build_metadata): Emit global fields too.
svn path=/trunk/mono/; revision=14755
* ModuleBuilder.cs:
- Implement DefineInitializedData in terms of DefineUninitializedData
- Name the types of global fields $ArrayType$<len> to cut back on the
number of types created
- Add argument checking
svn path=/trunk/mcs/; revision=14752
* FloatingPointFormatter.cs: Take care with the explicit precision
and round the number to that precision.
* DoubleFormatter.cs: Adapt to the two level precision (15 - 17).
* SingleFormatter.cs: Adapt to the two level precision (7 - 8).
svn path=/trunk/mcs/; revision=14742
* main.c (print_skel_dir): New function called when jay is
passed '-p'; prints the directory where the default skeleton
files are installed ($(prefix)/share/jay).
* makefile (CFLAGS): Add a -DSKEL_DIRECTORY to support
print_skel_dir.
* jay.1: Document the -p parameter.
svn path=/trunk/mcs/; revision=14732
* win32Enums.cs : added some error codes for common dialogs
* win32functions.cs : added prototype for CommDlgExtendedError
svn path=/trunk/mcs/; revision=14727
* reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
literal strings.
* appdomain.c (set_domain_search_path): Recalculate search path when
AppDomainSetup.PrivateBinPath changes.
* object.c (mono_class_compute_gc_descriptor): It turns out some
parts of the class libs (like System.Thread) holds pointers to
GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
to treat native int a pointer type here.
svn path=/trunk/mono/; revision=14726
* mini.c, mini-x86.c: since the magic trampoline for jumps
can't patch the code directly, we do it as soon as the
method gets compiled.
svn path=/trunk/mono/; revision=14725
* mini-x86.c, mini.h: introduce a new patching method
to support CEE_JMP and tail calls.
* mini.c: obey tail.call. Don't precompile methods target
of CEE_JMP.
* tramp-x86.c: new trampoline code to handle methods
reached through a jump.
svn path=/trunk/mono/; revision=14722
* Assembly.cs (GetManifestResourceStream): Moved handling of
linked resources into managed code using the newly implemented
GetManifestResourceInfo () method.
svn path=/trunk/mcs/; revision=14717
* FileTest.cs:
* StreamReaderTest.cs:
* StreamWriterTest.cs: Workaround for process holding on to directory
that prevented cleanup and deletion.
svn path=/trunk/mcs/; revision=14715
* ConstructorBuilder.cs MethodBuilder.cs: Remove unnecessary MonoTODO
attributes.
* TypeBuilder.cs: "Implement" various methods not supported under
MS.NET.
* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
methods not supported under MS.NET.
svn path=/trunk/mcs/; revision=14706
* threads.c: Set the new thread's stack size to 2M. Fix needed
for BSD, reported by Martin Dvorak <[email protected]>
svn path=/trunk/mono/; revision=14699
* reflection.h reflection.c icall.c: Added new icalls
GetManifestResourceInfoInternal, GetModulesInternal and support
infrastructure.
svn path=/trunk/mono/; revision=14696
* FileStream.cs (FlushBuffer): After a flush, the buffer should be
advanced by buf_offset bytes, not buf_length bytes.
svn path=/trunk/mcs/; revision=14693
* statement.cs (TypeInfo.StructInfo): Made this type protected.
(TypeInfo): Added support for structs having structs as fields.
* ecore.cs (FieldExpr): Implement IVariable.
(FieldExpr.DoResolve): Call VariableInfo.GetSubStruct() to get the
VariableInfo for the field.
svn path=/trunk/mcs/; revision=14686
methods using array methods if owners are arrays, resolve methods
named <init> as .ctor.
* ExternTable.cs: Add method to get value classes.
* ExternTypeRef.cs: Add AsClassRef method, GetMethodRef now takes
calling conventions.
* IClassRef.cs: GetMethodRef now takes calling conventions
* ITypeRef.cs: Add IsArray IsRef and AsClassRef methods
* MethodRef.cs: Change <init> to .ctor
* PeapiTypeRef.cs: This class is no longer an ITypeRef because it
cannot be converted to a IClassRef. Add IsArray and IsRef, use new
Class::GetArray* methods to convert to arrays.
* PrimitiveTypeRef.cs: Add method to convert to an IClassRef
* TypeRef.cs: Add IsArray and IsRef, add method to convert to
IClassRef. GetMethodRef now takes calling conventions
svn path=/trunk/mcs/; revision=14682
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14678
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14674
* expression.cs (This.ResolveBase): New public function.
(This.DoResolve): Check for CS0188.
* codegen.cs (EmitContext.This): Just call This.ResolveBase(), not
This.Resolve().
* ecore.cs (MethodGroupExpr.DoResolve): Set the
`instance_expression' to null if we don't have any non-static
methods.
svn path=/trunk/mcs/; revision=14671
* RdpPattern.cs : Some method name capitalization.
Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.
svn path=/trunk/mcs/; revision=14666
Reworked the way how local variables and parameters are handled by
the flow analysis code.
* statement.cs (TypeInfo, VariableMap): New public classes.
(VariableInfo): New public class. This is now responsible for
checking whether a variable has been assigned. It is used for
parameters and local variables.
(Block.EmitMeta): Take the InternalParameters as argument; compute
the layout of the flow vectors here.
(Block.LocalMap, Block.ParameterMap): New public properties.
(FlowBranching): The .ctor doesn't get the InternalParameters
anymore since Block.EmitMeta() now computes the layout of the flow
vector.
(MyStructInfo): This class is now known as `StructInfo' and nested
in `TypeInfo'; we don't access this directly anymore.
* ecore.cs (IVariable): Added `VariableInfo VariableInfo'
property and removed IsAssigned(), IsFieldAssigned(),
SetAssigned() and SetFieldAssigned(); we now call them on the
VariableInfo so we don't need to duplicate this code everywhere.
* expression.cs (ParameterReference): Added `Block block' argument
to the .ctor.
(LocalVariableReference, ParameterReference, This): The new
VariableInfo class is now responsible for all the definite
assignment stuff.
* codegen.cs (EmitContext.IsVariableAssigned, SetVariableAssigned,
IsParameterAssigned, SetParameterAssigned): Removed.
svn path=/trunk/mcs/; revision=14661
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
and replaced some Assert() with AssertEquals().
Applied USE_VERSION_1_1 to TestConstructor().
svn path=/trunk/mcs/; revision=14660
* AssemblyBuilder.cs (corlib_void_type): New internal field.
(SetCorlibTypeBuilders): Added overloaded version which takes 4
arguments to set the `corlib_void_type'.
* TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
of `typeof (void)' to make this work when compiling corlib.
svn path=/trunk/mcs/; revision=14659
* typemanager.cs (InitCoreTypes): Try calling
SetCorlibTypeBuilders() with 4 args; if that fails, fall back to
the 3-args-version. Corlib now also needs our `void_type'.
(GetMethod): Added overloaded version which takes an optional
`bool report_errors' to allow lookups of optional methods.
svn path=/trunk/mcs/; revision=14658
* XmlTextWriterTests.cs : added FlushDoesnTCloseTag() and
WriteWhitespaceCloseTag() (patch by Jonathan Hogg).
added more tests to AttributeWriteAttributeString().
* XmlAttributeTests.cs : SetInnerTextAndXml() rewrite.
svn path=/trunk/mcs/; revision=14657
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
any open attributes or elements. WriteWhitespace() checks state and
closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
when it is called inside attribute value.
* XmlException.cs : added .NET 1.1 .ctor.
* added XmlSecureResolver.cs (only stubbing).
* XmlAttribute.cs : set_InnerXml() should remove children.
* XmlAttribute.cs,
XmlElement.cs,
XmlDocumentFragment.cs,
XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
* XmlNode.cs : RemoveAll() should also remove all attributes.
* XmlTextRader.cs : .ctor() for attribute value reader should add
quotations at initialization, since it requires quote chars.
* XmlWriter.cs : WriteAttributeString() more correct xmlns check.
svn path=/trunk/mcs/; revision=14655
* Array.cs Fixed SyncRoot to behave like MS (return this). Removed
MonoTODO from SyncRoot (because fixed) and IsSynchronized (it was
behaving correctly).
svn path=/trunk/mcs/; revision=14652
* X509CertificateTest.cs: Added DSA certificate without any key
parameters (shared group is available in the issuer certificate).
svn path=/trunk/mcs/; revision=14642
* debug-mini.c (mono_init_debugger): New function to initialize
the debugger. This is not in the debugger since it needs to
access some of mini's internals.
svn path=/trunk/mono/; revision=14637
* makefile (install): Call the install in makefile.gnu
* makefile.gnu (install): Actually install jay and its skeleton
files. (and docs, and manpage...)
svn path=/trunk/mcs/; revision=14635
* UnixEndPoint.cs: New property to get and set the filename, like
the IPEndPoint has for the IP address. Also implement ToString().
svn path=/trunk/mcs/; revision=14626
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added
svn path=/trunk/mcs/; revision=14614
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
svn path=/trunk/mcs/; revision=14613
* XmlSerializerTests.cs : fixed some argument orders and fixed
timezone dependent part of TestSerializeDateTime().
svn path=/trunk/mcs/; revision=14612
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
and not well-formed xml of OuterXmlWithDefaultXmlns().
* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
WriteToWithDefaultNamespace().
* XmlNodeReaderTests.cs : fixed incorrect result expectation of
ReadInnerXmlWrongInit().
* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
* XmlReaderCommonTests.cs,
XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
to resolve these entity references.
* XmlTextWriterTests.cs : removed English-dependent error message check.
fixed incorrect state-check ignorant blocks of WriteAttributes ().
* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
XmlDecl() as MS.NET results in.
svn path=/trunk/mcs/; revision=14610
* MethodBuilder.cs: off by one in CreateMethodBody().
* TypeBuilder.cs: if the return type for a method is null, use void.
svn path=/trunk/mcs/; revision=14609
* mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
* jit-icalls.c, exceptions.cs: fixed index out of range checks, added
test case.
svn path=/trunk/mono/; revision=14598
Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>
* inssel-x86.brg: fixed thinko in int to double conversions.
svn path=/trunk/mono/; revision=14595
* DirectoryInfo.cs: fixed bug #42991.
* Path.cs:
(CanonicalizePath): store the value of the trimmed input string. Make it
work with paths such as "/home/xxx/.".
svn path=/trunk/mcs/; revision=14585
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
Take care of the exception teh may be throw by MapPath on an invalid
path.
* System.Web.UI/TemplateParser.cs: removed unused method.
* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
the same, but this one is better.
* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.
svn path=/trunk/mcs/; revision=14566
deserialized object and the headers.
* MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
now interpreted as the uri of the target object. This seems to be MS.NET
behavior.
* BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
if provided.
svn path=/trunk/mcs/; revision=14559
* PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
unit test (will work on Mono but fails with MS implementation).
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
both Mono and MS (under Windows XP) generated OAEP results.
* RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
svn path=/trunk/mcs/; revision=14524
* PKCS1MaskGenerationMethod.cs: Added comment to justify why
the class is no more compatible with MS implementation (the bug
was preventing OAEP to work properly).
svn path=/trunk/mcs/; revision=14523
* gc.c: Don't run finalizers when the finalizer thread is
finishing up, because the default domain has already been
destroyed.
svn path=/trunk/mono/; revision=14518
2003-05-12 Miguel de Icaza <[email protected]>
* support.cs (InternalParameters.ParameterType): Return the
ExternalType of the parameter.
* parameter.cs (Parameter.ExternalType): drop the two arguments,
they were unused.
svn path=/trunk/mcs/; revision=14509
* class.cs (MethodData.Define): Do not set the `newslot' on
interface members, if they are also flagged as "override".
* expression.cs (UnaryMutator.EmitCode): Simple workaround to emit
better code for ++i and i++. This only works for static fields
and local variables.
svn path=/trunk/mcs/; revision=14506
* string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
value is null, we should throw an exception. This is slightly
different than the other conventions used for the constructor.
svn path=/trunk/mono/; revision=14505
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14503
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14501
* typemanager.cs (LookupDeclSpace): Add new method, sometimes we
want to pull the DeclSpace out of the builder_to_declspace instead
of the TypeBuilder (like in TypeContainer.FindMembers).
* class.cs (TypeContainer.FindMembers): Use LookupDeclSpace
instead of LookupTypeContainer. Fixes the crash on .NET for
looking up interface members.
svn path=/trunk/mcs/; revision=14499
* const.cs: Create our own emit context during the Definition
stage, so that constants are evaluated in the proper context, when
a recursive definition happens.
svn path=/trunk/mcs/; revision=14498
* statement.cs (Block.CreateSwitchBlock): New method. Creates a
new block for a switch section.
(Block.AddLabel, Block.LookupLabel): If we're a switch section, do
the adding/lookup in the switch block. Fixes#39828.
svn path=/trunk/mcs/; revision=14495
+2003-04-30 Miguel de Icaza <[email protected]>
+
+ * SoapHttpClientProtocol.cs: Flag the methods in the chain that
+ gets the caller method as non-inlineable.
svn path=/trunk/mcs/; revision=14490
* inssel-long32.brg, basic-long.cs, exceptions.cs: handle
a couple of missing operations for long casts, with test cases.
svn path=/trunk/mono/; revision=14484
* Binder.cs (ChangeType): Very simplistic change. Am not sure if
it is correct, but it makes RemotingCorba move along a bit more
(Remoting.Corba invokes Binder.ConvertArgs, which calls
Binder.ChangeType with an Attribute [] to Object []).
svn path=/trunk/mcs/; revision=14482
* ExternFieldRef.cs: New file - Reference to a field in another
assembly
* FieldRef.cs: New file - Reference to a field in this assembly
* GlobalFieldRef.cs: New file - Reference to a global field
* FieldInstr.cs: New file - Instruction that takes a field
instruction
* CodeGen.cs: Add method to resolve global methods
* ExternTypeRef.cs: Add method to get method references
* FieldDef.cs: Allow methods to be resolved before being defined
* IClassRef.cs: Add method to get field references.
* TypeDef.cs: Add method to resolve member fields.
* TypeRef.cs: Add method to get field references
svn path=/trunk/mcs/; revision=14476
* Encoding.cs (GetEncoding): Add all the aliases documented in the
framework. We were missing a few.
Reorganize the table. Also, convert the input name into the
lower-case - to _ before we compare against our table.
svn path=/trunk/mcs/; revision=14472
* CodeGen.cs: Store global methods and fields in hashtables to
make lookup easier. Add method to resolve global methods.
svn path=/trunk/mcs/; revision=14465
implement
* ExternMethodRef.cs: New file - Reference to a method in another
assembly
* Local.cs: New file - A Local variable
* MethodInstr.cs: New file - an instruction that takes a method
reference operand
* IClassRef.cs: Add method to get a method reference from a class
reference
* MethodDef.cs: Add ability to resolve methods before defining
them, add max stack, locals, and entry point. Make CreateSignature
method public and static so other classes can use it.
* TypeDef.cs: Store methods and fields in hashtables so they can
be easily retrieved, add method to resolve member methods.
* TypeRef.cs: Add method for resolving member methods.
svn path=/trunk/mcs/; revision=14458
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
svn path=/trunk/mcs/; revision=14454
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
reporting.
svn path=/trunk/mcs/; revision=14448
* io.c (CopyFile): Copy file mode as well as file data. Based on
suggestion by Giuseppe Greco <[email protected]>, bug
42706.
svn path=/trunk/mono/; revision=14447
* DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
* KeySizes.cs: Class is now sealed in v.1.1.
* MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
* RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
svn path=/trunk/mcs/; revision=14438
* AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
from original 1.0 documentation (but inclufed in framework 1.0)
svn path=/trunk/mcs/; revision=14435
* list.unix: added missing file.
* System.Xml.Serialization/XmlReflectionImporter.cs: created an
instance field because GetTypeData method of TypeTranslator is not
static.
This just fixes the build, but the changes may NOT be correct.
svn path=/trunk/mcs/; revision=14432
* Added TypeTableEntry.cs.
* TypeTranslator.cs : changed for non-static use.
* XmlAttributes.cs : XmlType attribute support for GetAttributeName()
and GetElementName(). Bugfix so that if any XmlElementAttribute
exists after non-typed XmlElementAttribute then it might be ignored.
Added GetElementIsNullable().
* XmlSerializer.cs :
Introduced TypeTablePool and TypeTableEntry and erased ambiguous
Object memberObj[4].
Deserialize() now uses XmlReader.Depth to check its depth.
Serialize() for non-XmlReader arguments now always write xmldecl.
SerializeBuiltin() now explicitly requires Type to support xsi:nil,
and handles XmlQualifiedName.
Separated SerializeType () from Serialize().
Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
IsPropertyTypeSerializable() from SerializeMembers().
SerializeMembers() is now capable of null value and actual type,
which should be included by XmlIncludeAttribute and so on.
Renamed SerializeArray() to SerializeArrayContent(), and added
SerializeCollectionContent().
SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
FillTypeTable() is now aware of XmlInclude attributes.
FillEnum() should not have different type table content from others.
svn path=/trunk/mcs/; revision=14429
* expression.cs (UnaryMutator.LoadOneAndEmitOp): Missing
functionality: I needed to convert the data after I had performed
the add/sub operation into the operands type size.
svn path=/trunk/mcs/; revision=14427
* ecore.cs (ImplicitReferenceConversion): When boxing an interface
pass the type for the box operation, otherwise the resulting
object would have been of type object.
(BoxedCast): Add constructor to specify the type to box as.
svn path=/trunk/mcs/; revision=14426
* DataGridColumnCollection.cs: fixed LoadViewState for the columns.
Don't save ViewState is the number of columns is 0.
svn path=/trunk/mcs/; revision=14421
* MulticastDelegate.cs (GetInvocationList): Avoid ArrayList
construction if the delegate list only has one element.
svn path=/trunk/mcs/; revision=14420
* class.c (mono_class_layout_fields): Add experimental GC aware
auto layout facility. Requires class library changes to work correctly.
(mono_class_setup_vtable): Avoid overriding explicit interface
method implementations. Fixes iface3.exe test.
* object.c (mono_class_compute_gc_descriptor): Type I can't hold an
object reference.
(mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
(mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
* metadata.h: Add new type classification macro which determines
whenever the type holds an object reference.
svn path=/trunk/mono/; revision=14419
* Added many new properties to Combo.cs
* Fixed the TextBox.Text get property
* Fixed some properties in Form.cs
* Small code cleanups
svn path=/trunk/mcs/; revision=14409
* mono/tests/Makefile.am:
- Compile with mcs.
- Disable some warnings.
- Added executables to clean target.
- Make testjit the default target.
- Print list of failed tests at the end of a test run.
- Abort tests when Ctrl-C is pressed.
* mono/tests/test-driver: Return with a special exit code when
SIGINT is detected.
* mono/tests/checked.cs: Make it compile.
svn path=/trunk/mono/; revision=14406
* Path.cs
(GetPathRoot) Added support for UNC paths.
(CanonicalizePath) Added optimizations per Miguel's requests.
* PathTest.cs
Even more GetFullPath () tests. Includes UNC tests.
svn path=/trunk/mcs/; revision=14383
Patches from Igor Nosyryev <[email protected]>
* TdsComm.cs: (GetString): GetString adds extra byte to a string
at end. It suppose to be '\0', but '\0' is valid value in .NET
string, so this byte must not be used.
* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
field contains NULL. As a result server's response is parsed
incorrectly and this method fires an exception.
svn path=/trunk/mcs/; revision=14378
* ScrollableControl.cs : registration of "mono_scrollable_control" was moved to Control class
* win32functions.cs : new constant DEFAULT_WINDOW_CLASS
* PictureBox.cs : implemented
svn path=/trunk/mcs/; revision=14371
* BufferedStream.cs:
- Removed unusefull code.
- Added ObjectDisposedException to Position
- Dont flush if stream is allready closed.
- Flush throws also ObjectDisposedException.
* Directory.cs:
- GetFileSystemEtries: ArgumentNullException if pattern is null
* DirectoryInfo.cs: Fixed little MoveTo () bug.
* FileInfo.cs:
- Exists: If file does not exists when instance is created the
value of the Exists property does not change even if file is created
afterwards.
- Delete: If path is a directory UnauthorizedException is thrown.
- CopyTo: Now we can overwrite file if wanted.
* Path.cs:
- GetFullPath: Now throws exception when path is " ".
svn path=/trunk/mcs/; revision=14370
* TextBox.cs : use styles provided by TextBoxBase
* TextBoxBase.cs : more methods and properties were implemented
* win32enums.cs : messages and notifications for EDIT control
svn path=/trunk/mcs/; revision=14367
* CompilationException.cs: don't add duplicated lines in the case that
mcs reports several errors for the same one.
svn path=/trunk/mcs/; revision=14344
* attribute.cs (Attribute.Resolve): Params attributes are encoded
by creating an array at the point where the params starts and
putting all those arguments there, then adjusting the size of the
array.
svn path=/trunk/mcs/; revision=14343
* System.Web/HttpException.cs: encode as HTML the inner exception that
is appended as a comment at the end of error pages.
* System.Web.Compilation/AspGenerator.cs: fully support including files,
ie., treat them just as C treats #includes.
* System.Web.UI/RootBuilder.cs: throw exception when the tagprefix
is not valid or not found.
svn path=/trunk/mcs/; revision=14316
because we need to implement the method on Windows.
* Path.cs
(CanonicalizePath) Added new function to get
rid of . and .. in path names. Need to figure out what
other functions should call this.
(GetFullPath) Added call to the above function. Fixes
bug 42303
svn path=/trunk/mcs/; revision=14314
* expression.cs (New.AddressOf): Implement interface
IMemoryLocation. This is used when the `new' operator is used in
the context of an invocation to a method on a value type.
See http://bugzilla.ximian.com/show_bug.cgi?id=#42390 for an
example.
svn path=/trunk/mcs/; revision=14311
* namespace.cs: Also check the using aliases here.
* driver.cs: Move the test for using validity after the types have
been entered, so we do a single pass that also includes the using
aliases.
svn path=/trunk/mcs/; revision=14310
* statement.cs (Try.Resolve): Avoid crashing if there is a failure
in the regular case. CreateSiblingForFinally is doing extra
error checking.
svn path=/trunk/mcs/; revision=14309
* attribute.cs (GetAttributeArgumentExpression): Store the result
on an out value, and use the return value to indicate failure
instead of using null (which is a valid return for Constant.GetValue).
* statement.cs: Perform the analysis flow for the increment
portion after the statement, because this will be the real flow of
execution. Fixes#42385
svn path=/trunk/mcs/; revision=14307
* io-layer/handles.c: added some debugging code. Call GC_gcollect
before creating a new handle. It makes Lupus' test run smoother and
faster (from 62 to 83 request per second). Notice that calling
GC_finalizer_notifier if needed (GC_should_invoke_finalizer ()) does
not improve nor degrade the performance, so i don't do it.
* metadata/socket-io.c:
(Select_internal): allow NULLs, don't create arrays if not needed.
Coupled with Socket.cs changes.
* metadata/threadpool.c:
(mono_thread_pool_add): use GC_MALLOC to allocate the ASyncCall and
register a finalizer for it that will close the semaphore handle. This
fixes the leak and make Lupus' test run with > 4080 loops.
svn path=/trunk/mono/; revision=14297
* codegen.cs (EmitContext.EmitArgument,
EmitContext.EmitStoreArgument): New helper functions when the
RemapToProxy flag is set.
* expression.cs (ParameterReference.EmitLdarg): Expose this useful
function.
Add support for remapping parameters.
* iterators.cs: Propagate parameter values; Store parameter
values in the proxy classes.
* ecore.cs (FieldExpr): Fix an obvious bug. static fields do not
need a proxy reference; I do not know what I was thinking
svn path=/trunk/mcs/; revision=14290
* cs-parser.jay (field_declaration): catch void field declaration
to flag a better error.
* class.cs (MemberBase.CheckBase): Report an error instead of a
warning if a new protected member is declared in a struct.
(Field.Define): catch the error of readonly/volatile.
* ecore.cs (FieldExpr.EmitAssign): reuse the field lookup.
(FieldExpr.AddressOf): ditto. Catch error where the address of a
volatile variable is taken
svn path=/trunk/mcs/; revision=14286
* MiscInstr.cs: New file - Just an enum that gives me constant
values for instructions PEAPI does not define in an enum
* InstrTable.cs: Use new MiscInstr constants instead of string values.
svn path=/trunk/mcs/; revision=14272
* ChangeLog : Added missing ChangeLog of 2003-04-25.
* XmlCustomFormatter.cs : Fixed FromXmlNmTokens() to contain
separators. Added experimental method ToEnum().
* XmlSerializationReader.cs : unconfirmed implementation of
ReadSerializable() and ToEnum().
* XmlSerializationWriter.cs : fixed WriteAttribute() so that if value
is null then no output will be written.
Fixed WriteStartElement(), WriteElement*() and WriteEmptyTag()
to use custom formatted name.
svn path=/trunk/mcs/; revision=14268
* System.Reflection/Assembly.cs: implemented GetSatelliteAssembly.
* System.Resources/ResourceManager.cs: enabled the code that calls
GetSatelliteAssembly and ignore the exception thrown if the assembly
cannot be loaded.
svn path=/trunk/mcs/; revision=14252
* debug-mono-symfile.h
(MonoSymbolFile): Moved declaration into mono-debug.h.
(MonoDebugMethodJitInfo): Likewise.
(mono_debug_open_mono_symbol_file): Take the MonoDebugHandle as
argument.
(_mono_debug_address_from_il_offset): Take a
MonoDebugMethodJitInfo instead of a MonoDebugMethodInfo.
* mono-debug.h
(MonoDebugDomainData): New struct.
(mono_debug_get_domain_data): New function.
(mono_debug_add_method): Take an additional `MonoDomain *'
argument.
(mono_debug_source_location_from_address): Likewise.
(mono_debug_il_offset_from_address): Likewise.
(mono_debug_address_from_il_offset): Likewise.
svn path=/trunk/mono/; revision=14245
* System.Web.Compilation/AspGenerator.cs:
* System.Web.Compilation/AspParser.cs:
* System.Web.Compilation/TagType.cs:
* System.Web.UI/TemplateParser.cs: Added support for server side
includes.
svn path=/trunk/mcs/; revision=14242
* ResourceManager.cs: fixed the name for the file when the culture is
not de invariant culture. Commented out the GetSatelliteAssembly code
to avoid NotImplementedException being thrown.
svn path=/trunk/mcs/; revision=14234
* System.Web.Compilation/CSCompiler.cs: actually add the list of
referenced assemblies to the compiler options. Throw a
CompilationException if there's an error.
* System.Web.Compilation/CachingCompiler.cs: added a method to compile
directly from a source file.
* System.Web.UI/TemplateControl.cs: fixed the flags used to find the
methods that are automatically hooked up on events.
* System.Web.UI/TemplateParser.cs: don't compile a source file directly.
Use the cache instead.
svn path=/trunk/mcs/; revision=14231
Added methods to support IList wrappers
* ArrayListTest.cs
Tests for the above* ArrayList.cs
Added methods to support IList wrappers
svn path=/trunk/mcs/; revision=14229
* Makefile.am: avoid linking libmono with GMODULE_LIBS, because
that contains -export-dynamic and it makes using the ld script
useless.
* mini.h, main.c, driver.c: s/mini_main/mono_main/g.
svn path=/trunk/mono/; revision=14216
* runtime/Makefile.am ($(monobins_DATA)): Use explicit file names
for the target exe binaries.
Copy cilc.exe and secutil.exe from the right paths to the right
location.
Add missing assemblies.
svn path=/trunk/mono/; revision=14214
* sockets.c: Rearrange closesocket() and socket_close_private(),
and remember to unref the handle, so we don't leak socket handles.
Fix from Pelle Johnsen <[email protected]>
svn path=/trunk/mono/; revision=14211
been resolved, this avoids the infinite loop that would occur if a
type was a member of its base type.
* TypeDef.cs: Method to define contents after being defined.
svn path=/trunk/mcs/; revision=14204
* Environment.cs: Changed the method GetFolderPath because it must
return at least a directory name (not null).
* Convert.cs: In ToType, if the destination type is unknown, try to
cast the value to object (then, the calling method will downcast it
to the type it wants).
svn path=/trunk/mcs/; revision=14199
* System.Web/HtmlizedException.cs: added more virtual methods.
* System.Web/HttpException.cs: some work on the output when there's
a source file present.
* System.Web.Compilation/AspGenerator.cs: copy the location before
setting the value for the control builders.
* System.Web.Compilation/BaseCompiler.cs: changed parameters for
CompilationException.
* System.Web.Compilation/CompilationException.cs: it takes now line
numbers and error descriptions from the CompilerErrorCollection.
* System.Web.Compilation/Location.cs: used when a copy of an ILocation
is needed.
* System.Web.Compilation/ParseException.cs: implemented new methods
to provide line numbers and souce file.
* System.Web.Compilation/TemplateControlCompiler.cs: throw a
ParseException where appropiate.
* System.Web.UI/BaseParser.cs: Location property is now here. Added a
couple of convenience methods to throw a ParseException.
* System.Web.UI/TemplateParser.cs:
* System.Web.UI/TemplateControlParser.cs:
* System.Web.UI/PageParser.cs: throw ParseException where appropiate.
svn path=/trunk/mcs/; revision=14191
* mini.c: make sure leave calls all the needed finally blocks,
even when the target jumps out of multiple exception clauses.
svn path=/trunk/mono/; revision=14183
* ldscript, Makefile.am: add linker script to reduce the number of
exported symbols (should also fix the issues with libwine defining
some of the same symbols in io-layer).
svn path=/trunk/mono/; revision=14182
* CodeGen.cs: Fix typo
* IInstr.cs: New file - Interface for instructions that are added to methods
* IntInstr.cs: New file - Instruction that takes a single int
param
* LdstrInstr.cs: New file - ldstr instruction (the only
instruction that takes a string parameter)
svn path=/trunk/mcs/; revision=14173
* System.Web.Compilation/AspGenerator.cs: also support data bind syntax
inside tags not processed as controls. Added debugging method.
* System.Web.Compilation/TemplateControlCompiler.cs: reset the number
of data binding handlers in the proper place. Small fix when getting the
container type.
* System.Web.UI/ApplicationFileParser.cs: use the generator to actually
parse the file.
* System.Web.UI/ControlBuilder.cs: small fix in NamingContainerType
because TemplateBuilders have a null ControlType. When a control is
appended to a parent, assign the child's parent.
* System.Web.UI/UserControlParser.cs: fixed the value of InputFile.
IBuySpy works again!
svn path=/trunk/mcs/; revision=14170
* System.Web.Compilation/TemplateControlCompiler.cs: correctly set
the TemplateSourceDirectory value.
* System.Web.UI/ApplicationFileParser.cs: store the Context and
override BaseVirtualDir so that it's the application path.
* System.Web.UI/BaseParser.cs: removed CurrentVirtualPath property.
* System.Web.UI/TemplateControlParser.cs: use BaseVirtualDir.
* System.Web.UI/UserControlParser.cs: removed CurrentVirtualPath.
svn path=/trunk/mcs/; revision=14168
* AspGenerator.cs: handle code render syntax in tag attributes.
* AspParser.cs: the constructor now takes a TextReader.
* TemplateControlCompiler.cs: removed comment.
svn path=/trunk/mcs/; revision=14166
- Compound operators added
- Member access now work correctly
- A lot of array fixes/improvements
- LateIndexGet/Set calls are generated correctly
- Overloading in constructors fixed
- Array access when the array is a parameter fixed
- Invocation resolution improved
- Added readonly modifier for properties
- Many more little and not-so-little things I can't remember :-(
svn path=/trunk/mcs/; revision=14162
* mini.c, basic-calls.cs: when inlining, save arguments to locals according
to the type in the method signature (fixes bug#42134).
svn path=/trunk/mono/; revision=14156
* HtmlImage.cs:
* HtmlInputControl.cs:
* HtmlSelect.cs: added control builder attribute.
* HtmlSelectBuilder.cs: builder for HtmlSelect.
* HtmlControlBuilder.cs: common builder for all HtmlControls.
svn path=/trunk/mcs/; revision=14143
* ApplicationFileParser.cs: it works now. Prior to these changes, we
were using the compiler directly.
* BaseParser.cs: added some useful properties and methods.
* CodeBuilder.cs: use ILocation.
* CodeRenderBuilder.cs: use ILocation.
* CollectionBuilder.cs: use the RootBuilder to map tag names into Types.
* ControlBuilder.cs: made it useful.
* DataBindingBuilder.cs: the control type for data bound text is
DataBoundLiteralControl now.
* ObjectTagBuilder.cs: store some object tag attributes.
* PageParser.cs: handle page-only directives.
* RootBuilder.cs: bah.
* SimpleWebHandlerParser.cs: made it dummy.
* TemplateControl.cs: Modified file.
* TemplateControlParser.cs: handle directives that are common to pages
and user controls.
* TemplateParser.cs: utility methods and handling of directives that
are common to app, page and user controls.
* UserControl.cs: added ControlBuilderAttribute.
* UserControlControlBuilder.cs: builder for user controls.
* UserControlParser.cs: use the new interfaces.
svn path=/trunk/mcs/; revision=14142
* AspComponentFoundry.cs: simplified it a lot by using Type and Assembly
instead of their names.
* AspElements.cs: removed. No longer needed.
* AspGenerator.cs: this file is now in charge of interfacing between
the parser and the compiler. It manages the creation of the
ControlBuilder tree and the compilation of the CodeDOM tree.
* AspParser.cs: tag handling is simpler now. Instead of a whole bunch
of different Types, tags are just and id and a set of attributes.
Implement ILocation interface.
* AspTokenizer.cs: added a few methods to help the parser implementing
ILocation.
* BaseCompiler.cs: handles the portions of the CodeDOM tree that are
common to appliaction, page and user control, including the actual
compilation and error handling.
* CSCompiler.cs: compiles C# files using CodeDOM interfaces.
* CachingCompiler.cs: simplified to use the new interfaces.
* CompilationException.cs: it's now using CompilationResult to report
errors.
* CompilationResult.cs: Removed file.
* Directive.cs: to check for the validity of a directive.
* GlobalAsaxCompiler.cs: simplified a lot, as most of the work is done
in BaseCompiler.
* ILocation.cs: interface used to now the exact place where a parse
error happens.
* PageCompiler.cs: generates a couple of methods that are only used in
pages.
* ParseException.cs: use the ILocation interface.
* TagAttributes.cs: handles the attributes of the tags parsed.
* TagType.cs: an enum for the different kinds of tags.
* TemplateControlCompiler.cs: this is the one that does most of the
conversion from teh ControlBuilder tree into a CodeDOM tree.
* UserControlCompiler.cs: simplified as most of the work is done in
its base classes.
* WebServiceCompiler.cs: dummy.
svn path=/trunk/mcs/; revision=14140
* HtmlizedException.cs: simplified to cope with the new interface.
* HttpApplicationFactory.cs: use the application file parser to get the
application Type.
* HttpException.cs: small changes. Needs some more work on
ParseExceptions.
svn path=/trunk/mcs/; revision=14139
* SoapHttpClientProtocol.cs (CreateMessage): Extract information
from the method to be called.
* SoapDocumentMethodAttribute.cs: Do not initialize all the fields
on the attribute at bootstrap, for default values, just compute
them when queried.
* SoapMessage.cs (SetStage): New internal method, used to register
the stage as we move along the soap pipeline.
svn path=/trunk/mcs/; revision=14130
* LogicalMethodInfo.cs: Most of this is implemented. Its only
missing a few bits in the Create() method.
* SoapHttpClientProtocol.cs: Begin implementation of Invoke, which
lead to other dependencies to be implemented.
* LogicalMethodInfo.cs: Mostly complete. It is only missing the
async features (BeginInvoke/EndInvoke) on a LogicalMethodInfo.
* WebClientProtocol.cs (GetWebRequest): Track the web request, so
we can abort it later.
(Abort): Call abort on the underlying transport.
svn path=/trunk/mcs/; revision=14129
* attribute.cs (Attribute.GetAttributeArgumentExpression): Moved
the functionality for testing whether an expression is valid for
an attribute here. Also handle the case of arrays of elements
being stored.
* expression.cs (ArrayCreation.EncodeAsAttribute): Add support for
encoding a linear array into an array of objects that are suitable
to be passed to an CustomAttributeBuilder.
svn path=/trunk/mcs/; revision=14117
* CSharpCodeCompiler.cs:
(CompileAssemblyFromDomBatch): add the assemblies referenced by the
CodeCompileUnits to the options.
svn path=/trunk/mcs/; revision=14088
2003-04-28 Miguel de Icaza <[email protected]>
* ecore.cs: (FieldExpr): Handle field remapping here.
* iteratators.cs: Pass the instance variable (if the method is an
instance method) to the constructors, so we can access the field
variables on the class.
TODO: Test this with structs. I think the THIS variable on
structs might have to be a pointer, and not a refenrece
svn path=/trunk/mcs/; revision=14081
* XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
* XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
MoveTo*Attribute(),
Fixed this[] to work correctly against XmlDeclarations.
Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
(which may prevent validations etc.)
* XmlReader.cs,
XmlNodeReader.cs,
XmlTextReader.cs : Fixed ReadString() to be compliant with each
other.
* XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
svn path=/trunk/mcs/; revision=14069
* mini.c: moved most of the code required to do inlining to its own
function so it can be reused. Inline also ctors if appropriate.
svn path=/trunk/mono/; revision=14068
2003-04-27 Miguel de Icaza <[email protected]>
* codegen.cs (EmitContext.Mapvariable): Adds a mechanism to map
local variables to fields in a proxy class.
* iterators.cs (PopulateProxy): Rename our internal fields to
<XXX>.
Create a <THIS> field if we are an instance method, so we can
reference our parent container variables.
(MapVariable): Called back from the EmitContext code to enter a
new variable to field mapping into the proxy class (we just create
a FieldBuilder).
* expression.cs
(LocalVariableReference.{Emit,EmitAssign,AddressOf}): Add support
for using the remapped locals to fields.
I placed the code here, because that gives the same semantics to
local variables, and only changes the Emit code.
* statement.cs (Fixed.Resolve): it is not allowed to have fixed
statements inside iterators.
(VariableInfo): Add a FieldBuilder for the cases when we are
remapping local variables to fields in a proxy class
* ecore.cs (SimpleNameResolve): Avoid testing two times for
current_block != null.
* statement.cs (Swithc.SimpleSwitchEmit): Removed code that did
not cope with strings, as it has been moved to the
TableSwitchEmit. Fixed bug in switch generation.
svn path=/trunk/mcs/; revision=14063
* Makefile.am: added missing man pages.
* mini.1: moved to mono.1
* mono.1: moved to oldmono.1
* oldmono.1: new file.
svn path=/trunk/mono/; revision=14059
* debug-mini.c (mono_debug_init_method): Added
`guint32 breakpoint_id' argument; if the method has a breakpoint,
send a notification to the debugger.
* mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
running in the Mono Debugger, just pass the breakpoint number to
mono_debug_init_method().
* tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
svn path=/trunk/mono/; revision=14054
* mono-debug-debugger.h (MonoDebuggerEvent): Renamed
MONO_DEBUGGER_EVENT_BREAKPOINT_TRAMPOLINE to
MONO_DEBUGGER_EVENT_BREAKPOINT.
(mono_breakpoint_trampoline_code): Removed.
(mono_debugger_event_handler): The last argument is now a
`guint32'.
(mono_debugger_insert_breakpoint_full): Removed the
`use_trampoline' argument.
(mono_debugger_method_has_breakpoint): Likewise.
(mono_debugger_trampoline_breakpoint_callback): Renamed to
mono_debugger_breakpoint_callback(); take the method and
breakpoint number as arguments.
svn path=/trunk/mono/; revision=14052
* expression.cs (MemberAccess.DoResolve): When we get a type back,
check the permissions for it. Note than in a type-resolution
context the check was already present in DeclSpace.ResolveType,
but was missing from the MemberAccess.
svn path=/trunk/mcs/; revision=14048
* expression.cs (ArrayCreation.CheckIndices): warn if the user has
more nested levels of expressions, but there are no more
dimensions specified. Avoids crash on bug 41906.
svn path=/trunk/mcs/; revision=14047
* Npgsql/NpgsqlDataReader.cs: Now GetDateTime works for "dd/MM/yyyy"
date formats. I think that it's needed support to auto-detect
DateTime format through PgSql server configuration.
svn path=/trunk/mcs/; revision=14032
* XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
content EntityReference correctly.
* XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
HasAttributes, indexers, MoveTo*Attribute() and Read() ).
Modified Skip() to call Read () explicitly.
* XmlTextReader.cs :
Fixed ReadInnerXml() which ignored EndElement token in certain cases.
Implemented MoveToAttribute (local, ns), and modified GetAttribute()
in relation to this change.
Attributes for XmlDeclaration are now correctly set.
* XmlTextWriter.cs : WriteRaw() is now different from WriteString().
Simplified WriteAttributes() for XmlDeclaration.
svn path=/trunk/mcs/; revision=14030
* ColorConverter.cs:
(ConvertFrom): return a system or named color if there's one that fits
teh values parsed with Color.FromArgb.
svn path=/trunk/mcs/; revision=14027
* mini-x86.c, Makefile.am: make distcheck works (partially from
a patch by Richard Lee <[email protected]>).
* regset.c, regset.h: removed, they are unused.
svn path=/trunk/mono/; revision=14024
* statement.cs (Block): replace Implicit bool, for a generic
flags.
New flag: `Unchecked'. This is used during the EmitMeta phase
(which is out-of-line with the regular Resolve/Emit process for a
statement, as this is done ahead of time, but still gets a chance
to call constant resolve).
(Block.Flags): new enum for adding a new flag.
(Block.EmitMeta): track the state of unchecked.
(Unchecked): Set the "UnChecked" flags on any blocks we enclose,
to enable constant resolution to work there as well.
svn path=/trunk/mcs/; revision=14020
* TypeTranslator.cs : patch by Erik LeBel. Array consideration.
* XmlReflectionImporter.cs : patch by Erik LeBel.
Now uses XmlRootAttribute to determine element name.
svn path=/trunk/mcs/; revision=13994
* XmlDocument.cs : fixed Load() to set baseURI correctly.
* XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
* XmlTextReader.cs :
fixed Depth. When it's on StartElement, Depth was already incremented.
fixed private SaveProperty(), which moved away its saved properties
when MoveToElement was called repeatedly.
* XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
* XmlWriter.cs :
WriteAttributes() refactory (for XMLDecl).
WriteNode() don't Read() when the reader is Initial state, let other
invokation to Read(). In case of Element, it should write entire
element. In case of Attribute, it shouldn't Read().
WriteStartDocument() should omit standalone decl. when there is no
explicit value.
svn path=/trunk/mcs/; revision=13993
remapping of parameters and local variables to proxy values. I have a
kludge, but will soon have the right thing.
Also a few bugs fixes that I did while implementing iterators.
To use iterators, you need to pass -v2 to the compiler
2003-04-22 Miguel de Icaza <[email protected]>
* typemanager.cs (ienumerable_type): Also look up
System.Collections.IEnumerable.
2003-04-21 Miguel de Icaza <[email protected]>
TODO: Test more than one conditional per method.
* class.cs (Indexer.Define): Report the location where the user is
referencing the unsupported feature.
(MethodData): Overload the use of `conditionals' to
minimize the creation of needless ArrayLists. This saves roughly
212kb on my machine.
(Method): Implement the new IIteratorContainer interface.
(Method.SetYields): Implement the method by setting the ModFlags
to contain METHOD_YIELDS.
* expression.cs (Unary.ResolveOperator): Use expr_type, not Expr,
which just got set to null.
* iterators.cs: New file.
(Yield, YieldBreak): New statements.
* statement.cs (Return.Resolve): Flag an error if we are used in
an iterator method.
* codegen.cs (InIterator): New flag set if the code is being
compiled in an iterator method.
* modifiers.cs: New flag METHOD_YIELDS. This modifier is an
internal modifier, and we just use it to avoid adding extra
fields, as this is seldom used.
* cs-parser.jay: Add yield_statement (yield and yield break).
* driver.cs: New flag -v2 to turn on version 2 features.
* cs-tokenizer.cs (Tokenizer): Add yield and __yield to the
hashtable when v2 is enabled.
svn path=/trunk/mcs/; revision=13991
* SqlEditorSharp.cs: Change: Glib -> GLib.
* sqlsharpgtk.cs: Correct method calls because they
changed in GTK#.
* makefile.gnu: Reference gdk-sharp in assembly list.
* FileSelectionDialog.cs: Update method calls (GTK#).
* DataGrid.cs: Fix a type of a variable.
svn path=/trunk/mcs/; revision=13990
* Microsoft.CSharp/CSharpCodeGenerator.cs:
(QuoteSnippetString): add a few common escape sequences.
* System.CodeDom.Compiler/CodeGenerator.cs:
(GenerateCodePrimitive): special case strings and chars (bool was
already a special case). Throw an exception if the type is not a
primitive type.
svn path=/trunk/mcs/; revision=13987
* WebClient.cs (DownloadData): Instead of using a MemoryStream,
keep track of all the small chunks in an ArrayList. The
MemoryStream had the property of reallocating itself, and the
problem was that MemoryStream.GetBuffer would return the buffer
(correctly), but not something of the right size. So clients of
DownloadData would get the extra unused bytes as part of the
result.
The solution would have been to make another copy at this point,
instead, we only keep the small allocations around in the
ArrayList, and we only do one large allocation at the end.
* HttpWebResponse.cs: If there is a Content-Length header, pass
this information to our HttpWebResponseStream, so it knows when to
stop, instead of waiting for the stream to be shut down by the
other end.
* HttpWebRequest.cs: Only set the `delay-header-writing' mode on
the underlying stream if the method will do a content transfer and
no Content-Length was provided. If not (HEAD and GET or
Content-Length provided), keep going.
svn path=/trunk/mcs/; revision=13986
* BufferedStream.cs: Test if it's possible to seek in a Stream
before access to Position. This prevents the exception thrown when
the stream is System.Net.Sockets.NetworkStream.
svn path=/trunk/mcs/; revision=13978
* mono-debug-debugger.c: Moved all code which interacts with the
Mono Debugger here.
* debug-mono-symfile.c: This code now just deals with the symbol
file itself, the debugger code is now in mono-debug-debugger.c.
svn path=/trunk/mono/; revision=13962
* Microsoft.CSharp/CSharpCodeGenerator.cs: implemented
GenerateSnippetMember and some little fixes.
* System.CodeDom/CodeMemberProperty.cs: fixed HasGet and HasSet to
actually generate code for the property.
* System.CodeDom.Compiler/CodeGenerator.cs: more fixes and sorted the
output.
* System.CodeDom.Compiler/IndentedTextWriter.cs: don't output tabs in
WriteLine ().
svn path=/trunk/mcs/; revision=13960
* X509Certificate.cs: Fixed issues for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13957
* HttpWebRequest.cs: .NET Allows the HttpWebRequest to not have
the ContentLength specified on the request. If that happens, we
have to accumulate all the data written, and once we accumulate
the data, we send it off.
Notice that the documentation in .NET is actually incorrect, they
state that setting ContentLength is mandatory. It is not.
svn path=/trunk/mcs/; revision=13956
* X509Certificate.cs: Fixed GetHashCode for null certificate
(special case where object exists without any certificate)
which made PublisherTest fails.
svn path=/trunk/mcs/; revision=13954
* mono-debug.c (mono_debug_source_location_from_il_offset):
New method; like mono_debug_source_location_from_address(), but
takes an IL offset instead of a machine address.
svn path=/trunk/mono/; revision=13941
* debug-mono-symfile.h (MonoDebugLineNumberEntry): Removed the
`line' field; this is now computed by the debugger.
svn path=/trunk/mono/; revision=13935
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13929
* mono.c: The `--debug' command line argument doesn't take any
arguments anymore, removed the `--debug-args' argument.
svn path=/trunk/mono/; revision=13928
* debug-jit.c (mono_debug_add_method): Renamed this to
mono_debug_jit_add_method(); create the JIT-specific data
structure and pass it to mono_debug_add_method().
svn path=/trunk/mono/; revision=13924
* debug.[ch]: Removed. The code is now in
../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
* debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
last six months.
svn path=/trunk/mono/; revision=13923
* mono-debug.[ch]: New files. This is the new debugging interface.
* mono-debug-debugger.[ch]: New files. Moved all code which
interacts with the Mono Debugger here.
svn path=/trunk/mono/; revision=13922
* Button.cs : changes in DialogResult and OnClick
* Control.cs : new internal getOwnerWindow method, recreate child windows in RecreateHandle as well
* form.cs : implementation of modal forms
* win32enums.cs : constants for GetWindow function
* win32functions.cs : GetWindow , IsDialogMessage added
svn path=/trunk/mcs/; revision=13920
* XmlReader.cs: reverted last patch. It breaks System.Configuration
because 1. it considers XmlDeclaration as content and 2. always
returns XmlNodeType.None.
svn path=/trunk/mcs/; revision=13919
* corlib_test.build: Excluded Mono.Math unit tests (as the class
isn't available under MS implementation).
* corlib_linux_test.args: Added all Mono.Math unit test files.
* corlib_test.args: Added all Mono.Math unit test files.
svn path=/trunk/mcs/; revision=13916
* ArithmeticBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BigIntegerSetTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* BitwiseTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* GcdBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModInverseBigTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* ModRingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeGenerationTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* PrimeTestingTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
* SearchGeneratorTest.cs: New. Unit tests for BigInteger
(commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13914
* DSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
* RSACryptoServiceProvider.cs: Changed key generation to use the
new BigInteger class (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13913
* BigInteger.cs: New, much faster, version by Ben Maurer.
Warning: this version requires "unsafe" compilation switch
(which isn't a problem in corlib but may be elsewhere)
svn path=/trunk/mcs/; revision=13912
* NextPrimeFinder.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* PrimeGeneratorBase.cs: New. Abstract Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
* SequentialSearchPrimeGeneratorBase.cs: New. Prime Generator.
Support class for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13911
* ConfidenceFactor.cs: New. Enum for prime quality.
Support for BigInteger (commited for Ben Maurer).
* PrimalityTests.cs: New. Tests for primality.
Support for BigInteger (commited for Ben Maurer).
svn path=/trunk/mcs/; revision=13910
* Directory.cs: clean up --> performance improvment. Some exceptions
are now checked in File.cs.
* File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
svn path=/trunk/mcs/; revision=13903
* NumberFormatInfo.cs: Method CurrentInfo now returns the "real"
CurrentInfo (Thread.CurrentThread.CurrentCulture.NumberFormat).
2003-04-22 Pedro Mart�nez Juli� <[email protected]>
* FloatingPointFormatter.cs: Little fixes for get the same results
as MS.NET and show a message when something goes wrong with the
parser of Custom Formats.
svn path=/trunk/mcs/; revision=13902
* Form.cs : small changes regarding resizing of MDI client window
* StatusBar.cs : update parts on Layout event, new style to prevent resizing be the system
svn path=/trunk/mcs/; revision=13888
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Make this work with relative pathnames; g_filename_to_uri() needs
an absolute filename.
svn path=/trunk/mono/; revision=13867
* debug.c (mono_debug_open): Splitted into mono_debug_init() and
mono_debug_init_2().
(mono_debug_open_image): Don't open referenced assemblies; this is
done automatically by the code in assembly.c.
* mono.c (main_thread_handler): Call mono_debug_init() before
opening the assembly because we need to install the assembly load
hook before doing so.
svn path=/trunk/mono/; revision=13864
* typemanager.cs (TypeManager.NamespaceClash): Use to check if
there is already a namespace defined with this name.
(TypeManager.InitCoreTypes): Remove the temporary workaround, as
people upgraded their corlibs.
(TypeManager.CoreLookupType): Use LookupTypeDirect, as we
always use fully qualified types, no need to use the compiler
front end.
(TypeManager.IsNamespace): Use binarysearch.
* class.cs (AddClass, AddStruct, AddInterface, AddEvent,
AddDelegate): I did not quite use the new IsValid API properly: I
have to pass the short-name and the fullname. I was passing only
the basename instead of the fullname sometimes.
(TypeContainer.DefineType): call NamespaceClash.
* interface.cs (Interface.DefineType): use NamespaceClash before
defining the type.
* delegate.cs (Delegate.DefineType): use NamespaceClash before
defining the type.
* enum.cs: (Enum.DefineType): use NamespaceClash before
defining the type.
svn path=/trunk/mcs/; revision=13839
* ILGenerator.cs (EmitCall): Implement.
Flag a few unimplemented methods with MonoTODO, make coding style
for method definitions Mono consistent.
svn path=/trunk/mcs/; revision=13832
* StringReader.cs (Read): Increment nextChar by charsToRead
instead of count, that will guarantee that the next time the
method is called, it will return 0 on an empty string rather than
throwing an exception
svn path=/trunk/mcs/; revision=13830
* ControlBuilder.cs: line and fileName are protected now.
* CodeBuilder.cs: base class for the next 2 files.
* CodeRenderBuilder.cs: builder for code render.
* DataBindingBuilder.cs: builder for data binding.
svn path=/trunk/mcs/; revision=13824
* FieldDef.cs: Add method to set a fields value
* TypeDef.cs: Add method to add data
* DataDef.cs: New file - Definition of a data constant
svn path=/trunk/mcs/; revision=13818
* typemanager.cs (: 3-line patch that gives us some tasty 11%
speed increase. First, use the negative_hits cache when we get a
negative. Second, add the type with its full original name
instead of the new . and + encoded name (reflection uses + to
separate type from a nested type). Use LookupTypeReflection
directly which bypasses the type->name hashtable (that we already
know does not contain the type.
* decl.cs (DeclSpace.ResolveTypeExpr): track the
location/container type.
* driver.cs: When passing utf8, use directly the UTF8Encoding.
svn path=/trunk/mcs/; revision=13817
* delegate.cs (NewDelegate.Resolve): Test whether an instance
method is being referenced in the method group from a static
context, and report error 120 if so.
svn path=/trunk/mcs/; revision=13808
Before, if there was a one-line block (such as in if (x) do_something;) and a non-one-line block after, the statement of the second block would be removed, and its bracket put on the first statement.
svn path=/trunk/mcs/; revision=13807
* BufferedStream.cs: Some fixes, mostly throwing exceptions.
* MemoryStream.cs: Changed the order of exception checking
* StringReader.cs: little clean up
svn path=/trunk/mcs/; revision=13798
* typemanager.cs (GetReferenceType, GetPointerType): In .NET each
invocation to ModuleBuilder.GetType with the same values will
return a new type instance, so we need to cache its return
values.
svn path=/trunk/mcs/; revision=13796
* ecore.cs (Expression.ImplicitReferenceConversion): handle target
types of ValueType on their own case. Before we were giving them
the same treatment as objects.
svn path=/trunk/mcs/; revision=13791
* decl.cs (DeclSpace.IsValid): IsValid takes the short name and
fullname. Short name is used to compare against container name.
Fullname is used to check against defined namespace names.
* class.cs (AddProperty, AddField, AddClass, AddStruct, AddEnum,
AddDelegate, AddEvent): Pass new parameter to DeclSpace.IsValid
svn path=/trunk/mcs/; revision=13789
2003-04-18 Miguel de Icaza <[email protected]>
* report.cs: Negative error codes are now mapped to 8000 - code,
so that the display is render more nicely.
* typemanager.cs: Do not use try/catch, instead report a regular
error.
(GetPointerType, GetReferenceType): These methods provide
mechanisms to obtain the T* and T& from a T. We had the code
previously scattered around the code base, and it also used
TypeManager.LookupType that would go through plenty of caches.
This one goes directly to the type source.
In some places we did the Type.GetType followed by
ModuleBuilder.GetType, but not in others, so this unifies the
processing as well.
* namespace.cs (VerifyUsing): Perform a non-lazy approach to using
statements now that we have namespace information.
* typemanager.cs (IsNamespace): New method, returns whether the
string presented is a namespace or not.
(ComputeNamespaces): New public entry point, computes the list of
available namespaces, using the GetNamespaces API call in Mono, or
the slower version in MS.NET.
Now before we start the semantic analysis phase, we have a
complete list of namespaces including everything that the user has
provided.
Deleted old code to cache namespaces in .nsc files.
svn path=/trunk/mcs/; revision=13777
* Object.cs ValueType.cs: Make the Object::GetHashCode() and
ValueType::Equals() icalls static non-virtual, so they can be called
by the code in RuntimeHelpers.
svn path=/trunk/mcs/; revision=13769
* Array.cs: Deleted the exception in Array.Initialize(), it looks
like the method do nothing for C#, is still a MonoTODO until
we find a compiler that uses that.
svn path=/trunk/mcs/; revision=13764
* ParamDef.cs: New file - definition of a parameter to a method
* TypeDef.cs: Add method definitions, set intransit flag to false
before defining members, so a false circular reference is not
created.
* CodeGen.cs: Add methods to add method definitions
svn path=/trunk/mcs/; revision=13760
* TypeManager.cs: Rewrite - Just a simple table for looking up
typedefs
* ExternTable.cs: Create ClassRef's instead of Classes
* Location.cs: Make compile
* CodeGen.cs: Use new tree system
svn path=/trunk/mcs/; revision=13754
an external assembly
* FieldDef.cs: New file - Represents a field definition
* IClassRef.cs: New file - Interface that classrefs must
implement. This needs some more thought though because once a
classref has been modified it is no longer a classref.
* ITypeRef.cs: New file - Interface that references to types must
implement
* TypeDef.cs: New file - Represents the a class definition, and
will hold all of the classes members.
svn path=/trunk/mcs/; revision=13752
* class.cs: (TypeContainer.DefineDefaultConstructor): Use the
class/struct location definition Location for the implicit
constructor location.
(Operator.Define): Use the location of the operator for the
implicit Method definition.
(Constructor.Emit): use the constructor location for the implicit
base initializer constructor.
svn path=/trunk/mcs/; revision=13744
* ecore.cs: Remove ITypeExpression. This interface is now gone,
and the Expression class now contains two new methods:
ResolveAsTypeStep and ResolveAsTypeTerminal. This is used to
isolate type lookup from the rest of the resolution process.
Since we use Expressions to hold type definitions due to the way
we parse the input we have historically overloaded Resolve to
perform the Type lookups if a special flag is passed. Now this is
eliminated and two methods take their place.
The differences in the two methods between xStep and xTerminal is
that xStep is involved in our current lookup system that uses
SimpleNames to compose a name, while xTerminal is used just to
catch the case where the simplename lookup failed.
svn path=/trunk/mcs/; revision=13739
* ComboBox.cs
* ColorDialog.cs
* Improved functionality in RadioBox.cs
* Fix some things that were broken with the update to gtk-sharp-0.8
svn path=/trunk/mcs/; revision=13738
* Timer.cs: Change the position of two lines because they were
before the "if" that ensures the integrity. After this, the first of
that two lines was producing a NullReferenceException.
svn path=/trunk/mcs/; revision=13737
* jit/jit.c:
(mono_jit_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
* mini/mini.c:
(mini_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
(mini_method_compile): use mono_method_profile* if the the option is
enabled.
* metadata/gc.c:
(internal_domain_finalize): moved into mono_domain_finalize. No need
to create another thread because the finalizers will be run in the
finalizer thread.
(ves_icall_System_GC_WaitForPendingFinalizers): implemented.
(finalizer_notify): if shutting down, wait 2 seconds for the finalizers
to be run (MS does this too).
svn path=/trunk/mono/; revision=13733
* ImageListStreamer.cs : started to implement
* Control.cs : changes in implementation of size-related functions
* Form.cs : small modifications to reflect changes in Contol class
svn path=/trunk/mcs/; revision=13713
* interface.cs (PopulateMethod): Do not lookup the types twice.
We were doing it once during SemanticAnalysis and once during
PopulateMethod.
svn path=/trunk/mcs/; revision=13700
* cs-parser.jay: Due to our hack in the grammar, things like A.B[]
in local variable type definitions, were being returned as a
SimpleName (we decomposed everything into a string), that is
because primary_expression was being used instead of a type in the
grammar (reduce/reduce conflicts).
The part that was wrong is that we converted the expression into a
string (an oversimplification in one hand, compounded with primary
expressions doing string concatenation).
So things like:
A.B.C [] x;
Would return "A.B.C[]" as a SimpleName. This stopped things like
using clauses from working on this particular context. And a type
was being matched directly against "A.B.C[]".
We now use the correct approach, and allow for ComposedCast to be
part of the unary expression. So the "A.B.C []" become a composed
cast of "A.B.C" (as a nested group of MemberAccess with a
SimpleName at the end) plus the rank composition "[]".
Also fixes 35567
svn path=/trunk/mcs/; revision=13695
* mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
of the mempool. This is slightly faster and uses less memory
svn path=/trunk/mono/; revision=13687
* TypeBuilder.cs (DefineDefaultConstructor): Make it generate code
by default for a default constructor. This is what the MS runtime
does. The PythonNet code expected this.
(TypeBuilder.GetConstructorImpl): Implement this.
(TypeBuilder.CreateType): If there are no constructors defined, we
create one.
svn path=/trunk/mcs/; revision=13674
* metadata.c (mono_type_to_unmanaged): dont access
type->data.klass for MONO_TYPE_OBJECT
(mono_type_to_unmanaged): consider System.Delegate class
svn path=/trunk/mono/; revision=13655
* write-source.cs: A new program to write out C# source from the
XML files.
* src/MonoCulture.cs: A skeleton class for the other
culture-specific classes.
svn path=/trunk/mcs/; revision=13635
* CaseInsensitiveComparer.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13634
* CaseInsensitiveComparerTest.cs: Fixed Compare Method (now works
like MS.NET) and implemented the
CaseInsensitiveComparerTest(culture) constructor.
svn path=/trunk/mcs/; revision=13633
* list: added CollectionBuilder and TemplateBuilder.
* System.Web.UI/CollectionBuilder.cs:
* System.Web.UI/TemplateBuilder.cs: new classes derived from
ControlBuilder that represent a property or a ITemplate.
* System.Web.UI/ControlBuilder.cs: implemented all the missing bits.
* System.Web.UI/TemplateParser.cs: added mapping from tag name to
Type feature.
svn path=/trunk/mcs/; revision=13632
* SqlSharpDataAdapter.cs: added new file
as a special data adapter for SQL#
* SqlEditorSharp.cs: allow the use of
syntax highlighting of SQL keywords or not
via a property and default to false
* makefile.gnu
* win32.make: add SqlSharpDataAdapter.cs to
the build
* sqlsharpgtk.cs: handle a key pressed event
when the user presses F5 to execute the SQL
in the editor's buffer. Also, add an Edit menu, but
its menu options currently are placeholders
svn path=/trunk/mcs/; revision=13589
* BinaryStreamReader.cs: Added lots of tests. Somehow I missed that
there are already testcases for BinaryStreamReader :/
svn path=/trunk/mcs/; revision=13575
* get.c (dis_stringify_modifiers): Print a space between custom modifers.
* get.c (get_custom_mod): Handle multiple custom modifiers aka bug #30812.
* main.c: Print klass name at the end of each method to make it easier
to find a given method.
svn path=/trunk/mono/; revision=13556
* XmlTextReaderTests.cs: quick fix to comment out TestExternalDocument.
* XmlDocumentTests.cs : quick fix to comment out LoadExternalUri and
LoadDocumentWithIgnoreSection.
svn path=/trunk/mcs/; revision=13555
* moved testcases into each namespace-named directories.
fixed System.XML_linux_test.args and MonoMicro.test.csproj
along with it.
* added XmlFiles directory for test xml files.
svn path=/trunk/mcs/; revision=13554
* added this file as a new entry.
See ../ChangeLog to find former ChangeLog entries.
* added XmlSerializerTests.cs and XmlSerializerTestClasses.cs
(by Erik Lebel)
svn path=/trunk/mcs/; revision=13550
* Data/CultureInfo.xsd: XML schema for the XML files.
* Data/*.xml: Modify the DisplayName element to allow for more
flexible translation.
svn path=/trunk/mcs/; revision=13543
* X509CertificateTest.cs: Commented ToString() test because of the
dates included within (which makes the comparison with a pre-
generated value difficult).
svn path=/trunk/mcs/; revision=13537
* Makefile.am: re-added -m option when running cygpath. This way,
MONO_ASSEMBLIES and MONO_CFG_DIR will contain '/' as directory
separator.
* mono-config.c: same codepath for locating mono config file for WIN32
and the rest.
* assembly.c: if mono_assembly_setrootdir is called, don't override
the value set.
svn path=/trunk/mono/; revision=13530
* Control.cs : init bounds in ctor, invisible parking window
* TrackBar.cs
* ProgressBar.cs.cs
* DateTimePicker.cs
* StatusBar.cs : use base version of CreateParams
* ScrollableControl.cs : use base version of CreateParams, removed CS_VREDRAW, CS_HREDRAW styles
* Form.cs : reset parent back to zero for the main form
* StatusBarPanel.cs : small bug-fix
svn path=/trunk/mcs/; revision=13509
ContributorComparer.
(RenderHtml): Add some SetAttribute loving to make it render prettier.
* doc/web/team.xml: Revert excessive indenting.
svn path=/trunk/mono/; revision=13494
* class.cs: Cosmetic changes. Renamed `TypeContainer parent' to
`TypeContainer container', because I kept getting confused when I
was debugging this code.
svn path=/trunk/mcs/; revision=13493
* expression.cs (Indexers): Instead of tracking getters/setters,
we now track them in parallel. We create one arraylist less, but
most importantly it is possible now for the LValue code to find a
matching get for a set.
(IndexerAccess.DoResolveLValue): Update the code.
GetIndexersForType has been modified already to extract all the
indexers from a type. The code assumed it did not.
Also make the code set the correct return type for the indexer.
This was fixed a long time ago for properties, but was missing for
indexers. It used to be void_type.
svn path=/trunk/mcs/; revision=13490
* expression.cs (Binary.Emit): Test first for doubles instead of
floats, as they are more common.
(Binary.EmitBranchable): Use the .un version of the branch opcodes
when dealing with floats and the <=, >= operators. This fixes bug
#39314
svn path=/trunk/mcs/; revision=13488
* statement.cs (Foreach.EmitArrayForeach): bug fix: The code used
to load the array value by emitting a load on the foreach variable
type. This was incorrect.
We now emit the code to load an element using the the array
variable type, and then we emit the conversion operator.
Fixed#40176
svn path=/trunk/mcs/; revision=13487
* class.cs (MethodSignature.InheritableMemberSignatureCompare):
test for protection before we test for signatures.
(MethodSignature.ToString): implement.
svn path=/trunk/mcs/; revision=13482
* ClientContextTerminatorSink.cs: Improved support for Async and OneWay messages.
* MonoMethodMessage.cs: Added member needed to support Async messages.
* ServerObjectTerminatorSink.cs: Improved support for Async and OneWay messages.
svn path=/trunk/mcs/; revision=13479
* ChannelServices.cs: renamed ChannelInfoStore an its members to match MS.NET.
* CrossAppDomainChannel.cs: Renamed CrossAppDomainChannelData to match MS.NET.
Added processId property to CrossAppDomainData. Now it is checked in CreateSink.
svn path=/trunk/mcs/; revision=13477
* mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
* driver.c: Added --print-vtable option as in the old JIT.
svn path=/trunk/mono/; revision=13473
* expression.cs (Unary.TryReduceNegative): Add missing minus sign
to the case where we reduced into a LongConstant.
svn path=/trunk/mcs/; revision=13456
* decl.cs (CheckAccessLevel): If the type is an array, we can not
depend on whether the information is acurrate, because the
Microsoft runtime will always claim that the array type is public,
regardless of the real state.
If the type is a pointer, another problem happens: the type is
reported as non-public in Microsoft.
In both cases we have to call CheckAccessLevel recursively with
the underlying type as the argument to be tested.
svn path=/trunk/mcs/; revision=13455
* assign.cs (Assign.Emit): If we are dealing with a compound
assignment expression, we should use the code path that stores the
intermediate result in a temporary value. This fixes#40903.
*expression.cs (Indirection.ToString): Provide ToString method for
debugging.
svn path=/trunk/mcs/; revision=13454
* Thread.cs: Make sure a reference to the ThreadStart delegate is
held. There's no telling how long it will be before
Thread.Start() is called, and GC might destroy the delegate.
Thread() and Start() need to be rewritten so that the runtime
creates the new thread when Start() is called, which will simplify
the code a great deal.
svn path=/trunk/mcs/; revision=13442
* appdomain.h, domain.c: added mono_domain_foreach() to
be able to access the currently loaded appdomains.
* object.c: make string interning work across sppdomains.
Mark some functions for use as icalls.
svn path=/trunk/mono/; revision=13440
* class.c reflection.c: Fix memory leaks reported by ccmalloc.
* reflection.h reflection.c: Allocate long living data using
GC_MALLOC_ATOMIC so the collector does not need to scan it.
* reflection.c: Double the allocation size in streams instead of
increasing it, to prevent unneccesary copying on large assemblies.
* reflection.c (mono_reflection_create_runtime_class): Avoid vtable
creation if the assembly does not have the Run flag set.
svn path=/trunk/mono/; revision=13438
* class.cs: Null out fields holding references to Block objects so
they can be garbage collected.
* expression.cs (OverloadResolve): Remove unused local.
svn path=/trunk/mcs/; revision=13432
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13431
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13430
* expression.cs (Indirection.EmitAssign): We were using the
temporary, but returning immediately instead of continuing the
EmitAssing flow.
svn path=/trunk/mcs/; revision=13429
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13428
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13427
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13426
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13423
* expression.cs (Is.Emit): For action `LeaveOnStack' we were
leaving a class on the stack instead of a boolean value (int
0/1). Change the code so we compare against null, and then the
svn path=/trunk/mcs/; revision=13422
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13421
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13420
* class.cs (TypeContainer.CheckPairedOperators): Report error for missmatch on
operator true/false as required by the spec.
svn path=/trunk/mcs/; revision=13415
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=13414
* expression.cs (Indexers): Do not construct immediately, allow
for new members to be appended as we go. Fixes 38143
svn path=/trunk/mcs/; revision=13411
* ecore.cs (Expression.MemberLookup): Don't create a
MethodGroupExpr for something which is not a method. Fixes#38291.
svn path=/trunk/mcs/; revision=13404
* class.cs (MemberBase.CheckParameters): Also check that the type
is unmanaged if it is a pointer.
* expression.cs (SizeOf.Resolve): Add location information.
* statement.cs (Block.EmitMeta): Flag error (208) if a pointer to
a managed type is declared.
svn path=/trunk/mcs/; revision=13403
* class.cs: Very sad. Am backing out the speed up changes
introduced by the ArrayList -> Array in the TypeContainer, as they
were not actually that much faster, and introduced a bug (no error
reports on duplicated methods).
svn path=/trunk/mcs/; revision=13401
Although we are resolving for LValues, we will let the Assign code
take care of that (it will be called again from Resolve). This
basically allows code like this:
class X { X operator + (X x, object o) {} X this [int idx] { get; set; } }
class Y { void A (X x) { x [0] += o; }
The problem was that the indexer was trying to resolve for
set_Item (idx, object o) and never finding one. The real set_Item
was set_Item (idx, X). By delaying the process we get the right
semantics.
Fixes bug: 36505
svn path=/trunk/mcs/; revision=13400
* assign.cs (CompoundAssign.DoLResolve): Resolve the original
source first, this will guarantee that we have a valid expression
before calling in lower levels functions that will require a
resolved object. Then use this original_source in the
target.ResolveLValue instead of the original source that was
passed to us.
svn path=/trunk/mcs/; revision=13399
* statement.cs (Block.Emit): Override this and set ec.CurrentBlock
while calling DoEmit ().
* codegen.cs (EmitContext.Mark): Don't mark locations in other
source files; if you use the #line directive inside a method, the
compiler stops emitting line numbers for the debugger until it
reaches the end of the method or another #line directive which
restores the original file.
svn path=/trunk/mcs/; revision=13398
* statement.cs (Block.AddChildVariableNames): We need to call this
recursively, not just for our immediate children.
svn path=/trunk/mcs/; revision=13396
* class.cs (Event.Define): Always make the field private, like csc does.
* typemanager.cs (TypeManager.RealMemberLookup): Make events
actually work, fixes bug #37521.
svn path=/trunk/mcs/; revision=13395
* delegate.cs: When creating the various temporary "Parameters"
classes, make sure that we call the ComputeAndDefineParameterTypes
on those new parameters (just like we do with the formal ones), to
allow them to be resolved in the context of the DeclSpace.
This fixes the bug that Dick observed in Bugzilla #38530.
svn path=/trunk/mcs/; revision=13394
* expression.cs (ResolveMemberAccess): When resolving a constant,
do not attempt to pull a constant if the value was not able to
generate a valid constant.
* const.cs (LookupConstantValue): Do not report more errors than required.
svn path=/trunk/mcs/; revision=13393
* class.cs: Changed all the various members that can be part of a
class from being an ArrayList to be an Array of the right type.
During the DefineType type_list, interface_list, delegate_list and
enum_list are turned into types, interfaces, delegates and enums
arrays.
And during the member population, indexer_list, event_list,
constant_list, field_list, instance_constructor_list, method_list,
operator_list and property_list are turned into their real arrays.
Although we could probably perform this operation earlier, for
good error reporting we need to keep the lists and remove the
lists for longer than required.
This optimization was triggered by Paolo profiling the compiler
speed on the output of `gen-sample-program.pl' perl script.
* decl.cs (DeclSpace.ResolveType): Set the ContainerType, so we do
not crash in methods like MemberLookupFailed that use this field.
This problem arises when the compiler fails to resolve a type
during interface type definition for example.
svn path=/trunk/mcs/; revision=13391
* expression.cs (Indexers.GetIndexersForType): Interfaces do not
inherit from System.Object, so we have to stop at null, not only
when reaching System.Object.
svn path=/trunk/mcs/; revision=13390
* expression.cs: (Indexers.GetIndexersForType): Martin's fix used
DeclaredOnly because the parent indexer might have had a different
name, but did not loop until the top of the hierarchy was reached.
The problem this one fixes is 35492: when a class implemented an
indexer from an interface, we were getting the interface method
(which was abstract) and we were flagging an error (can not invoke
abstract method).
This also keeps bug 33089 functioning, and test-148 functioning.
svn path=/trunk/mcs/; revision=13389
* typemanager.cs (IsSpecialMethod): The correct way of figuring
out if a method is special is to see if it is declared in a
property or event, or whether it is one of the predefined operator
names. This should fix correctly #36804.
svn path=/trunk/mcs/; revision=13388
The goal here is to remove the dependency on EmptyCast.Peel ().
Killing it completely.
The problem is that currently in a number of places where
constants are expected, we have to "probe" for an EmptyCast, and
Peel, which is not the correct thing to do, as this will be
repetitive and will likely lead to errors.
The idea is to remove any EmptyCasts that are used in casts that
can be reduced to constants, so we only have to cope with
constants.
This bug hunt was triggered by Bug 37363 and the desire to remove
the duplicate pattern where we were "peeling" emptycasts to check
whether they were constants. Now constants will always be
constants.
* ecore.cs: Use an enumconstant here instead of wrapping with
EmptyCast.
* expression.cs (Cast.TryReduce): Ah, the tricky EnumConstant was
throwing me off. By handling this we can get rid of a few hacks.
* statement.cs (Switch): Removed Peel() code.
svn path=/trunk/mcs/; revision=13387
* expression.cs (New.DoResolve): Add a guard against double
resolution of an expression.
The New DoResolve might be called twice when initializing field
expressions (see EmitFieldInitializers, the call to
GetInitializerExpression will perform a resolve on the expression,
and later the assign will trigger another resolution
This leads to bugs (#37014)
svn path=/trunk/mcs/; revision=13385
* delegate.cs: The signature for EndInvoke should contain any ref
or out parameters as well. We were not doing this in the past.
svn path=/trunk/mcs/; revision=13384
* class.cs (Field.Define): Do not overwrite the type definition
inside the `volatile' group. Turns out that volatile enumerations
were changing the type here to perform a validity test, which
broke conversions.
svn path=/trunk/mcs/; revision=13383
* ecore.cs (FieldExpr.AddressOf): In the particular case of This
and structs, we do not want to load the instance variable
svn path=/trunk/mcs/; revision=13382
* namespace.cs (Namespace..ctor): Added SourceFile argument.
(Namespace.DefineNamespaces): New static public method; this is
called when we're compiling with debugging to add all namespaces
to the symbol file.
* tree.cs (Tree.RecordNamespace): Added SourceFile argument and
pass it to the Namespace's .ctor.
* symbolwriter.cs (SymbolWriter.OpenMethod): Added TypeContainer
and MethodBase arguments; pass the namespace ID to the symwriter;
pass the MethodBase instead of the token to the symwriter.
(SymbolWriter.DefineNamespace): New method to add a namespace to
the symbol file.
svn path=/trunk/mcs/; revision=13379
* symbolwriter.cs: New file. This is a wrapper around
ISymbolWriter with a cleaner API. We'll dynamically Invoke()
methods here in near future.
svn path=/trunk/mcs/; revision=13378
* codegen.cs (EmitContext.Mark): Just pass the arguments to
ILGenerator.MarkSequencePoint() which are actually used by the
symbol writer.
svn path=/trunk/mcs/; revision=13377
* location.cs (SourceFile): New public sealed class. This
contains the name and an index which is used in the location's token.
(Location): Reserve an appropriate number of bits in the token for
the source file instead of walking over that list, this gives us a
really huge performance improvement when compiling with debugging.
* driver.cs (Driver.parse, Driver.tokenize_file): Take a
`SourceFile' argument instead of a string.
(Driver.ProcessFile): Add all the files via Location.AddFile(),
but don't parse/tokenize here, we need to generate the list of all
source files before we do that.
(Driver.ProcessFiles): New static function. Parses/tokenizes all
the files.
* cs-parser.jay (CSharpParser): Take a `SourceFile' argument
instead of a string.
* cs-tokenizer.cs (Tokenizer): Take `SourceFile' argument instead
of a string.
svn path=/trunk/mcs/; revision=13376
* driver.cs: Removed the `--debug-args' command line argument.
* codegen.cs (CodeGen.SaveSymbols): Removed, this is now done
automatically by the AsssemblyBuilder.
(CodeGen.InitializeSymbolWriter): We don't need to call any
initialization function on the symbol writer anymore. This method
doesn't take any arguments.
svn path=/trunk/mcs/; revision=13370
* class.cs (Constructor.Emit): Open the symbol writer before
emitting the constructor initializer.
(ConstructorInitializer.Emit): Call ec.Mark() to allow
single-stepping through constructor initializers.
svn path=/trunk/mcs/; revision=13367
* class.cs (Operator): Set the SpecialName flags for operators.
* expression.cs (Invocation.DoResolve): Only block calls to
accessors and operators on SpecialName methods.
(Cast.TryReduce): Handle conversions from char constants.
svn path=/trunk/mcs/; revision=13363
* expression.cs (IndexerAccess.DoResolveLValue): Resolve the same
problem that the last fix but in the other sid (Set).
* expression.cs (IndexerAccess.DoResolve): Fix a problem with a null
svn path=/trunk/mcs/; revision=13361
* expression.cs (IndexerAccess.DoResolve): Before trying to resolve
any indexer, it's needed to build a list with all the indexers in the
hierarchy (AllGetters), else we have problems. Fixes#35653.
svn path=/trunk/mcs/; revision=13358
* class.cs (MethodData.Define): It is wrong for an interface
implementation to be static in both cases: explicit and implicit.
We were only handling this in one case.
Improve the if situation there to not have negations.
* class.cs (Field.Define): Turns out that we do not need to check
the unsafe bit on field definition, only on usage. Remove the test.
svn path=/trunk/mcs/; revision=13357
* cs-parser.jay: Small fix: we were not comparing the constructor
name correctly. Thanks to Zoltan for the initial pointer.
svn path=/trunk/mcs/; revision=13349
* cs-parser.jay: Only perform the constructor checks here if we
are named like the class; This will help provider a better
error. The constructor path is taken when a type definition is
not found, but most likely the user forgot to add the type, so
report that rather than the constructor error.
svn path=/trunk/mcs/; revision=13347
* ilasm/parser/ScannerAdapter.cs: Implement the new cleanup method
in the tokenizer. This fixes the build.
* skeleton.cs (cleanpup): Rename to cleanup to make it look more consistent.
* cs-tokenizer.cs (Cleanup): Rename to 'cleanup' to make it more
consistent with other methods.
svn path=/trunk/mcs/; revision=13344
* ecore.cs:
* expression.cs:
* typemanager.cs: fixes to allow mcs compile corlib with the new
Type.IsSubclassOf fix.
svn path=/trunk/mcs/; revision=13341
* expression.cs (LocalVariableReference.DoResolve): Classify a
constant as a value, not as a variable. Also, set the type for
the variable.
svn path=/trunk/mcs/; revision=13340
* cs-parser.jay (fixed_statement): take a type instead of a
pointer_type, so we can produce a better error message later.
* statement.cs (Fixed.Resolve): Flag types that are not pointers
as an error.
svn path=/trunk/mcs/; revision=13339
* statement.cs: First populate the pinned variables, then emit the
statement, then clear the variables. Before I was emitting the
code once for each fixed piece.
svn path=/trunk/mcs/; revision=13338
* statement.cs (FlowBranching.CheckOutParameters): `struct_params'
lives in the same number space than `param_map'. Fixes#36154.
svn path=/trunk/mcs/; revision=13336
* cs-parser.jay (constructor_declaration): Set the
Constructor.ModFlags before probing for it. This makes the
compiler report 514, 515 and 132 (the code was there, but got
broken).
svn path=/trunk/mcs/; revision=13335
* statement.cs (Goto.Resolve): Set `Returns' to ALWAYS.
(GotoDefault.Resolve): Set `Returns' to ALWAYS.
(GotoCase.Resolve): Set `Returns' to ALWAYS. Fixes the test-49 problem on windows
svn path=/trunk/mcs/; revision=13334
* class.cs: don't try to create the ParamBuilder for the return
type if it's not needed (and handle it breaking for the ms runtime
anyway).
svn path=/trunk/mcs/; revision=13332
* cs-tokenizer.cs (get_cmd_arg): Fixups to allow \r to terminate
the command. This showed up while compiling the JANET source
code, which used \r as its only newline separator.
svn path=/trunk/mcs/; revision=13330
* class.cs (Method.Define): If we are an operator (because it
reuses our code), then set the SpecialName and HideBySig. #36128
svn path=/trunk/mcs/; revision=13329
* ecore.cs (StandardImplicitConversion): When in an unsafe
context, we allow conversion between void * to any other pointer
type. This fixes bug #35973.
svn path=/trunk/mcs/; revision=13325
* attribute.cs (Attributes.Contains): Add new method.
* class.cs (MethodCore.LabelParameters): if the parameter is an
`out' parameter, check that no attribute `[In]' has been passed.
svn path=/trunk/mcs/; revision=13321
* attribute.cs (Attributes.AddAttributeSection): Rename to this
since it makes much more sense.
(Attributes.ctor): Don't require a Location parameter.
* rootcontext.cs (AddGlobalAttributeSection): Rename again.
* attribute.cs (ApplyAttributes): Remove extra Location parameters
since we already have that information per attribute.
* everywhere : make appropriate changes.
* class.cs (LabelParameters): Write the code which actually
applies attributes to the return type. We can't do this on the MS
.NET runtime so we flag a warning in the case an exception is
thrown.
svn path=/trunk/mcs/; revision=13319
* class.cs (MethodCore.LabelParameters): Remove the extra
Type [] parameter since it is completely unnecessary. Instead
pass in the method's attributes so that we can extract
the "return" attribute.
svn path=/trunk/mcs/; revision=13317
* cs-parser.jay (parse): Use Report.Error to flag errors instead
of ignoring it and letting the compile continue.
* typemanager.cs (ChangeType): use an extra argument to return an
error condition instead of throwing an exception.
svn path=/trunk/mcs/; revision=13316
* expression.cs (Unary.TryReduce): mimic the code for the regular
code path. Perform an implicit cast in the cases where we can
implicitly convert to one of the integral types, and then reduce
based on that constant. This fixes bug #35483.
svn path=/trunk/mcs/; revision=13315
* class.cs: Remove some dead code.
* cs-parser.jay: Estimate the number of methods needed
(RootContext.MethodCount);
* cs-tokenizer.cs: Use char arrays for parsing identifiers and
numbers instead of StringBuilders.
* support.cs (PtrHashtable): Add constructor with initial size;
We can now reduce reallocations of the method table.
svn path=/trunk/mcs/; revision=13312
* codegen.cs (EmitContext.CurrentFile): New public field.
(EmitContext.Mark): Use the CurrentFile to check whether the
location is in the correct file.
(EmitContext.EmitTopBlock): Initialize CurrentFile here.
svn path=/trunk/mcs/; revision=13284
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().
* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location. [FIXME: The location argument which gets passed to this
method is sometimes wrong!]
svn path=/trunk/mcs/; revision=13283
* AsymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
* DSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair.
* KeySizes.cs: Added internal IsLegalKeySize and IsLegal to avoid
duplication in both AsymmetricAlgorithm and SymmetricAlgorithm.
* RC2.cs: Modified to use IsLegalKeySize from KeySizes.cs.
* RSACryptoServiceProvider.cs: Fix bug where key generation always
resulted in 1024 bits keypair. Should fix unit test failure under
Linux.
* SymmetricAlgorithm.cs: Moved IsLegalKeySize to KeySizes.cs.
svn path=/trunk/mcs/; revision=13256
* ecore.cs (SimpleName.SimpleNameResolve): Don't report an error
if it's a nested child, but also deriving from the outer class.
See test 190.cs.
svn path=/trunk/mcs/; revision=13251
* typemanager.cs (IsNestedChildOf): Make this work if it's a
nested child, but also deriving from the outer class. See
test-190.cs.
(FilterWithClosure): We may access private members of the outer
class if we're a nested child and deriving from the outer class.
(RealMemberLookup): Only set `closure_private_ok' if the
`original_bf' contained BindingFlags.NonPublic.
svn path=/trunk/mcs/; revision=13248
* CryptoStream.cs: Partial fix for bug #40689 (workaround). Does not
throw a NotSupportedException on closing a CryptoStream in read mode
(like MS does but unlike MS documents).
svn path=/trunk/mcs/; revision=13244
* object.c:
(mono_unhandled_exception): fill in the arguments for the
UnhandledException event. Only trigger that event for the default
domain (as MS does).
svn path=/trunk/mono/; revision=13239
* Console.cs: Make stderr, stdout and stdin use synchronized
versions of the their readers/writers.
2003-03-20 Miguel de Icaza <[email protected]>
* Thread.cs (CurrentCuluture): use the invaraint culture instead
of "" for the current_culture setting.
2003-04-05 Miguel de Icaza <[email protected]>
* TextWriter.cs: Implemented Synchronized method.
* TextReader.cs: Implemented Synchronized method.
svn path=/trunk/mcs/; revision=13203
* MobileCapabilities.cs : More methods.
* DeviceFilterDictionary.cs: Used by MobCaps for filtering
the capabilities. Init impl.
svn path=/trunk/mcs/; revision=13195
* MobileCapabilities.cs : Completed all properties.
Thanks to the tool that I made.
* ErrorHandlerModule.cs : Initial implementation.
svn path=/trunk/mcs/; revision=13193
* FileStream.cs (Read, ReadByte, Seek): throw
ObjectDisposedException if the handle has been released.
(Read): Throw exceptions specified in the spec.
(Read, Write, ReadSegment, WriteSegment): There is no requirement for any
instance methods of FileStream to be thread safe, so remove all
the calls to lock on the object
svn path=/trunk/mcs/; revision=13172
* doc/web/makefile: Add team page information.
* doc/web/team.xml:
* doc/web/render-team-page.cs: Code for rendering a team page.
svn path=/trunk/mono/; revision=13147
* object.c: Improve typed allocation stuff based on suggestions from
Paolo. Also turn it on if the GC library supports it.
svn path=/trunk/mono/; revision=13145
* Version.cs: Make operator== and operator!= cope with null
objects. Didn't change operator<, operator<=, operator> or
operator>= because its not meaningful to use those to compare
against null, and throwing a NullReferenceException is probably
the best thing to do there anyway.
Fixes bug 40720.
svn path=/trunk/mcs/; revision=13139
* object.c object.h class.h: Added experimental typed allocation
facility using the interfaces in gc_gcj.h.
* os/gc_wrapper.h: Added new include files.
svn path=/trunk/mono/; revision=13077
The following change is conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* threads.c (SuspendThread, ResumeThread): Fully implemented this.
(gc_init): New static function; install a signal handler for
SIGPWR which is used to suspend threads. [FIXME: it SIGPWR
doesn't exist on all Unix systems, we need to find another
signal].
(mono_wapi_push_thread_stack): New public function. Tells the
garbage collector about the current stack pointer of a suspended
thread.
svn path=/trunk/mono/; revision=13074
* XmlDocument.cs : Load() now closes the given XmlReader.
Don't allow creation of XmlTextReader for Doctype. (workaround.)
* XmlInputStream.cs : It now closes its internal stream explicitly.
* XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
* XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
* XmlParserInput.cs : added Close() method.
* XmlReader.cs : MoveToContent() should (1) not Read in case of empty
element, and (2) MoveToElement() in case of attribute.
* XmlTextReader.cs : Close() now actually closes source TextReaders.
svn path=/trunk/mcs/; revision=13070
All the following changes are conditional to `WITH_INCLUDED_LIBGC'
which is not yet enabled by default.
* gc.c (mono_gc_init): Set the gc_thread_vtable to our thread
functions.
(mono_gc_lock, mono_gc_unlock): New static functions.
* threads.c (mono_gc_stop_world, mono_gc_start_world): New public
functions; stop/start the world for the garbage collector. This
is using the windows API; we need to complete the SuspendThread()/
ResumeThread() implementation in the io-layer to make this work on Unix.
(mono_gc_push_all_stacks): New public function; tells the garbage
collector about the stack pointers from all managed threads.
svn path=/trunk/mono/; revision=13065
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13061
sent by Jose Lu�s Mart�n.
* TcpClientTransportSink.cs: Added Content-Type header. Improved support
for OneWay messages.
svn path=/trunk/mcs/; revision=13060
- Fixed enums
- Removed a few conflicts from the grammar
- Added single-line If statement
- Fixed access modifiers for module members
- Started implementing MustOverride (not working yet)
- Added MyClass
- Added a couple of missing integral types
svn path=/trunk/mcs/; revision=13032
* reflection.c: set table_idx in MonoReflectionArrayMethod object even
if the array method was already assigned a token (fixes bug#40646).
svn path=/trunk/mono/; revision=13027
* class.cs (Event.Define): Do not allow abstract events to have
initializers.
2003-04-01 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add error productions for ADD/REMOVE missing a
block in event declarations.
svn path=/trunk/mcs/; revision=13023
* class.cs (TypeContainer.GetClassBases): We were checking for the
parent class being sealed too late.
* expression.cs (Binary.Emit): For <= and >= when dealing with
floating point values, use cgt.un and clt.un instead of cgt and
clt alone.
svn path=/trunk/mcs/; revision=13010
* statement.cs: Apply the same optimization as MS: skip the
GetEnumerator returning an IEnumerator, and use the one returning a
CharEnumerator instead. This allows us to avoid the try-finally block
and the boxing.
svn path=/trunk/mcs/; revision=13009
* metadata.h: Added the new tables.
* row-indexes.h: Added definitions for new tables.
* metadata.c: Add schemas for new tables, and add support for
computing the sizes of them.
* class.c: Update for handling the new type cases.
2003-03-31 Miguel de Icaza <[email protected]>
* main.c: Sorted command line options table by name.
* dump.c: Add support for dumping the new generic tables.
* monodis.1: Update man page.
svn path=/trunk/mono/; revision=13008
* domain.c: added initialization of mono_defaults.marshalbyrefobject_class
* icall.c: ves_icall_InternalExecute: fixed bug in field setter and in the
generation of output parameters.
ves_icall_Remoting_RealProxy_GetTransparentProxy: added support for interfaces.
* marshal.c: mono_remoting_wrapper(): avoided call through proxy when the type is
contextbound and the target object belongs to the context of the caller.
* object.h: added context and unwrapped_server variables in MonoRealProxy.
* object.c: Implemented support for interfaces and abstract classes
in mono_class_proxy_vtable. Fixed several methods to avoid unneeded calls through
proxy. Fixed problem when dealing with output parameters in mono_runtime_invoke_array.
svn path=/trunk/mono/; revision=12974
instead of having to have namespace and name seperate.
* ClassTable.cs: Make method that seprates full names into
name/namespaces public.
svn path=/trunk/mcs/; revision=12948
* Handler.cs: Add CP936 and ENCgb2312 Encodings
* CP936.cs: Added support for GB2312 Encoding
* CP950.cs: Small fixes on SBCS range
* DbcsEncoding.cs: Little fix
* Gb2312Convert.cs: Support class for conversion table
* gb2312.table: GB2312 conversion table
The GB2312 Encoding is actually GB2312+GBK Encoding as in Windows
svn path=/trunk/mcs/; revision=12934
* Handler.cs: Added encoding handler for CP950 and ENCbig5
* DbcsEncoding.cs: A base class for all DBCS encodings
* DbcsConvert.cs: A singleton class for all DBCS conversion tables
* CP950.cs: Encoding and Decorder classes for Big5 Encoding
* big5.table: The conversion table for Big5 Encoding
CP932.cs can be made neater by using the new base class
svn path=/trunk/mcs/; revision=12924
that, and use a stack for putting chars back. This is probably
much slower and not nearly as cool but the old method was a little
buggy and I was having trouble tracking things down. This can be
optimized someday.
svn path=/trunk/mcs/; revision=12923
* class.h class.c (mono_class_is_subclass_of): New function.
* icall.c (ves_icall_System_Array_FastCopy): Added optimized copy
routines for most common case (calls from ArrayList::ToArray).
* icall.c (ves_icall_System_Environment_Exit): Call profiler shutdown
routine so programs which call Environment::Exit() can be profiled.
* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle):
Added MONO_ARCH_SAVE_REGS.
* icall.c (ves_icall_type_is_subtype_of): Use new function.
svn path=/trunk/mono/; revision=12920
* Array.cs (Copy): Call FastCopy() earlier to avoid the expensive
type checks and let it decide whenever a fast copy is possible.
svn path=/trunk/mcs/; revision=12919
* expression.cs (Unary.ResolveOperator): In LogicalNot, do an
implicit conversion to boolean.
* statement.cs (Statement.ResolveBoolean): A boolean expression is
also one where the type implements `operator true'.
* ecore.cs (Expression.GetOperatorTrue): New helper routine to
get an expression that will invoke operator true based on an
expression.
(GetConversionOperators): Removed the hack that called op_True
here.
(Expression.ResolveBoolean): Move this from Statement.
svn path=/trunk/mcs/; revision=12891
* CryptoStream.cs: fixed the previous fix. MS throws a NotSupportedExc
when FlushFinalBlock is called twice. I've moved a few lines from Close
to FlushFinalBlock and added the exception check.
svn path=/trunk/mcs/; revision=12879
* AspTokenizer.cs: allow quotes inside server tags that are part of
attribute values.
* CachingCompiler.cs: no more 'FileNotFound' exceptions when the
compilation fails.
svn path=/trunk/mcs/; revision=12877
* ConstraintCollection.cs: Little fix.
* DataColumn.cs: Added new internal method SetUnique()
* UniqueConstraint.cs: some little fixes
svn path=/trunk/mcs/; revision=12867
* reflection.h (MonoReflectionDynamicAssembly): track changes in
the layout of the class.
* reflection.c (alloc_table): double the size on overflow to avoid
unnecessary copying.
* reflection.h reflection.c: If AssemblyBuilderAccess is Run, then
avoid filling out metadata tables and blobs. Also set mb->ilgen to
null so it can be garbage collected.
svn path=/trunk/mono/; revision=12865
* reflection.c (mono_reflection_get_type): Return the resolved type
only if it is in the assembly we searched.
* reflection.c (ensure_runtime_vtable): Initialize method slots.
* class.c (mono_class_setup_vtable): Set the slot of the overriding
method.
svn path=/trunk/mono/; revision=12863
* AspGenerator.cs: generate correct appbase path. It was working with
mcs but not with csc.
* BaseCompiler.cs: quote arguments and removed GetRandomFileName.
* CachingCompiler.cs: quote source file.
svn path=/trunk/mcs/; revision=12862
* DataColumn.cs: If DataType if set to something else than short, int
or long and AutoIncrement is true, AutoIncrement is must set to false.
svn path=/trunk/mcs/; revision=12857
* XmlTextWriter.cs (Write): A patch from Atsushi to fix
prematurely ending the write, or something like that. It was
causing us to chop off the end of the document when we're trying
to generate XML Schemas.
svn path=/trunk/mcs/; revision=12854
* appdomain.c:
(set_domain_search_path): allow 'file://blah'. It's an invalid URI,
the right one is 'file:///blah', but MS allows it.
* assembly.c:
(mono_assembly_open): allow 'file://blah'
Fixes bug #40306. Thanks to Mitko Iliev ([email protected]).
svn path=/trunk/mono/; revision=12848
* DataRow.cs:
(BeginEdit): fixed array bound problem when a column has been added.
(EndEdit): just assign proposed to current as proposed is set to null.
This also fixes another array boudn problem.
svn path=/trunk/mcs/; revision=12837
we don't have a proper entry point and our main class is a SWF form. This
makes it possible to compile directly code generated by the VB.NET IDE
svn path=/trunk/mcs/; revision=12833
* MonoXSD.cs: Added support for two command line arguments:
/output: specify the directory to put the generated schema.
/type: specify a specific type in the assembly.
svn path=/trunk/mcs/; revision=12829
* reflection.c (mono_reflection_parse_type): handle deeply nested
types correctly.
* reflection.c (mono_image_create_token): Use unique token values
since they will be put into a hash table.
* class.c (mono_class_setup_vtable): If a method occurs in more than
one place in the vtable, and it gets overriden, then change the
other occurances too.
* marshal.c (mono_marshal_get_managed_wrapper): Added support for
object as return type.
svn path=/trunk/mono/; revision=12825
* Activator.cs (CreateInstance): Call GetConstructor with the right
arguments so the nonPublic argument is handled correctly.
svn path=/trunk/mcs/; revision=12821
* MonoXSD.cs: Add support for having enums as a field in the
class. I overlooked this bit last week.
* makefile: Make it build with debug enabled by default.
svn path=/trunk/mcs/; revision=12801
* UdpClient.cs: don't bind the socket unless .ctor (IPEndPoint) is used.
Added more checks and throws.
Small fixes in Send to avoid duplicating the buffer.
Moved CheckIfDisposed calls to the start of the methods instead of doing
the check inside a finally clause.
svn path=/trunk/mcs/; revision=12798
OVERRIDES actually works, for now.
- Fixed a bug in MyBase invocations (en expression list was passed instead of
an argument list)
- Added 'Is Nothing' relational expression (maybe not working right, must
check)
svn path=/trunk/mcs/; revision=12794
assembly is a WinEXE AND uses System.Windows.Forms AND RootContext.MainClass
is derived from System.Windows.Forms.Form (just like VB.NET does)
svn path=/trunk/mcs/; revision=12793
* added XmlReaderCommonTests.cs which is mostly copied from
XmlTextReaderTests and XmlNodeReaderTests. These tests are removed
from each files.
svn path=/trunk/mcs/; revision=12759
* XmlTextReader.cs : implemented ReadString().
fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
null reference exception when context is null.
* XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
fixed Read() - when positioned at EndElement, it didn't progress.
fixed HasAttribute - it didn't return false in all cases.
fixed Name and LocalName - only limited type of nodes return names.
fixed AttributeCount - in some cases it threw null ref exception.
svn path=/trunk/mcs/; revision=12758
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mono/; revision=12756
* FloatingPointFormatter.cs: Fixed some bugs for get the same
results than MS.NET. Added simple error recovering, now ToString
will return a general format if there is any exception in the
process of formatting. This make the library more robust while the
formatters are refined.
* DoubleTest.cs: Converted to Nunit 2.0. Completed ToString test.
* icall.c: Deleted "ToString" implementation for double and float
because they are full implemented in managed code.
svn path=/trunk/mcs/; revision=12756
* MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
field. Specifies whether two local variables have the same name.
svn path=/trunk/mcs/; revision=12742
* DataRow.cs: Fixed problems in accessers, BeginEdit, CancelEdit,
EndEdit and AcceptChanges to act correctly according to DataRowState
and DataRowVersion.
* DataRowCollection.cs: Call AttachRow and DetachRow when a row is
attached and detached from the collection.
svn path=/trunk/mcs/; revision=12728
* ObjRef.cs: Removed some [MonoTODO]
* TypeInfo.cs: Added support for interfaces.
* RemotingServices.cs: Several fixes to support interfaces in proxies.
svn path=/trunk/mcs/; revision=12714
creation message to the right message sink. Added support for AppDomainLevelActivator.
* ConstructionLevelActivator.cs: Activate does not use the object identity because
it may not be set yet.
* ContextLevelActivator.cs: this activator is now always called for CBOs. A new context
has to be created only if the construction message says so.
* AppDomainLevelActivator.cs: Added. Implements an IActivator that makes a remote creation.
svn path=/trunk/mcs/; revision=12713
in the same context as the caller.
* RemotingProxy.cs: added suport for dynamic sinks. Activation code moved to
ActivationServices.
svn path=/trunk/mcs/; revision=12711
* DataColumn.cs: Store empty string for Expression when null is passed in.
Classes generated by XSD.exe passes null by default.
svn path=/trunk/mcs/; revision=12700
* MonoXSD.cs: More refinements. We now support transforming
enumerations as well as arrays to their corresponding XML Schema
type. Read/Write properties will also be transformed (thanks to
reading KeithBa's book). XmlNode is properly handled, and XmlElement
& co. should also be transformed correctly.
Next up: I should look into whether or not xsd.exe makes use of
XmlAttributes. If so, I'll have to support that.
Other than that, this part of MonoXSD should be complete.
svn path=/trunk/mcs/; revision=12695
* Uri.cs: reworked Segment. Small fix in MakeRelative. Throw exception
in Parse when host length is 0 and the Uri is not a file.
svn path=/trunk/mcs/; revision=12690
* UriTest.cs: moved a couple of test to their own method as they fail
with MS runtime. Added new tests for Segment.
svn path=/trunk/mcs/; revision=12689
* appdomain.c: moved Uri handling to assembly.c
* assembly.c: use g_filename_from_uri (). This makes assembly.LoadFrom
work when using a file Uri in *nix and windows.
* icall.c: fixed Assembly.CodeBase to return a valid Uri. The same for
GetReferencedAssemblies.
svn path=/trunk/mono/; revision=12679
* XmlSerializer.cs : Serialize() don't write xmldecl when WriteState is
not WriteState.Start, and never call WriteEndDocument().
svn path=/trunk/mcs/; revision=12662
* BaseCompiler.cs: fixed the hack to work under windows.
* CachingCompiler.cs: under windows, try 'mcs.bat' and then 'mcs'.
svn path=/trunk/mcs/; revision=12659
* Thread.cs: Keep the thread state updated in all the places that
require it. (Suspend, Resume and Interrupt not handled yet)
svn path=/trunk/mcs/; revision=12655
* icall.c: Rename a couple of internal calls
* threads.c: Set the thread state to Stopped when a thread exits.
Fixes bug 39377.
svn path=/trunk/mono/; revision=12654
* FieldTable.cs: Add method to check if all fields have been defined, set referenced fields properties when defining them
* ClassTable.cs: Make sure all methods and fields are defined.
svn path=/trunk/mcs/; revision=12648
* MonoXSD.cs: A simple implementation of MonoXSD. It current
supports creating an XML Schema based on a .NET assembly. The
handling of schema derivation is simplistic.
svn path=/trunk/mcs/; revision=12644
* icall.c (ves_icall_type_is_subtype_of): Avoid vtable creation.
* reflection.c (mono_blob_entry_hash): Avoid reading uninitialized
memory.
(method_encode_clauses): Create exception info structures in the right
order.
(mono_reflection_setup_internal_class): Initialize supertypes field.
* class.c object.c: Handle interfaces which implement other interfaces
correctly.
* class.h class.c: Move the supertypes array initialization code into
a separate function so it can be used for dynamic types too. Also call
it earlier, in mono_class_init(), since it can be used before the
type is initialized.
svn path=/trunk/mono/; revision=12632
* FileSystemWatcher.cs: added attributes and some more implementation.
Now only the guts left to do.
* FileSystemEventArgs.cs:
* RenamedEventArgs.cs: implemented a couple of properties.
svn path=/trunk/mcs/; revision=12627
* System.Data.build: on windows build, ignore
warnings CS0219: "The variable xxx is assigned but its value is
never used" and CS0168: "The variable xxx
is declared but never used"
* System.Data/DataRow.cs: flush
* System.Data/DataSet.cs: start implementation on Clear(),
and WriteXml() should write the start element <?xml ... ?> at the top
of the document
* System.Data/DataTable.cs: TODO/FIXME notes. Start implementation
of Compute() - still not working
svn path=/trunk/mcs/; revision=12626
* UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
(unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
svn path=/trunk/mcs/; revision=12624
* added XmlParserInput.cs for multi xml document sources.
* added DTDObjectModel.cs (maybe temporary).
* XmlTextReader.cs :
+ fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
+ Some members such as LineNumber, ReadChar now uses XmlParserInput.
+ added support for Namespaces (namespace-ignorant parse available).
+ added support for XmlResolver.
+ replace SetReaderContext()/SetReaderFragment() with Initialize().
+ use NameTable in CreateNameString.
+ fixed ReadCData(). Now reads "]]]>" correctly.
+ support for DTD parse.
+ Read() now throws an error when it reached EOF while Depth > 0.
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
* XmlDocument.cs : ReadNode() now reads DocumentType.
* XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
* XmlEntity.cs,
XmlNotation.cs : added override LastLinkedChild (for doctype node).
* XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
* XmlElement.cs : bugfix for node removal of set_InnerXml.
* XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
(to append child XmlEntity into XmlDocumentType correctly.)
* XmlInputStream.cs : fixed to access file with FileAccess.Read.
svn path=/trunk/mcs/; revision=12619
* System.Data/DataRowView.cs: in the constructor pass
DataRow in instead of int index of the DataRow
in DataTable.Rows
* System.Data/DataTable.cs: implement sorting
for method Select(filterExpression,sort)
* System.Data/DataView.cs: more implementation -
Now, If Sort, RowFilter, or RowStateFilter is set, an
enumerated DataRowViews will be a view with those
properties applied. Still need to implement event handling
though.
svn path=/trunk/mcs/; revision=12603
* Single.cs:
* Double.cs: Apply changes of .ToString methods.
* SingleFormatter.cs:
* DoubleFormatter.cs: Simple wrappers to FloatingPointFormatter.
* FloatingPointFormatter.cs: New class. Implementation of double and
single formatters. It is unified now and parametrized with precission
values.
svn path=/trunk/mcs/; revision=12589
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Builder.cs: New. Abstract class for building X.509 related
structures (like certificates and CRLs).
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509CertificateBuilder.cs: New. Class to build X.509 certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12574
* PrivateKey.cs: New. Class to load or create PVK (PriVate Key)
files (a Microsoft specific file format for private keys).
2003-03-06 Sebastien Pouliot <[email protected]>
* SoftwarePublisherCertificate.cs: New. Class to load or create
SPC files (which are PKCS#7 files containing only certificates
and CRL).
svn path=/trunk/mcs/; revision=12573
* X501Name.cs: New. X.501 Distinguished Names stuff
* X509Certificate.cs: New. A more complete class to handle X.509
certificates.
* X509Extension.cs: New. A base class for all X.509 extensions.
* X509Extensions.cs: New. X509Extension collection.
* X520Attributes.cs: New. X.520 attributes (mainly for X501 names)
svn path=/trunk/mcs/; revision=12561
* ASN1.cs: Improved version.
* ASN1Convert.cs: New. Helper class to convert between .NET
types and ASN.1 structures.
svn path=/trunk/mcs/; revision=12560
I was setting the return to the parent before, but the parent
value was being set to the return type value so it all worked
out but was very confusing.
svn path=/trunk/mcs/; revision=12559
* SqlConnection.cs: if Server in the ConnectionString
is set to "(local", use "localhost" as the hostname
to connect
svn path=/trunk/mcs/; revision=12521
neither String.Empty nor null. Thanks to Simon Guindon for
reporting the bug and Jackson for fixing this bug with me.
svn path=/trunk/mcs/; revision=12518
* XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
* XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
fixed ReadNode(), it should call reader.Read() only on Initial state.
* XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
System.Net.WebClient directly.
* XmlParserContext.cs : baseURI don't be null.
* XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
* XmlUrlResolver.cs : namespace change for XmlInputStream.
svn path=/trunk/mcs/; revision=12517
* XmlTextWriterTests.cs : fixed AttributeWriteAttributeString() in
related to MS bugs. "\r\n" are replaced with Environment.NewLine.
svn path=/trunk/mcs/; revision=12516
* mono-win32-setup.nsi: added NSIS
(NullSoft Installer System) script file for building
a Mono release for Windows NT/2000/XP
svn path=/trunk/mcs/; revision=12511
* makefile: added ByteFX.Data.dll to windows install
* class/library.build: added ByteFX.Data.dll
to windows build. added additional clean targets
* class/Microsoft.VisualC/Microsoft.VisualC.build: fix
windows clean
* class/ByteFX.Data: added directory for ByteFX.Data.dll
which includes a MySQL ADO.NET Provider.
Contributed by Reggie Burnett <[email protected]>
from ByteFX, Inc.
ByteFX.Data 0.6.5 is Copyright 2002-2003, ByteFX, Inc.
Added the following files and directories:
class/ByteFX.Data/AssemblyInfo.cs
class/ByteFX.Data/list
class/ByteFX.Data/ByteFX.Data.build
class/ByteFX.Data/makefile.gnu
class/ByteFX.Data/ChangeLog.txt
class/ByteFX.Data/readme.txt
class/ByteFX.Data/lgpl.txt: new files
BitStream.cs
Connection.cs
Field.cs
Inflater.cs
ConnectionString.cs
HuffmanTree.cs
NamedPipeStream.cs
class/ByteFX.Data/Common: added files to new directory
Driver.cs
command.resx
todo.txt
CommandBuilder.cs
Exception.cs
dataadapter.cs
transcaction.cs
Connection.cs
Field.cs
datareader.cs
Connection.resx
MysqlDefs.cs
parameter.cs
class/ByteFX.Data/mysqlclient: added files to new directory
command.cs
parameter_collection.cs
class/ByteFX.Data/mysqlclient/Designers: added files to new directory
svn path=/trunk/mcs/; revision=12508
* makefile: add ilasm.exe to windows build and add missing assemblies
to windows install
* class/library.build: include PEAPI.dll, Npgsql.dll, and
ICSharpCode.SharpZipLib part of the windows build
svn path=/trunk/mcs/; revision=12506
* System.Data.SqlClient/SqlCommandBuilder.cs:
Change "where" variable name to "whereClause" at the
request of Rhys Weatherley <[email protected]>
svn path=/trunk/mcs/; revision=12488
* debug-mono-symfile.h (MonoSymbolFileLexicalBlockEntry): New type.
(MonoDebugLexicalBlockEntry): New types.
* debug-mono-symfile.c
(_mono_debug_address_from_il_offset): Moved here from ../jit/debug.c.
svn path=/trunk/mono/; revision=12483
Added basic support for lexical scopes. This is just to tell a
debugger that a local variable is only available in a specific
lexical scope and that another variable of the same name may exist
in another lexical scope. See debugger/test/TestLexicalScope.cs
for examples.
* MonoSymbolTable.cs (LexicalScopeEntry): New class.
(LocalVariableEntry): Added `BlockIndex' field which specifies the
lexical scope of this variable.
* MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
LexicalScopeEntry instead.
svn path=/trunk/mcs/; revision=12481
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.
* System.Web/HttpServerUtility.cs: removed MonoTODO.
* System.Web.Caching/Cache.cs:
* System.Web.Caching/CacheDefinitions.cs:
* System.Web.Caching/CacheDependency.cs:
* System.Web.Caching/CacheEntry.cs:
* System.Web.Caching/CacheExpires.cs:
* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
page happier. Does not work yet (wait for the next patch).
* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.
* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
it work.
svn path=/trunk/mcs/; revision=12480
* io-layer/processes.c: included Jerome Laban's patch and call
SetLastError when the executable is not found.
* metadata/process.c: ret can be any non-zero value accroding to MS doc.
svn path=/trunk/mono/; revision=12475
class's method table.
* CodeGen.cs: Add Method to add methods :p
* MethodTable.cs: Add file, this class is used to add methods to a class.
svn path=/trunk/mcs/; revision=12466
* XmlCustomFormatter.cs: Correct signature, Implement
ToByteArrayBase64
* XmlSerializationWriter.cs: Fix prototype.
* XmlSerializer.cs: Implements Deserialize().
2003-03-12 Elan Feingold <[email protected]>
* XmlTextReader.cs: When throwing a ReaderException, show what
character was the culprit
svn path=/trunk/mcs/; revision=12456
* makefile.gnu : use $RUNTIME for all targets
actually run the compiled program on 'test-gtk' target
* mb-tokenizer.cs : no escaping of chars allowed in VB.NET (old mcs code removed)
handle doubled-doublequotes (VB idiom to escape a doublequote)
svn path=/trunk/mcs/; revision=12436
* XslTransform.cs: Implemented boolean, number and string parameters.
(Node Set and Node Iterator parameters and Extension Objects are left.)
* XsltAttributeList.cs: Loosened access modifiers.
svn path=/trunk/mcs/; revision=12405
* System.Data.SqlClient/SqlDataReader.cs: when
the data reader is closed, this SqlDataReader referenced
in SqlConnection needs to be null
* System.Data.Common/DbDataAdapter.cs: for SelectCommands executed that
have no result set, such as, DDL like CREATE TABLE or DML like INSERT,
the data reader needs to be immediately closed, and 0 returned
as the number of rows added or refreshed
svn path=/trunk/mcs/; revision=12403
* makefile: Removed cert2spc and sn from linux build (as
Mono.Security assembly isn't, yet, part of the linux build).
* makefile.gnu: Removed (not required for tools).
svn path=/trunk/mcs/; revision=12367
* ASN1.cs: Removed - now part of Mono.Security assembly
* cert2spc.cs: Moved to /mcs/tools/security
* secutil.cs: Moved to /mcs/tools/security
svn path=/trunk/mcs/; revision=12362
* ARC4ManagedTest.cs: New. Test vectors for RC4(tm) taken from
usenet and Netscape SSL version 3 implementation details.
* MD2ManagedTest.cs: New. Call tests defined in MD2Test class.
* MD2Test.cs: New. Test vectors defined in RFC1319.
svn path=/trunk/mcs/; revision=12337
* ARC4Managed.cs: New. Implementation of the Alleged RC4(tm)
stream cipher in managed code (required for SSL/TLS).
* CryptoConvert.cs: New. Helper class to help convert between
Windows crypto structures and .NET crypto classes (required
for security tools).
* MD2.cs: New. Abstract class for all MD2 hash implementations.
* MD2Managed.cs: New. Managed implementation of the MD2 hash
algorithm (required for old, but still valid, X.509 certificates).
* RC4.cs: New. Abstract class for all RC4 stream cipher
implementations.
svn path=/trunk/mcs/; revision=12336
* class.c (mono_marshal_load_type_info): Fix buglet: Noticed when
fixing a warning for a miss-used prototype, would have cause
random memory corruption.
svn path=/trunk/mono/; revision=12326
MCS is currently 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.
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.
We are in feature completion mode right now. There are still
a couple of areas that are not covered by the Mono compiler, but
they are very very few at this point (security attributes),
* 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
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:
* RNGCryptoServiceProvider is currently only working on Linux.
The current implementation reside in Mono's runtime and use
the <code>/dev/[u]random</code> device (which do not exists
@@ -39,13 +39,6 @@
algorithm can be different for every CSP (Crypto Service
Provider). However for compatibility we should provide an
implementation compatible with the MS CSP (most likely used).
* Analyse the current coverage of the unit tests on the
cryptographic classes and complete the unit tests.
* Optimizations (performance) on most class are possible. Some
have been done using the Community Edition of BoundChecker
(a free VisualStudio addon) - recommanded!
</ul>
**** Notes
@@ -53,10 +46,16 @@
* All cryptographic algorithms are entirely managed, including
classes named <code>*CryptoServiceProvider</code>, with the
exception of <code>RNGCryptoServiceProvider</code> (which
resides in the runtime).
implementation resides in the runtime).
* There is a bug in the <code>PKCS1MaskGenerationMethod</code>
class (in both framework 1.0 and 1.1). This means our
implementation isn't compatible with MS (but is compatible with
PKCS#1 v.2.1). However we get OAEP padding for every platform!
* Look at assembly Mono.Security.Win32 if you require more
compatiblity with the Microsoft implementation (like accessing
a particuliar keypair container in a CSP).
a particuliar keypair container inside a specific CSP).
</ul>
@@ -68,26 +67,14 @@
(using the Mono.Security.ASN1 class).
* Software Publisher Certificates (SPC) used by Authenticode
(tm) to sign assemblies are supported (extraction from PE
files) but <b>not</b> validated.
(tm) to sign assemblies are supported and <b>minimally</b>
validated.
* Unit tests are generated from a set of existing certificates
(about a dozen) each having different properties. Another
set of certificates (more than 300) are used for a more
set of certificates (more than 700) are used for a more
complete test (but isn't part of the standard test suite for
size and time consideration).
</ul>
**** TODO
<ul>
* Authenticode(tm) support is incomplete. We can extract the
certificates from PE files but cannot validate the signature
nor the certificate chain (and we're still missing some trust
anchors). See Tools section for more information.
* Integration with CryptoAPI (on Windows) isn't possible as
long as the <code>X509Certificate(IntPtr)</code> constructor
isn't completed.
size and time consideration, i.e. a 7.5Mb C# source file).
</ul>
**** Notes
@@ -104,9 +91,13 @@
CryptoAPI's validation) when <code>IsCurrent</code> is called.
See assembly <b>Microsoft.Web.Services</b> for more details.
* The class Mono.Security.X509.X509Certificate (in Mono.Security
assembly) is becoming a much better alternative - and will
continue to evolve to support the security tools.
* Microsoft implementation of <code>X509Certificate</code> is
done by using CryptoAPI (unmanaged code). From the exceptions
thrown Authenticode(tm) support is done via COM.
done by using CryptoAPI (unmanaged code). Based on the
exceptions thrown, Authenticode(tm) support is done via COM.
</ul>
<hr>
@@ -120,58 +111,84 @@
**** Status
<ul>
* All classes are present but some (most Transforms) are only
stubbed.
* 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>
* All the transforms needs to be done. But this requires far
more XML knowledge than crypto. Note: Most tests runs because
the feeded XML is pre-c14n (by hand in the code) before
signing (not because the transforms works). In the short
term <code>libxml2</code> could be used to provide C14N, but
in the long term a fully managed class would be much better.
* 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).
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, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.Protocol.Tls
<ul>
* An 100% managed TLS implementation from Carlos Guzman Alvarez.
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* Work has been under way for quite some time - and should
start hitting CVS soon.
* A big part of this assembly is also included inside Mono's
corlib. The class are duplicated in this assembly so the
functionalities can be used with a dependency on 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>.
<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
@@ -182,10 +199,11 @@
* Wrapper classes for unmanaged versions of hash algorithms:
MD2, MD4, MD5 and SHA1 are supported. <b>note</b>: some
algorithms shouldn't be used in new design (MD4 is broken and
MD2 isn't considered safe). They are included to preserve
interoperability with older applications (e.g. some old, but
still valid, X.509 certificates use MD2).
algorithms shouldn't be used in new design (MD4 is broken,
MD2 and MD5 aren't considered safe for some usage). They are
included to preserve interoperability with older applications
(e.g. some old, but still valid, X.509 certificates use MD2,
MD4 is required for NTLM authentication ...).
</ul>
**** TODO
@@ -193,11 +211,22 @@
* Wrapper classes for unmanaged versions of symmetric
encryption algorithms (like DES, TripleDES, RC2 and others
present in default CSP).
* Wrapper classes for unmanaged versions of asymmetric
algorithms (like DSA and RSA) which persist their keypair
into the specified CSP.
</ul>
**** Ideas
<ul>
* Similar assemblies (e.g. <code>Mono.Security.XXX</code>)
could be created for <a href="http://www.openssl.org">OpenSSL</a>,
There are two ADO.NET data providers for <a href="http://www.postgresql.org/">PostgreSQL</a> in Mono:
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>
@@ -25,6 +43,8 @@
<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>
@@ -37,6 +57,12 @@
</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
Loaded 100 of 5940 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.