Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why does sun release code with unexisting classes?

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.mail contains some demo classes. sendhtml.java contains the following reference:
"msg.setDataHandler(new DataHandler( new ByteArrayDataSource(text.toString,"text/html") ) )"
that file won't compile becaue ByteArrayDataSource doesn't exist anywhere. even if you google for it, it's not anywhere related to SUN (except some custom-made ones)...
So, anybody knows why would sun release code that doesn't work?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you will look in your JavaMail1.3 distribution, in the demo directory, you will find ByteArrayDataSource.java
Bill
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ehh.... Ehhh... thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!