Overriding single classes from rt.jar
问题 I'm looking for a neat way to override a class from the bootstrap class path, rt.jar . The reason is OpenJDK7 bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7104625 The fix for this bug is a trivial (see linked mailing list post) change to sun.awt.X11.XComponentPeer . So I was wondering if there is an easy way to override just this one affected class on my classpath, without having to repack/rebuild rt.jar (so the fix isn't lost on the next automatic update of OpenJDK). Ideally, it