()
| 669 | |
| 670 | |
| 671 | private static String getRTJarPath() |
| 672 | { |
| 673 | String urlString = |
| 674 | Class.class.getResource("/java/lang/String.class").toExternalForm(); |
| 675 | |
| 676 | if ( !urlString.startsWith("jar:file:") ) |
| 677 | return null; |
| 678 | |
| 679 | int i = urlString.indexOf("!"); |
| 680 | if ( i == -1 ) |
| 681 | return null; |
| 682 | |
| 683 | return urlString.substring( "jar:file:".length(), i ); |
| 684 | } |
| 685 | |
| 686 | public abstract static class ClassSource { |
| 687 | Object source; |
no test coverage detected