Overriding single classes from rt.jar

前端 未结 4 1441
无人共我
无人共我 2021-01-03 06:55

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?bu

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-03 06:59

    I believe the only supported way of doing this is to "patch" rt.jar by replacing the desired *.class file. 7-Zip can help you easily do this.

    This is exactly how Oracle supplied their double-parsing bug fix with their FPUpdater tool, which was essentially a script that did just this. (Some history.)

提交回复
热议问题