Bug when property's attribute contains {}

If you find any bugs, please post them here.

Bug when property's attribute contains {}

Postby Zvonko » Fri Jul 03, 2009 2:59 pm

Hi

When having property with an attribute with parameter of type array, the regionerate breaks property in two parts.

Example:
Code: Select all
        [Size(6)]
        [Persistent("cat_code")]
        [ValidValues(new object[] { "PHYADR", "ELCADR", "NOS" })]
        public string CategoryCode
        {
            get { return this.fcat_code; }
            set { SetPropertyValue<string>("CategoryCode", ref this.fcat_code, value); }
        }

is converted to:
Code: Select all
        public string CategoryCode
        {
            get { return this.fcat_code; }
            set { SetPropertyValue<string>("CategoryCode", ref this.fcat_code, value); }
        }

        [Size(6)]
        [Persistent("cat_code")]
        [ValidValues(new object[] { "PHYADR", "ELCADR", "NOS" })]


Regards,
Zvonko
Zvonko
 
Posts: 4
Joined: Fri Jul 03, 2009 2:55 pm

Re: Bug when property's attribute contains {}

Postby Zvonko » Tue Jul 07, 2009 10:29 am

Oh yes, I forgot to mention the following: The property is put in region, however the attributes are left at the end of the class.
Zvonko
 
Posts: 4
Joined: Fri Jul 03, 2009 2:55 pm

Re: Bug when property's attribute contains {}

Postby rauchy » Tue Jul 07, 2009 2:32 pm

Zvonko,

Thanks for reporting. I will take a look at it soon. Busy times :-)
-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Bug when property's attribute contains {}

Postby Zvonko » Mon Aug 31, 2009 12:25 pm

Hi.

Anything new on this issue?
Zvonko
 
Posts: 4
Joined: Fri Jul 03, 2009 2:55 pm

Re: Bug when property's attribute contains {}

Postby rauchy » Tue Sep 01, 2009 10:42 pm

-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Bug when property's attribute contains {}

Postby rauchy » Tue Sep 01, 2009 11:36 pm

Fixed. Should be available on nightly build 0.7.3.388
-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Bug when property's attribute contains {}

Postby Marcus » Tue Jan 19, 2010 12:04 pm

I installed the nightly build http://teamcity.codebetter.com/repository/download/bt26/latest.lastSuccessful/latest/Regionerate+Nightly+Build.msi 2010-01-19 and this bug is still there.
Code: Select all
sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace BugReCreate
{
    [Serializable]
    public class BugReCreateClass
    {

        int _Test;


        [XmlIgnore]
        public int Test
        {
            get { return _Test; }
            set { _Test = value; }
        }
       
    }
}
//Regionerates in to this
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace BugReCreate
{
    [Serializable]
    public class BugReCreateClass
    {
      #region Fields (1) 

        int _Test;

      #endregion Fields 

      #region Properties (1) 

        public int Test
        {
            get { return _Test; }
            set { _Test = value; }
        }

      #endregion Properties 

        [XmlIgnore]
    }
}

I had the old 0.7.0.0 version installed first , maybe the uninstallation of that was incompleate.
Marcus
 
Posts: 1
Joined: Tue Jan 19, 2010 12:00 pm

Re: Bug when property's attribute contains {}

Postby rauchy » Fri Jan 22, 2010 2:12 pm

Woah. That's a different bug, and a very severe one. I'll be right on it.

http://trac2.assembla.com/Regionerate/ticket/61#preview
-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Bug when property's attribute contains {}

Postby rauchy » Fri Jan 22, 2010 5:46 pm

Fixed. Should be available on nightly build 0.7.3.398
-- rauchy.
rauchy
Site Admin
 
Posts: 267
Joined: Wed May 09, 2007 2:39 am
Location: Israel

Re: Bug when property's attribute contains {}

Postby rathkopf » Wed Jul 28, 2010 9:35 pm

rauchy,

I've found a similar bug with attributes. The following attribute causes the same type of problems:
Code: Select all
[FileDialogFilter("Graphics Files (*.jpg;*.gif;*.bmp;*.png)|*.jpg;*.gif;*.bmp;*.png|All Files (*.*)|*.*")]


I was going to create a TracTicket, but I seem to be a bit dim at the moment and I can't find the way to do so.

As always, thanks for your work on this project. I use it daily.
rathkopf
 
Posts: 22
Joined: Sun Jul 01, 2007 12:07 am


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron