[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Inter-type Declaration to a Library Class
|
Hello,
I am trying to add a member variable to a class thats in the java class
library. When I do so, I get the following warning:
This affected type is not exposed to the weaver: java.lang.Object
When I run the code, the class (here Object, as an example) does not contain
the new field when I run the getFields reflective method. I have tried
including the java library with the injars option in the AspectJ compiler.
Since rt.jar is so large, I run out of memory. I have tried extracting the
class from rt.jar, here java\lang\Object.class, and making a jar of it by
itself. When I run the compiler, there are no more warnings. I then update
rt.jar with the new java\lang\Object.class file. When I try to run java I
get the following error:
Error occurred during initialization of VM
java.lang.NullPointerException
This happens even when I simply type java to get all the different java
options. Has anyone successfully added a field or method to the java
library? Please help!
Thank you,
Johanne
_________________________________________________________________
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months
FREE*
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines