Summary: | Compile fails on Win2k but works on Linux box | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | kasi gaadu <kasigaadu> | ||||||||
Component: | Compiler | Assignee: | Jim Hugunin <jim-aj> | ||||||||
Status: | RESOLVED INVALID | QA Contact: | |||||||||
Severity: | normal | ||||||||||
Priority: | P4 | CC: | kasigaadu, matthew_webster | ||||||||
Version: | 1.1.1 | ||||||||||
Target Milestone: | --- | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows 2000 | ||||||||||
Whiteboard: | |||||||||||
Attachments: |
|
Description
kasi gaadu
2003-09-29 21:39:13 EDT
Created attachment 6280 [details]
Test Aspect which has the static variable
Created attachment 6281 [details]
RMI interface
Created attachment 6282 [details]
RMI Server / implementation
The sample as supplied won't compile. This is because the SetMethodImpl constructor is trying to directly instantiate the aspect Test which gives the following error: The constructor Test() is not visible The fact that you were able to get past this and fail later plus the fact that you get different behaviour in differnet environments leads me to believe that this is a configuration problem i.e. that you have another version of Test on your classpath. Another observation is the invocation of a static method using an instance is generally frowned upon. You should use the class instead i.e. Test.methodName() This would obviate the need to obtain an instance of the aspect. Jim I recommend closing this bug. I agree with Matthew's analysis and I'm marking this invalid. You shouldn't be able to directly call the constructor of an aspect. The fact that this works on one system suggests a configuration problem. You can fix your program by removing the "new Test()" constructor call. If the error persists after this fix, please reopen the bug. |