• Post Reply Bookmark Topic Watch Topic
  • New Topic

what can replace sun.tool.javac.Main in jdk1.4  RSS feed

 
chang wei
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JDK1.4 sun.tool.javac.Main is deprecated.
Then what can repalce it?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has always been the case that the classes in sun.* are not for public use, and you use them at your own risk; the public interfaces of classes in these packages can (and do) change without notice. There are no "replacements," because you were never encouraged to use them in the first place!
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is my beleif that in the near-to-mid-range future Sun will be relpacing those packages with public API packages (java.something packages) since there has been a rather large call for them. In the mean-time, don't stop using the sun.tools. packages just because they're deprecated -- there's nothing to replace them yet! Just be aware that, as Ernest says, they are subject to change without notice or support.
 
chang wei
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Java3D code is not running (no graphics display) as it did a year ago. I am getting warnings from the Eclipse compiler that 6 methods are deprecated. Since the compiler output is just a warning, can I assume that my problem is somewhere else?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sonny --

Note that it's a better idea to start a new thread for new questions like this, but since we're here...

Even though a method is deprecated, it will generally still work. But's it's generally the case that the deprecated methods are deprecated because they've been replaced by new ones, and that often indicates that the class in which the deprecated method appear has undergone extensive changes. Therefore if your code was relying on "accidental" properties of the now-deprecated methods, the code may break because those accidental properties may have changed.

That's a long-winded way of saying "it wouldn't hurt to start looking for the problem there."
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. That is a good point about the accidental properties. The Java3D deprecated triangular constructor is the only warning that looks like it applies to me. I guess the source code is available now. Thanks again.
 
Sonny Pondrom
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a follow-up to this problem, a very fortunate thing happened yesterday. I was forced to demo my code at a meeting, so while waiting for my laptop to be connected to the overhead screen, I was trying to think about how to explain why the 3D graphics was not showing. I launched the code from Eclipse and there it was - The 3D screen. Unfortunately, there in the middle of the scene was a large ColorCube. I had placed a ColorCube in the scene root Branch as a diagnostic tool. So I quick as I could, I commented out the line and run the code again. And no one was the wiser when the overhead screen kicked in.

So the next day I tried to reproduce it and the 3D does not work again. Why would connecting the laptop to an overhead make it work? At first, I thought the difference was that I was using a JUnit test to check things out and in the meeting I made it an application. But now I have no idea.
[ October 16, 2004: Message edited by: Sonny Pondrom ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!