Bug 36737

Summary: unable to find main class in .aj file
Product: [Tools] AJDT Reporter: Wes Isberg <wes>
Component: CoreAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P5    
Version: unspecified   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Wes Isberg CLA 2003-04-21 20:34:42 EDT
Steps:
- Eclipse 2.1, AJDT 1.1.1 (March 14)
- (I setup only .aj files with AspectJ as default editor)
- only .aj files in my src directory. 
- Simple.aj has main:
public class Simple {
  public static void main(String args[]) {
    System.out.println("hi");
  }
}
- AJDT compiles Simple.aj using AspectJ correctly
- select file in package explorer or class name in editor
- menu Run, Run As..., Java Application
RESULT: dialog saying, 
  "the active editor does not contain a main type"

(My goal is to use the regular Java compiler/editor for .java files
and AspectJ for the .aj files.)
Comment 1 Mik Kersten CLA 2003-06-05 12:29:02 EDT
This would involve changing the Eclipse Java launcher, as a result we will 
postpone it.  You can still launch a main in an ".aj" file if you type the 
class name in instead of using the class search.

Comment 2 Eclipse Webmaster CLA 2009-08-30 02:50:01 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.
Comment 3 Andrew Eisenberg CLA 2009-09-24 18:29:57 EDT
Fixed now.