java - How do I make a third-party class public? -


How do I create a third-party class public? is there a way? Any hacks?

Actually I want to expand the functionality of a class that I do not have. I can see the source but hack the original source and do not want to compile it again.

Thanks

Assuming the class is not nested and a top-level class (Which is actually with public a private constructor), just a public wrapper class and that method to a private < In the example of that class with the / code> constructor, calls the same.


Comments