Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)

2007-04-22 Thread Gert Driesen
Never mind, I think it's a dup of bug #81414:
http://bugzilla.ximian.com/show_bug.cgi?id=81414

Can you confirm this, and attach your repro to that bug report if it is ? 

-Original Message-
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: zondag 22 april 2007 8:39
To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com'
Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for testing:
Mono1.2.4 Preview Available)

Steve,

Please submit a bug report for this.

Gert 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Bjorg
Sent: zaterdag 21 april 2007 17:15
To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com
Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing:
Mono1.2.4 Preview Available)

When attempting to compile the attached code, gmcs fails:

$ gmcs test.cs

Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs
(4,33): Test.ExtensionHandler --- System.ArgumentNullException:  
Argument cannot be null.
Parameter name: con
   at System.Reflection.Emit.CustomAttributeBuilder.Initialize
(System.Reflection.ConstructorInfo con, System.Object[] constructorArgs,
System.Reflection.PropertyInfo[] namedProperties, System.Object[]
propertyValues, System.Reflection.FieldInfo[] namedFields, System.Object[]
fieldValues) [0x0]
   at System.Reflection.Emit.CustomAttributeBuilder..ctor
(System.Reflection.ConstructorInfo con, System.Object[]
constructorArgs) [0x0]
   at Mono.CSharp.ParamsParameter.ApplyAttributes
(System.Reflection.Emit.MethodBuilder mb,
System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0]
   at Mono.CSharp.Parameters.ApplyAttributes
(System.Reflection.MethodBase builder) [0x0]
   at Mono.CSharp.Delegate.Define () [0x0]
   at Mono.CSharp.TypeContainer 
+MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of
inner exception stack trace ---

   at Mono.CSharp.TypeContainer 
+MemberCoreArrayList.DefineContainerMembers () [0x0]
   at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList mcal) [0x0]
   at Mono.CSharp.Class.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList list) [0x0]
   at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0]
   at Mono.CSharp.Class.DoDefineMembers () [0x0]
   at Mono.CSharp.TypeContainer.DefineMembers () [0x0]
   at Mono.CSharp.RootContext.PopulateTypes () [0x0]
   at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0]
   at Mono.CSharp.Driver.Main (System.String[] args) [0x0]

This is the code:

public class Test {
 public static void Main(string[] argS) { }
 private delegate object ExtensionHandler(params object[] args); }

Removing params from the delegate declaration avoids the compiler error
exception.


- Steve

--
Steve G. Bjorg
http://www.mindtouch.com
http://www.opengarden.org


On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote:

 Hi,

 Mono 1.2.4 preview sources, packages, and installers are available at:

 http://mono.ximian.com/monobuild/preview/download-preview/

 The beginnings of the release notes for 1.2.4 are available at:

 http://go-mono.com/archive/1.2.4/

 If no critical bugs are found after the preview period, these same 
 downloads will be posted on mono-project.com for general consumption.

 If there are critical bugs found, only those packages/sources will be 
 updated before publishing to mono-project.com.

 Since this release hasn't been pushed to our main download server, 
 some sources may be retagged if critical bugs are found.  Those tags 
 are not final until we publish to mono-project.com.

 Wade

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)

2007-04-22 Thread Steve Bjorg
I added the info to the bug report.  The repro steps are super simple  
so hopefully someone will be able to track this down quickly.  Also,  
this issue is a regression in 1.2.4 as this code used to compile before.

- Steve

--
Steve G. Bjorg
http://www.mindtouch.com
http://www.opengarden.org


On Apr 21, 2007, at 11:48 PM, Gert Driesen wrote:

 Never mind, I think it's a dup of bug #81414:
 http://bugzilla.ximian.com/show_bug.cgi?id=81414

 Can you confirm this, and attach your repro to that bug report if  
 it is ?

 -Original Message-
 From: Gert Driesen [mailto:[EMAIL PROTECTED]
 Sent: zondag 22 april 2007 8:39
 To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com'
 Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for  
 testing:
 Mono1.2.4 Preview Available)

 Steve,

 Please submit a bug report for this.

 Gert

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of  
 Steve Bjorg
 Sent: zaterdag 21 april 2007 17:15
 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com
 Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing:
 Mono1.2.4 Preview Available)

 When attempting to compile the attached code, gmcs fails:

 $ gmcs test.cs

 Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs
 (4,33): Test.ExtensionHandler --- System.ArgumentNullException:
 Argument cannot be null.
 Parameter name: con
