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,

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 [I]ClassName[/I].java -deprecation

I hope this helps!

Edited 7 Years Ago by majestic0110: n/a

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 [I]ClassName[/I].java -deprecation

I hope this helps!

This article has been dead for over six months. Start a new discussion instead.