FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Aug 31, 2011, 12:43 PM
64 Posts

Re: Is it safe to extend Document class?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 5
- I don't see why it wouldn't be "safe", since extension is a fundamental aspect of Java, and I presume it's not marked "final" so it may be extended.  Even if Document changes later, the derived class should still work as well as Document itself would.  For an extreme example, if Lotus changed Document.save() to Document.commit(), your derived class would fail.  But so would anything that uses Document directly, so nothing is "lost" by derivation.
 
Hope this helps...

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.