Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ 1.1 and J2ME

Hi Neil,

I've done the same thing with AspectJ 1.06. But with
AspectJ1.1 we don't have the -preprocess option. One possible
solution (that I have not tried yet) would be to use ajc (and
the midpapi as a library) and compile the code, including
aspects. Then, we decompile the obtained .class files and try
to compile them again using the option specific for J2ME (or
the Wireless Toolkit as I did with the previous version).
I did not tried that yet because I thing it is an "ugly"
solution and specific J2SE classes may be included again. So,
I would need to analyze the decompiled code, and change it,
if necessary.
I would be very glad if anybody else can give another idea.
Thanks Neil!
  Cheers,
     Ayla


> Hi,
>
> Doesn't really answer your question but...
>
> Last year I worked with J2ME and AspectJ 1.06 like you and h
ad no problems,
> although I did have to use the -
preprocess mode...  I would then compile the
> intermediate .java files using WTK to create the necessary .
class files and
> then finally the .prc file for the mobile device..  did you
also do it this
> way?
>
> I'm also interested in using AspectJ with J2ME so would disa
ppointed if it
> did not work in 1.1 and future versions.
>
> Cheers
> Neil
>
>
> ----- Original Message -----
> From: "Ayla Débora" <ayladebora@xxxxxxxxxx>
> To: <aspectj-users@xxxxxxxxxxx>
> Sent: Wednesday, June 18, 2003 8:51 PM
> Subject: [aspectj-users] AspectJ 1.1 and J2ME
>
>
> > Hi,
> >
> > is anybody working with AspectJ 1.1 and J2ME?
> > Is it really possible to use both? With AspectJ 1.0.6 I co
uld do that, but
> > avoiding certain pointcut definitions (using cflow, for ex
ample).
> > Now, when I'm compiling using "ajc", even with a simple as
pect with just a
> > "before" advice related to a simple pointcut, it requires
classes from
> J2SE
> > like "java.io.Serializable" and "java.lang.Cloneable", but
 just when I
> > include the option:
> >
> > -bootclasspath d:\WTK104\lib\midpapi
> >
> > which is necessary for providing code for J2ME devices.
> >
> > Thanks in advance,
> >   Ayla
> >
> >
> > _______________________________________________
> > 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
>


---
UOL, o melhor da Internet
http://www.uol.com.br/



Back to the top