Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deprecating an java JRE method

I would like to mark usage of certain methods provide by the JRE as deprecated. How do I do this?

like image 795
SurenNihalani Avatar asked Feb 12 '26 12:02

SurenNihalani


1 Answers

You can't. Only code within your control can have the @Deprecated annotation added. Any attempt to reverse engineer the bytecode will result in a non-portable JRE. This is contrary to Java's write once, run anywhere methodology.

like image 133
Reimeus Avatar answered Feb 15 '26 01:02

Reimeus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!