[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Weaving standard libraries
|
This license snip is rather unclear.
For Java 5, it is possible to change a rt.jar class at class load time
with a JVMTI agent, or even at runtime.
For Java 3 and 4, this was already possible thru a C JVMDI/PI bytecode
instrumentation agent.
This snip only says that there is license issue when using -Xbootclasspath/p.
Note that some commercial Application Performance Management are using
this option when you install them. What I think causes an issue is if
you redistribute a modified rt.jar class.
Alex
On Thu, 21 Oct 2004 13:38:48 -0700, Adrian Powell <apowell@xxxxxxxxxx> wrote:
>
> David,
>
> If you modify anything in rt.jar through aspectj (or any other tool), you
> would be violating Sun's runtime license. In the online docs for the java
> tool, Sun says:
>
> -Xbootclasspath/p:path
> Specify a semicolon-separated path of directires, JAR archives, and ZIP
> archives to prepend in front of the default bootstrap class path. Note:
> Applications that use this option for the purpose of overriding a class in
> rt.jar should not be deployed as doing so would contravene the Java 2
> Runtime Environment binary code license.
>
> cheers,
> -adrian.
> --
> Adrian Powell
> Centre for IBM e-Business Innovation :: Vancouver
> apowell@xxxxxxxxxx / 604-297-3194
>
>
>
> David Pearce <david.pearce@xxxxxxxxxxxxx>
> Sent by: aspectj-users-admin@xxxxxxxxxxx
>
> 10/21/2004 01:02 PM
>
> Please respond to
> aspectj-users
>
>
> Toaspectj-users@xxxxxxxxxxx
>
> cc
>
> SubjectRe: [aspectj-users] Weaving standard libraries
>
>
>
>
>
>
>
>
>
>
>
> Hi Wes,
>
> > I haven't tried weaving rt.jar; are you having a problem with it?
>
> Not at all! I'm actually interested in weaving into things like e.g.
> java.lang.String or java.lang.Thread and believe that there are certain
> limitations on what can be done here. What i'm looking for is something
> telling me exactly what those limitations are.
>
> > though we recommend against violating any license.
>
> This suggests to me that weaving code into the standard libraries would
> be violating someone's license ?
>
> Cheers,
>
> Dave
>
> > The options for ajc, the combined compiler/weaver, are documented in the
> > AspectJ development guide. The load-time weaver is just an adapter to the
> > weaver used by ajc, and to use it you have to specify the aspectpath.
> >
> > More generally, if there's anything you need to know about using AspectJ
> > that's not in documentation for AspectJ, please point it out as a doc bug!
> >
> > Thanks-
> > Wes
> >
> >
> >>------------Original Message------------
> >>From: Eric Bodden <eric@xxxxxxxxx>
> >>To: aspectj-users@xxxxxxxxxxx
> >>Date: Thu, Oct-21-2004 0:06 AM
> >>Subject: RE: [aspectj-users] Weaving standard libraries
> >>
> >>
> >>-----BEGIN PGP SIGNED MESSAGE-----
> >>Hash: SHA1
> >>
> >>Hi.
> >>
> >>Generally the JARs you want to weave into have to be in the correct
> >>path parameter (the ASPECTPATH, see
> >>http://www.aspectprogrammer.org/blogs/adrian/2004/10/three_paths_sta.h
> >>tml). I don't know how load-time weaving adresses that, but I would
> >>rather assume that it makes use of the very same path concept. May
> >>anybody clarify this?
> >>
> >>Cheers,
> >>Eric
> >>
> >>David Pearce wrote:
> >>
> >>>Hi everybody,
> >>>
> >>>I have a quick question, which I'm sure has been asked many times
> >>>before. But, I can't seem to find anything about it on the web or
> >>>from searching the archives of this list.
> >>>
> >>>So, basically, my question is: what are the limitations of weaving
> >>>when it comes to the java standard libraries?
> >>>
> >>>I understand from the FAQ that AspectJ only weaves code which is
> >>>actually being compiled. But, if I use a load-time weaver then
> >>>this should help somewhat? or not?
> >>>
> >>>Any pointers/help would be appreciated!
> >>>
> >>>Thanks,
> >>>
> >>>David J. Pearce
> >>>_______________________________________________
> >>>aspectj-users mailing list
> >>>aspectj-users@xxxxxxxxxxx
> >>>http://dev.eclipse.org/mailman/listinfo/aspectj-users
> >>
> >>
> >>
> >>- --
> >>Eric Bodden
> >>Chair I2 for Programming Languages and Program Analysis
> >>RWTH Aachen University
> >>
> >>-----BEGIN PGP SIGNATURE-----
> >>Version: PGP 8.0.3
> >>
> >>iQA/AwUBQXdeo8wiFCm7RlWCEQL86wCeO1+sAMC4b83KNCAS1/u4lD+dZqIAn1QO
> >>19ek8tF3VkBRu+4bSchgNunV
> >>=SYbO
> >>-----END PGP SIGNATURE-----
> >>
> >>
> >>_______________________________________________
> >>aspectj-users mailing list
> >>aspectj-users@xxxxxxxxxxx
> >>http://dev.eclipse.org/mailman/listinfo/aspectj-users
> >>
> >
> >
> >
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>