at System.Reflection.Emit.CustomAttributeBuilder.Initialize
 (System.Reflection.ConstructorInfo con, System.Object[]  
 constructorArgs,
 System.Reflection.PropertyInfo[] namedProperties, System.Object[]
 propertyValues, System.Reflection.FieldInfo[] namedFields,  
 System.Object[]
 fieldValues) [0x0]
at System.Reflection.Emit.CustomAttributeBuilder..ctor
 (System.Reflection.ConstructorInfo con, System.Object[]
 constructorArgs) [0x0]
at Mono.CSharp.ParamsParameter.ApplyAttributes
 (System.Reflection.Emit.MethodBuilder mb,
 System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0]
at Mono.CSharp.Parameters.ApplyAttributes
 (System.Reflection.MethodBase builder) [0x0]
at Mono.CSharp.Delegate.Define () [0x0]
at Mono.CSharp.TypeContainer
 +MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of
 inner exception stack trace ---

at Mono.CSharp.TypeContainer
 +MemberCoreArrayList.DefineContainerMembers () [0x0]
at Mono.CSharp.TypeContainer.DefineContainerMembers
 (Mono.CSharp.MemberCoreArrayList mcal) [0x0]
at Mono.CSharp.Class.DefineContainerMembers
 (Mono.CSharp.MemberCoreArrayList list) [0x0]
at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0]
at Mono.CSharp.Class.DoDefineMembers () [0x0]
at Mono.CSharp.TypeContainer.DefineMembers () [0x0]
at Mono.CSharp.RootContext.PopulateTypes () [0x0]
at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0]
at Mono.CSharp.Driver.Main (System.String[] args) [0x0]

 This is the code:

 public class Test {
  public static void Main(string[] argS) { }
  private delegate object ExtensionHandler(params object[] args); }

 Removing params from the delegate declaration avoids the compiler  
 error
 exception.


 - Steve

 --
 Steve G. Bjorg
 http://www.mindtouch.com
 http://www.opengarden.org


 On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote:

 Hi,

 Mono 1.2.4 preview sources, packages, and installers are available  
 at:

 http://mono.ximian.com/monobuild/preview/download-preview/

 The beginnings of the release notes for 1.2.4 are available at:

 http://go-mono.com/archive/1.2.4/

 If no critical bugs are found after the preview period, these same
 downloads will be posted on mono-project.com for general consumption.

 If there are critical bugs found, only those packages/sources will be
 updated before publishing to mono-project.com.

 Since this release hasn't been pushed to our main download server,
 some sources may be retagged if critical bugs are found.  Those tags
 are not final until we publish to mono-project.com.

 Wade

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list





___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] gmcs compiler exception (was Re: Call for testing: Mono1.2.4 Preview Available)

2007-04-22 Thread Geoff Norton
This was fixed by Marek Safar in r76051.

Can this fix be applied to the 1.2.4 trunk as well?  Marek?  Miguel?

-g

