Bug 69459 - Hiding of Instance Methods by static methods
Summary: Hiding of Instance Methods by static methods
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-07 09:10 EDT by Helmut Zechmann CLA
Modified: 2004-10-21 04:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Zechmann CLA 2004-07-07 09:10:42 EDT
Using Introduction it is possible to hide instance methods by static methods.
Example:

class Super {
  public void m(){};
}
class Sub {}

aspect A {
  public static void Sub.m(){}
}

Acccording to the Java Language Specification this is not allowed. Is this
behaviour desired ??

It is also possible to override static methods by instance methods, wich causes
a compile time error in java.
Comment 1 Andrew Clement CLA 2004-07-27 10:28:33 EDT
Fix checked in - waiting for build.
Comment 2 Andrew Clement CLA 2004-07-28 10:59:44 EDT
Fixed 

BUILD COMPLETE -  build.317
Date of build: 07/28/2004 12:16:33
Time to build: 121 minutes 44 seconds
Last changed: 07/27/2004 18:38:25
Latest good AspectJ jar available at:
download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar
Comment 3 Adrian Colyer CLA 2004-10-21 04:32:00 EDT
Fix released as part of AspectJ 1.2.1