The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 The Open Road: Superpackages
Subject:  Err.
Date:  2008-03-06 07:11:32
From:  i30817


Another way for libraries to have more rights than end developers. I'm not sure that is nice. I already have problems in principle with the protected keyword, that encourages subclassing instead of encapsulation. This has the potential to be a lot worse... Only the "approved" classes can use the fast way, for example in the document class, the insert(ElementSpec[] a) method, that is currently protected (and that pisses me off also) could be written as private.

 Feed java.net RSS Feeds