Steve Bjorg wrote:
 I added the info to the bug report.  The repro steps are super simple  
 so hopefully someone will be able to track this down quickly.  Also,  
 this issue is a regression in 1.2.4 as this code used to compile before.

 - Steve

 --
 Steve G. Bjorg
 http://www.mindtouch.com
 http://www.opengarden.org


 On Apr 21, 2007, at 11:48 PM, Gert Driesen wrote:

   
 Never mind, I think it's a dup of bug #81414:
 http://bugzilla.ximian.com/show_bug.cgi?id=81414

 Can you confirm this, and attach your repro to that bug report if  
 it is ?

 -Original Message-
 From: Gert Driesen [mailto:[EMAIL PROTECTED]
 Sent: zondag 22 april 2007 8:39
 To: 'Steve Bjorg'; 'mono-devel-list@lists.ximian.com'
 Subject: RE: [Mono-dev] gmcs compiler exception (was Re: Call for  
 testing:
 Mono1.2.4 Preview Available)

 Steve,

 Please submit a bug report for this.

 Gert

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of  
 Steve Bjorg
 Sent: zaterdag 21 april 2007 17:15
 To: [EMAIL PROTECTED]; mono-devel-list@lists.ximian.com
 Subject: [Mono-dev] gmcs compiler exception (was Re: Call for testing:
 Mono1.2.4 Preview Available)

 When attempting to compile the attached code, gmcs fails:

 $ gmcs test.cs

 Unhandled Exception: Mono.CSharp.InternalErrorException: test.cs
 (4,33): Test.ExtensionHandler --- System.ArgumentNullException:
 Argument cannot be null.
 Parameter name: con
at System.Reflection.Emit.CustomAttributeBuilder.Initialize
 (System.Reflection.ConstructorInfo con, System.Object[]  
 constructorArgs,
 System.Reflection.PropertyInfo[] namedProperties, System.Object[]
 propertyValues, System.Reflection.FieldInfo[] namedFields,  
 System.Object[]
 fieldValues) [0x0]
at System.Reflection.Emit.CustomAttributeBuilder..ctor
 (System.Reflection.ConstructorInfo con, System.Object[]
 constructorArgs) [0x0]
at Mono.CSharp.ParamsParameter.ApplyAttributes
 (System.Reflection.Emit.MethodBuilder mb,
 System.Reflection.Emit.ConstructorBuilder cb, Int32 index) [0x0]
at Mono.CSharp.Parameters.ApplyAttributes
 (System.Reflection.MethodBase builder) [0x0]
at Mono.CSharp.Delegate.Define () [0x0]
at Mono.CSharp.TypeContainer
 +MemberCoreArrayList.DefineContainerMembers () [0x0] --- End of
 inner exception stack trace ---

at Mono.CSharp.TypeContainer
 +MemberCoreArrayList.DefineContainerMembers () [0x0]
at Mono.CSharp.TypeContainer.DefineContainerMembers
 (Mono.CSharp.MemberCoreArrayList mcal) [0x0]
at Mono.CSharp.Class.DefineContainerMembers
 (Mono.CSharp.MemberCoreArrayList list) [0x0]
at Mono.CSharp.TypeContainer.DoDefineMembers () [0x0]
at Mono.CSharp.Class.DoDefineMembers () [0x0]
at Mono.CSharp.TypeContainer.DefineMembers () [0x0]
at Mono.CSharp.RootContext.PopulateTypes () [0x0]
at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x0]
at Mono.CSharp.Driver.Main (System.String[] args) [0x0]

 This is the code:

 public class Test {
  public static void Main(string[] argS) { }
  private delegate object ExtensionHandler(params object[] args); }

 Removing params from the delegate declaration avoids the compiler  
 error
 exception.


 - Steve

 --
 Steve G. Bjorg
 http://www.mindtouch.com
 http://www.opengarden.org


 On Apr 20, 2007, at 9:26 PM, Wade Berrier wrote:

 
 Hi,

 Mono 1.2.4 preview sources, packages, and installers are available  
 at:

 http://mono.ximian.com/monobuild/preview/download-preview/

 The beginnings of the release notes for 1.2.4 are available at:

 http://go-mono.com/archive/1.2.4/

 If no critical bugs are found after the preview period, these same
 downloads will be posted on mono-project.com for general consumption.

 If there are critical bugs found, only those packages/sources will be
 updated before publishing to mono-project.com.

 Since this release hasn't been pushed to our main download server,
 some sources may be retagged if critical bugs are found.  Those tags
 are not final until we publish to mono-project.com.

 Wade

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


   
 

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
   

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list