Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use AspectJ with J2ME?

AspectJ J2ME
0
Posted

Can I use AspectJ with J2ME?

0

• Q:My advice runs for each overridden method! • Q:I don’t understand when thisEnclosingJoinPointStaticPart is available.

0

We have not tested with J2ME, but we understand that users are deploying AspectJ-compiled programs successfully in J2ME. It should work if your program is otherwise J2ME-compatible and if you avoid using cflow-based pointcuts or thisJoinPoint. To ensure that the program is limited to J2ME API’s, you should supply the runtime on the bootclasspath. (Fair warning: there was an email about this not working, but there has been no bug report.

0

The J2ME platform has several different components. The diagram below shows how the different profiles build on top of the two configurations CDC (Connected Device Configuration) and CLDC (Connected Limited Device Configuration): ————– | Personal | ————– ——– | Foundation | | MIDP | —————— —————— | CDC | | CLDC | —————————————— | Java | —————————————— Which configuration you have dictates the restrictions when running AspectJ compiled programs. If you’re running with a profile which sits on top of CDC then there are not, as far as we are aware, any restrictions when running AspectJ compiled code on this flavour of J2ME. If you’re running with a profile sitting on top of CLDC 1.1 you are currently unable to use the thisJoinPoint, thisJoinPointStaticPart and thisEnclosingJoinPointStaticPart variables, the cflow and cflowbelow pointcuts and the percflow and percflowbelow perClauses. Final

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.