[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] Introducing a method to classes that are in the JRE
|
The mechanics of doing something like this are
described in the Programmer's Guide discussion of
inter-type declaration and the Development Environment
Guide section on the ajc tool -injars option. Both
are linked off the AspectJ documentation page.
But we recommend against modifying Java classes because
doing violates the spirit and perhaps the letter of Sun's
license. Further, I think it unwise to modify final
classes, and believe that AspectJ should avoid this
(perhaps permitting it under the rubric of privilege):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=47919
If you can specify the code you'd actually like to
write and what you're trying to do, then perhaps
someone can help you do it another way.
Wes
On Tue, 2 Dec 2003 10:56:59 -0800
jerry_liu@xxxxxxxxxxx wrote:
> Are there any tips on how I can introduce methods and
> attributes to a class like java.lang.Integer which is
> packaged in the Java runtime? Or pointers to a FAQ if
> this is a known question. I'm new to this. :-)
>
> Thanks,
>
> Jerry
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-dev