Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-23 Thread pai
Hi Andy: Thanks a lot for your elaboration :) -- View this message in context: http://aspectj.2085585.n4.nabble.com/Behaviours-of-new-constructor-added-by-AspectJ-ITD-tp4651015p4651045.html Sent from the AspectJ - users mailing list archive at Nabble.com.

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-22 Thread Andy Clement
Some background on Q1: public class Child { public String name = John; public Child(String desc) { } public Child(int bar) { } } When this code is compiled the bytecode to set name to 'John' is included in every constructor within the class (without anything to mark that

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-22 Thread Brett Randall
Thanks Andy, best explanation ever of Java field initialization as it relates to AspectJ. On 23/07/2013 8:15 AM, Andy Clement andrew.clem...@gmail.com wrote: Some background on Q1: public class Child { public String name = John; public Child(String desc) { } public

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-17 Thread pai
Hi thanks! so it seems for Q1, it's apsecJ's limitation. Thank you for the information :) I'll post Q2 question in another thread. Regards! -- View this message in context: http://aspectj.2085585.n4.nabble.com/Behaviours-of-new-constructor-added-by-AspectJ-ITD-tp4651015p4651028.html Sent

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-16 Thread Ramnivas Laddad
For Q1: AspectJ compiler (and AJDT) will issue - inter-type constructor does not contain explicit constructor call: field initializers in the target type will not be executed [Xlint:noExplicitConstructorCall] when you don't have explicit constructor call. Can you post Q2 freshly in a separate

[aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread pai
Hi! folk~ I have a question about behaviours of new constructor added by AspectJ ITD I am currently applying AspectJ to our project, and I found a behavior which is a bit strange to me. **Q1:** I added a new constructor to my current class with inter-type declaration, and found that the class's

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread Ramnivas Laddad
Replied on stackoverflow. On Mon, Jul 15, 2013 at 8:03 AM, pai pika...@gmail.com wrote: Hi! folk~ I have a question about behaviours of new constructor added by AspectJ ITD I am currently applying AspectJ to our project, and I found a behavior which is a bit strange to me. **Q1:** I

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread pai
Hi! thanks for the response. But it seems you have some misunderstanding about my questions. So I made some modifications to make it clear. Thank you for the help :) I am currently applying AspectJ to our project, and I found a behavior which is a bit strange to me. *Q1:* I added a new

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread Alexander Kriegisch
Hello. With all due respect: Ramnivas has answered the question before on SO quite patiently. So as not to waste any more of his precious time I recommend you to - read his answer, - think again, especially about Q1 and - learn some basic Java. Sorry if it sounds rude, but you seem not to

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread pai
Hi Alex! I'm sorry that you think I don't appreciate his answer. But actually, I do appreciate for your kind response. That's why I think I may not state my questions clear enough for people to understand clearly. It's my mistake. It seems my questions was misunderstood. I am quite familiar

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread Ramnivas Laddad
Replied again (appended to original answer). Hopefully, this resolves your issue. On Mon, Jul 15, 2013 at 12:27 PM, pai pika...@gmail.com wrote: Hi Alex! I'm sorry that you think I don't appreciate his answer. But actually, I do appreciate for your kind response. That's why I think I

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread pai
Dear ramnivas: Thank you for your detailed answer, but I have some follow-up questions. As regard to your answers. Q1: public class Child { public String name = John; public Child(String desc) { // TODO Auto-generated constructor stub } } If I new the Child with its