Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] A new radical use of Aspects: Fixing errors in Sun's JDK with AspectJ


Examples of other bug-fix modifications, would be to redeclare stuff as volatile, to add declared exception (such as adding RMI exceptions to non-RMI aware code) etc.:
The above solution would be cool, but unfortunately AspectJ does not support it. Maybe good for next version of AspectJ ?

Comments ? Suggestions ?
AFAIK there is no way to change classes loaded by the bootstrap class loader (http://java.sun.com/docs/books/vmspec/2nd-edition/html/ConstantPool.doc.html#79383) unless you specify it as an commandline option to java. So why not just use:

java -Xbootclasspath:./yournewstiuff;/jdk1.4\jre\lib\rt.jar;... MyApp

with "./yournewstuff" prepended to the normal boot classpath forces the
bootstrap ClassLoader to pick up your customized Breakiterator class in "yournewstuff/java/text/BreakIterator.class", rather
than the class found in the rt.jar file.

- Kasper



Back to the top