java - Replace/override JRE classes (in Eclipse IDE) -


i have project has on build path project in there java.lang package modified string implementation inside. somehow used started project simple run configuration using stock openjdk 7 jre , modified string class loaded (i think @ least because in code there cast interface implemented modified string). might have changed (i don't know what) , runtime classcastexception because original string class loaded. tried in demo project replacing string class myself , although auto-complete , go declaration returned string class when started application not case , stock string loaded , app wouldn't work.

the question is: how replace (/override) classes jre (without using custom classloader)? how experience can justified?

if wish overload jdk core classes can use -xbootclasspath option.

under eclipse can configure (boot) classpath of run configuration in respective classpath tab.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -