castor

Dont generate underscores in notifyPropertyChangeListeners calls

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.2
  • Component/s: XML code generator
  • Labels:
    None
  • Number of attachments :
    1

Description

I use the org.exolab.castor.builder.SourceGenerator with a selfmade xsd.

Today, if you use the org.exolab.castor.builder.boundproperties=true feature, castor generates in every setter a notifyPropertyChangeListeners(_fieldName,old,new) call.

The problem is that you use the internal underscore fieldname also for the PropertyChangeEvent-call as property name, but this is not JavaBeans-spezification-compatible.

Can you confirm this?

Activity

Hide
Werner Guttmann added a comment -

Can you please attach a sample XML schema that showcases the problem at hand ? Which I could use to generate sources from ?

Show
Werner Guttmann added a comment - Can you please attach a sample XML schema that showcases the problem at hand ? Which I could use to generate sources from ?
Hide
Werner Guttmann added a comment -

And if you pointed me to the relevant section of the JavaBeans spec, that would ease my life as well.

Show
Werner Guttmann added a comment - And if you pointed me to the relevant section of the JavaBeans spec, that would ease my life as well.
Hide
Werner Guttmann added a comment -

Any help from your side ?

Show
Werner Guttmann added a comment - Any help from your side ?
Hide
Werner Guttmann added a comment -

Initial patch for review.

Show
Werner Guttmann added a comment - Initial patch for review.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
20m
Time Spent - 20 minutes