Mark tests as not working under TARGET_JVM
[mono.git] / mcs / class / System / System.CodeDom.Compiler / ChangeLog
1 2007-03-05  Peter Dettman <peter.dettman@iinet.net.au>
2
3         * Codegenerator.cs: I noticed an `unreachable code' warning while
4         building Mono:
5
6         System.CodeDom.Compiler/CodeGenerator.cs(1229,42): warning CS0162:
7         Unreachable code detected
8
9         This turned out to be in the method
10         CodeGenerator.IsValidLanguageIndependentIdentifier, which was
11         broken.
12
13         The following patch contains a unit test to demonstrate the
14         problem (checked against MS.NET), and a fix to CodeGenerator.cs.
15
16 2007-02-22  Marek Habersack  <grendello@gmail.com>
17
18         * CompilerCollection.cs: be case-insensitive with languages and
19         extensions when looking up the compiler.
20
21 2007-01-22  Miguel de Icaza  <miguel@novell.com>
22
23         * CodeDomProvider.cs: Prevent Moma from getting confused.
24
25 2006-11-17  Atsushi Enomoto  <atsushi@ximian.com>
26
27         * TempFileCollection.cs : make it work under non-libc environment.
28
29 2006-11-16  Marek Habersack  <grendello@gmail.com>
30
31         * Compiler.cs: ConfigurationElement to handle the <compiler>
32         sub-element of the <system.codedom> section
33
34         * CodeDomConfigurationHandler.cs: Reimplemented as a
35         ConfigurationSection. Made the class internal.
36
37         * CompilerCollection.cs: Collection of Compiler and CompilerInfo
38         objects. Uses List<CompilerInfo> as we need to be able to store
39         multiple entries for the same language, as .NET does.
40
41         * CodeDomProvider.cs: Changes to use the new
42         CodeDomConfigurationHandler class.
43
44 2006-11-07  Marek Habersack  <grendello@gmail.com>
45
46         * CompilerInfo.cs: Implement the CreateDefaultCompilerParameters API.
47
48         * CodeDomConfigurationHandler.cs: WarningLevel of CompilerInfo
49         should default to -1 if it is absent from the config file, as per
50         MSDN.
51
52 2006-11-06  Marek Habersack  <grendello@gmail.com>
53
54         * CodeDomProvider.cs: IsDefinedLanguage should return true if
55         CompilerInfo for the specified language exists.
56
57         * CodeDomConfigurationHandler.cs: add an instance of CompilerInfo
58         separately for each language name defined in the compiler's
59         definition.
60
61 2006-09-15  LLuis Sanchez Gual  <lluis@novell.com>
62
63         * TempFileCollection.cs: Create files in a temporary subdirectory,
64         for security reasons.
65         * CodeCompiler.cs: Let TempFileCollection choose the temp dir.
66
67 2006-05-04  LLuis Sanchez Gual  <lluis@novell.com>
68
69         * TempFileCollection.cs: Make sure generated file names
70           are unique. Fixes bug #76125 and #78230.
71
72 2006-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
73
74         * CodeGenerator.cs: Output empty line between types if 
75         BlankLinesBetweenMembers option is set.
76
77 2006-03-24  Chris Toshok  <toshok@ximian.com>
78
79         * CompilerInfo.cs (Init): make this internal as well, so
80         CodeDomConfigurationHandler can call it.
81
82         * CodeDomConfigurationHandler.cs (ReadCompilers): we need to call
83         CompilerInfo.Init after setting CompilerInfo.TypeName.
84
85 2006-03-11  Miguel de Icaza  <miguel@novell.com>
86
87         * CodeDomConfigurationHandler.cs: Comment out unused methods. 
88
89         * TempFileCollection.cs: Implement explicitly some interface
90         methods to get rid of the "!" errors on CorCompare.
91
92 2006-02-19  Zoltan Varga  <vargaz@gmail.com>
93
94         * CodeDomProvider.cs: Fix the [ToolboxItem] attribute. Fixes #77513.
95
96 2005-12-07  Gert Driesen  <drieseng@users.sourceforge.net>
97
98         * CodeGenerator.cs: Modified GeneratePrimitiveExpression to throw 
99         ArgumentException for sbyte value, use GenerateSingleFloatValue for 
100         float, GenerateDecimalValue for decimal and GenerateDoubleValue for
101         double. Modified exception message for non-primitive types to match
102         MS.NET.
103         * ICodeCompiler.cs: Set eol-style to native.
104         * CodeCompiler.cs: Set eol-style to native.
105         * CodeDomConfigurationHandler.cs: Set eol-style to native.
106         * CodeDomProvider.cs: Set eol-style to native.
107         * CodeGeneratorOptions.cs: Set eol-style to native.
108         * CodeParser.cs: Set eol-style to native.
109         * CompilerError.cs: Set eol-style to native.
110         * CompilerErrorCollection.cs: Set eol-style to native.
111         * CompilerInfo.cs: Set eol-style to native.
112         * CompilerParameters.cs: Set eol-style to native.
113         * CompilerResults.cs: Set eol-style to native.
114         * Executor.cs: Set eol-style to native.
115         * GeneratorSupport.cs: Set eol-style to native.
116         * ICodeGenerator.cs: Set eol-style to native.
117         * ICodeParser.cs: Set eol-style to native.
118         * LanguageOptions.cs: Set eol-style to native.
119         * TempFileCollection.cs: Set eol-style to native.
120
121 2005-11-30  Gert Driesen  <drieseng@users.sourceforge.net>
122
123         * CodeGenerator.cs: Corrected line endings. Set eol-style to native.
124         * IndentedTextWriter.cs: Indent can no longer become negative.
125
126 2005-11-04  Sebastien Pouliot  <sebastien@ximian.com> 
127
128         * CodeCompiler.cs: Compile now use the Executor class (instead of the
129         Process class). Fixed JoinStringArray.
130         * CompilerResults.cs: Load assembly only when the property is called.
131
132 2005-11-02  Sebastien Pouliot  <sebastien@ximian.com> 
133
134         * Executor.cs: Reworked (for permissions) and fixed ExitCode (must be 
135         called before Close).
136
137 2005-11-01  Sebastien Pouliot  <sebastien@ximian.com> 
138  
139         * CodeGenerator.cs: Added/stubbed missing 2.0 stuff.
140
141 2005-11-01  Sebastien Pouliot  <sebastien@ximian.com>
142
143         CodeDomProvider.cs: Added missing 2.0 methods. Added CAS permissions.
144         Added protection against NullReferenceException when no config is
145         available.
146
147 2005-10-29  Sebastien Pouliot  <sebastien@ximian.com>
148
149         CodeDomProvider.cs: Stubbed a few 2.0 methods to fix API errors in 
150         derived classes.
151
152 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>
153
154         * CompilerError.cs: Added LinkDemand for Unrestricted before 2.0.
155         * CompilerErrorCollection.cs: Added LinkDemand for Unrestricted before
156         2.0.
157
158 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com> 
159  
160         * CodeGenerator.cs: Fixed OutputAttributeArgument not to assume the
161         default value is null (it's String.Empty).
162
163 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>
164
165         * CompilerParameters.cs: Added [ComVisible(false)] on the new (2.0)
166         EmbeddedResources and LinkedResources properties.
167         * TempFileCollection.cs: Changed BasePath property to use Path.
168         GetTempPath (Environment check) and added the PathDiscovery check on
169         the combined result. Fixed TempDir so it's value never change (i.e. 
170         imply that it doesn't need any permissions). Fixed SyncRoot to always 
171         return null.
172
173 2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>
174
175         * CodeGeneratorOptions.cs: Fixed how properties are kept inside the
176         IDictionary (which is just like System.Web.dll).
177         * CompilerError.cs: Added [Serializable] attribute for 2.0.
178         * CompilerInfo.cs: Added LinkDemand for Unrestricted. Stubbed new 
179         (2.0) CreateDefaultCompilerParameters method.
180         * CompilerParameters.cs: Added LinkDemand and InheritanceDemand for
181         Unrestricted. Added Demand for ControlEvidence to Evidence property.
182         Added new (2.0) EmbeddedResources and LinkedResources properties.
183         * CompilerResults.cs: Added LinkDemand and InheritanceDemand for 
184         Unrestricted. Added Demand for ControlEvidence to Evidence property.
185         * Executor.cs: Added LinkDemand for Unrestricted. Added support for 
186         userToken (impersonation).
187         * GeneratedCodeAttribute.cs: New. 2.0 attribute for code generated by 
188         tools.
189         * IndentedTextWriter.cs: Added LinkDemand and InheritanceDemand for 
190         Unrestricted.
191
192 2005-10-04  Sebastien Pouliot  <sebastien@ximian.com>
193
194         * TempFileCollection.cs: Added a call to GC.SuppressFinalize in 
195         Dispose.
196
197 2005-07-30 Gert Driesen <drieseng@users.sourceforge.net>
198
199         * CodeGenerator.cs: In OutputMemberScopeModifier, only output 
200         "new" modifier in 2.0 profile.
201
202 2005-07-24 Gert Driesen <drieseng@users.sourceforge.net>
203
204         * CodeGenerator.cs: Threat delegates like any other type.
205
206 2005-07-21 Gert Driesen <drieseng@users.sourceforge.net>
207
208         * CodeGenerator.cs: Fixed IsCurrentClass to return false for delegate.
209
210 2005-06-28 Gert Driesen <drieseng@users.sourceforge.net>
211
212         * CodeGenerator.cs: On 2.0 profile, internal members are also marked
213         virtual. Fixed access modifier for FamilyAndAssembly to match
214         MS.NET.
215
216 2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
217
218         * CodeGenerator.cs: Fixed bug #75190, GenerateCodeFromCompileUnit
219         generates no code for CodeSnippetCompileUnit.
220
221 2005-06-04 Gert Driesen <drieseng@users.sourceforge.net>
222
223         * IndentedTextWriter.cs: also output tabs in WriteLine () to
224         match MS.NET
225
226 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
227
228         * CodeDomProvider.cs: implemented IsDefined* and GetCompilerInfo.
229         * CompilerInfo.cs: implemented.
230         * CodeDomConfigurationHandler.cs: system.codedom section reader.
231
232 2005-01-27  LLuis Sanchez Gual  <lluis@novell.com>
233
234         * CodeGenerator.cs: Write 'f' suffix for float constants.
235
236 2004-09-06  Marek Safar  <marek.safar@seznam.cz>
237
238         * CodeGenerator.cs,
239         * GeneratorSupport.cs : Implemented NET_2_0 extension
240         
241         * CompilerInfo.cs : New NET_2_0 file.
242
243 2004-09-01  Marek Safar  <marek.safar@seznam.cz>
244
245         * CodeGenerator.cs : Added newline after global attributes output.
246         (OutputAttributeDeclaration): Replace '+' with '.' for nested
247         attribute types.
248
249 2004-08-09  Atsushi Enomoto  <atsushi@ximian.com>
250
251         * CodeGenerator.cs :
252           Don't initialize output more than once. TextWriter is wrapped twice.
253
254 2004-07-15  Peter Williams  <peter@newton.cx>
255
256         * CodeGenerator.cs: Have the basic generator create line pragmas
257         for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
258         which had LinePragma members which were going unused.
259
260 2004-06-17  Jackson Harper  <jackson@ximian.com>
261
262         * CompilerError.cs:
263         * CodeGenerator.cs: Make sure we are using invariant for non
264         culture sensitive operations.
265         
266 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
267
268         * IndentedTextWriter.cs: have DefaultTabString correspond with
269         MS.NET (meaning four spaces)
270
271 2004-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
272
273         * TempFileCollection.cs: don't create a Random object on every call to
274         BasePath.
275
276 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
277
278         * CodeGenerator.cs : delegate was output as usual class.
279
280 2004-03-29  Lluis Sanchez Gual  <lluis@ximian.com>
281
282         * Executor.cs: Implemented.
283
284 2004-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
285
286         * TempFileCollection.cs: fixed typo in Delete. Closes bug #54443.
287
288 2004-02-10  Jackson Harper <jackson@ximian.com>
289
290         * CompilerParameters.cs: TempFiles should never return null.
291         
292 2004-02-04  Jackson Harper <jackson@ximian.com>
293
294         * CodeGenerator.cs (GenerateExpression): Don't allow null
295         expressions. Throw ArgumentException if the expression type is not
296         handled.
297         * CodeGenerator.cs (GenerateStatement): Add line pragmas if they
298         are set. Throw ArgumentException if the expression type is not handled.
299         
300 2003-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
301
302         * TempFileCollection.cs: fixed temp path in BaseDir.
303
304 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
305
306         * CodeGenerator.cs: fixed assembly level attribute generation.
307
308 2003-08-08  Lluis Sanchez Gual  <lluis@ximian.com>
309
310         * CodeGenerator.cs: When sorting the members of a type, keep the
311         relative order of the members of the same kind.
312
313 2003-08-05  Lluis Sanchez Gual  <lluis@ximian.com>
314
315         * CodeGenerator.cs: Generate comments for properties and fields.
316           Write a line separator between type declarations.
317
318 2003-07-10  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
319
320         * Executor.cs: Changed abstract to sealed
321
322 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
323
324         * CodeDomProvider.cs: Removed unneccesary attribute according to corecompare
325         * Executor.cs: Fixed signature with ref calls according to corecompare and made neccessary changes
326
327 2003-06-20  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
328
329         * CodeCompiler.cs: Nearly completely implemented
330         * CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
331         * CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
332         * CodeParser.cs: Added and implemented (ok no real implementation needed ;)
333         * CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
334         * CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
335         * CompilerResults.cs: Added Evidence property, added initial values
336         * Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)
337         
338         * CompilerOptions.cs: Deleted this file (such a class does not exist)
339         
340 2003-05-16  Dick Porter  <dick@ximian.com>
341
342         * TempFileCollection.cs: Implement
343
344 2003-04-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
345
346         * CodeGenerator.cs:
347         (GenerateSnippetStatement): use WriteLine instead of Write.
348
349 2003-04-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
350
351         * CodeGenerator.cs:
352         (GenerateCodePrimitive): special case strings and chars (bool was
353         already a special case). Throw an exception if the type is not a
354         primitive type.
355
356 2003-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
357
358         * CodeGenerator.cs: more fixes and sorted the output.
359         
360         * IndentedTextWriter.cs: don't output tabs in WriteLine ().
361
362 2003-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
363
364         * CodeGenerator.cs:
365         (GenerateCompileUnitStart):
366         (GenerateCompileUnitEnd): removed debug output.
367         (GeneratePrimitiveExpression): handle null and bool as special cases.
368         (GenerateType): added type constructor and constructor calls.
369
370 2003-02-20  Alfonso Ali <isa@infomed.sld.cu>
371
372         * CodeGenerator.cs: Generates the entry point method.
373
374 2003-01-10  Duncan Mak  <duncan@ximian.com>
375
376         * CompilerErrorCollection.cs: 
377         * CompilerParameters.cs: Patch from Sean Kasun
378         <skasun@azstarnet.com> implementing most of the MonoTODOs in
379         CompilerErrorCollection and the CompilerParameters overloads in CompilerParameters.cs.
380
381 2002-11-30 Jackson Harper <jackson@latitudegeo.com>
382
383         * CodeCompiler.cs: Removed TODO attribute from abstract members
384
385 2002-11-30 Jackson Harper <jackson@latitudegeo.com>
386
387         * CodeCompiler.cs: Added stub
388
389 2002-09-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
390
391         * CodeDomProvider.cs:
392         * IndentedTextWriter.cs: misc. fixes.
393
394 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
395
396         * CompilerError.cs: implemented.
397         * CompilerErrorCollection.cs: stubbed out and fix inheritance.
398         * GeneratorSupport.cs: fixed values.
399
400 2002-05-28  Daniel Stodden <stodden@in.tum.de>
401
402         * CodeDomProvider.cs: added, incomplete
403
404         * CodeGeneratorOptions.cs: added, complete
405
406         * CompilerErrorCollection.cs: added, stub
407
408         * CompilerOptions.cs: added, stub
409
410         * CompilerResults.cs: added, complete
411
412         * GeneratorSupport.cs: added, complete
413
414         * ICodeCompiler.cs: added, complete
415
416         * ICodeParser.cs: added, complete
417
418         * IndentedTextWriter.cs: added, complete
419
420         * LanguageOptions.cs: added, complete
421
422         * TempFileCollection.cs: added, stub
423         
424         * ICodeGenerator.cs: added, complete
425
426 2002-01-05  Ravi Pratap  <ravi@ximian.com>
427
428         * CodeGenerator.cs : Mark bits with MonoTODO.
429
430 2001-07-15  Sean MacIsaac  <macisaac@ximian.com>
431
432         * CodeGenerator.cs: moved using statement out of namespace
433         declaration.
434