• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

[SAX] Deprecated HandlerBase

 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code that still uses HandlerBase as the callback handler in SAX. When I compiled it, the java compiler complains about the use of the deprecated interfaces but succeeded in generating the class files nonetheless. From a Java language standpoint, why keep the interface when it's not supported in the new releases ?
Pho
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't support the interface, then a lot of old code will break trying to use the new interface. Look at all the deprecated methods in the java.util.Date. They're still around, because a ton of old Java code made extensive use of the Date class. If SUN deleted the methods from the class, then a lot of developers would be really pissed and stop using Java.
-Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!