Monkey patching a Java class?
hrjet9 at gmail.com
Wed Apr 16 18:33:20 UTC 2014
For example, I want to add a convenience method to java.io.File class, say
instance of java.io.File. Note that the file instance may be created by
some third-party code, over which I have no control.
In Java land, this seems to be usually done with CGLib or AspectJ, etc.
I was wondering if nashorn had some trick up its sleeve for doing this in
More information about the nashorn-dev