954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

sun.misc.HexDumpEncoder.encodeBuffer depracted in java se 6

Hello all,
One of my application used following code which is developed in java 1.2.2 but now we are migrating this application to java se 6 where the following code is depracted.

sun.misc.HexDumpEncoder.encodeBuffer

Can any one guide for the above code replacement in java se 6

Thanks & Regards,

msalahu
Newbie Poster
7 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

Hi msalahu, you could try compiling the source code from the command line and add the "deprecation" switch, which will show you a description of members/classes that have been used and have been deprecated. Then you ought to refer to the appropriate class documentation for what part of the API you should use as a replacement. E.G.

javac <em>ClassName</em>.java -deprecation


I hope this helps!

majestic0110
Nearly a Posting Virtuoso
1,328 posts since Oct 2007
Reputation Points: 256
Solved Threads: 72
 

hi,
i compiled the code with ur mentioned switch only then i got the deprecation message.
I am unable to get this code replacement in java se 6 API
kinldy help if u know any such class/function
Thanks

Hi msalahu, you could try compiling the source code from the command line and add the "deprecation" switch, which will show you a description of members/classes that have been used and have been deprecated. Then you ought to refer to the appropriate class documentation for what part of the API you should use as a replacement. E.G.

javac <em>ClassName</em>.java -deprecation

I hope this helps!

msalahu
Newbie Poster
7 posts since Aug 2009
Reputation Points: 10
Solved Threads: 0
 
quuba
Posting Pro
573 posts since Nov 2008
Reputation Points: 123
Solved Threads: 106
 
quuba
Posting Pro
573 posts since Nov 2008
Reputation Points: 123
Solved Threads: 106
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You