虚惊一场

都已经临近毕业设计答辩了,今天使用我的毕业设计软件的时候发现一个大 bug,所有涉及到 ComboBoxPropertyDescriptor 的地方都提示无法流化进行保存,奇怪了,TextPropertyDescriptor 好好的,怎么到了 ComboBox 就不行了呢?经过近一小时的排查,原来是因为我在 IPropertyDescriptor[] getPropertyDescriptors() 之外新建了全局的 ComboBoxPropertyDescriptor 类型变量,原本是打算节省代码量的,不料造成现在的局面。去掉他们,把新建的语句写在 getPropertyDescriptors() 之内就可以了。



Leave a Comment

(required)

(required)

Formatting Your Comment

The following XHTML tags are available for use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

URLs are automatically converted to hyperlinks.