struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38321] - changed constants from clazz to interfaces
Date Sun, 05 Feb 2006 03:26:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38321>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38321





------- Additional Comments From craig.mcclanahan@sun.com  2006-02-05 04:26 -------
(In reply to comment #3)
> (In reply to comment #2)
> > Hmm ... a lot of the reading I've done lately says declaring manifest constants
> > in an interface is an antipattern because it creates a leaky abstraction.  What
> 
> ah, ok I see. Well I am using (until now ;)) interfaces for kind of this.
> So, that is the reason for UIcomponent is an abstract class?
> 
> > is the motivation for this?
> 
> I was reading the source, so I *easily* changed ;)
> 
> ok, I closed it :-)

(In reply to comment #3)
> (In reply to comment #2)
> > Hmm ... a lot of the reading I've done lately says declaring manifest constants
> > in an interface is an antipattern because it creates a leaky abstraction.  What
> 
> ah, ok I see. Well I am using (until now ;)) interfaces for kind of this.
> So, that is the reason for UIcomponent is an abstract class?
> 

Actually, that was done for a different reason.

Consider what would have happened if we had just defined UIComponent (an
interface) but not UIComponentBase (an abstract class).  Now, assume that JSF
1.2 wanted to add some additional methods to UIComponent.  This would break
every single third party component in the world -- not a good thing.  That's why
nearly all of the APIs in JavaServer Faces are abstract classes rather than
interfaces.


> > is the motivation for this?
> 
> I was reading the source, so I *easily* changed ;)
> 
> ok, I closed it :-)



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message