Article View: borland.public.jbuilder.java.language
Article #7316firing property change events: use copies or originals?
From: dnoyeB
Date: Tue, 26 Jun 2001 19:12
Date: Tue, 26 Jun 2001 19:12
12 lines
1291 bytes
1291 bytes
In firing a property change event I must use this constructor new PropertyChangeEvent(this,"wBishopIcon",oldobject,newobject)); HOwever, I am concerned about passing the old object reference into this event to be handed around and molested/violated. I would prefer to pass a copy of the object, but is this proper? Am I just paranoid? Which is the correct thing to pass, the original object the events are firing about, or copies? Thanks!
Technical Details
Message-ID:
<3b38df5b$3_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,88b4b8db5c548e01,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-26 12:34:37 PST From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com> Newsgroups: borland.public.jbuilder.java.language Subject: firing property change events: use copies or originals? Date: Tue, 26 Jun 2001 15:12:10 -0400 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 63.68.196.49 Message-ID: <3b38df5b$3_1@dnews> X-Trace: dnews 993582939 63.68.196.49 (26 Jun 2001 12:15:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews