Bug 173977 - Missing LocalVariableTable for methods adviced by around execution.
Summary: Missing LocalVariableTable for methods adviced by around execution.
Status: RESOLVED DUPLICATE of bug 173978
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-13 04:20 EST by NAKAGUCHI Takao CLA
Modified: 2007-02-13 04:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NAKAGUCHI Takao CLA 2007-02-13 04:20:10 EST
LocalVariableTable is missing for methods adviced by around execution though that is generated for before execution.
So softwares those get method parameter information from class files (such as java2wsdl or eclipse ide) can't get the information.


Here is the class which has method advied by two aspects.

public class Test{
	public void sayHello(String message){
		System.out.println(message);
	}
}

The aspect(1) which contains "around execution".

public aspect TestAroundAspect{
	void around(): execution(void Test.sayHello(String)){
		proceed();
	}
}

The aspect(2) which contains "before execution".

public aspect TestBeforeAspect{
	before(): execution(void Test.sayHello(String)){
	}
}

And here are the results generated by ajc and javap.

javap results for (1):
Compiled from "Test.java"
public class Test extends java.lang.Object{
public Test();
  LineNumberTable: 
   line 1: 0
  LocalVariableTable: 
   Start  Length  Slot  Name   Signature
   0      5      0    this       LTest;

public void sayHello(java.lang.String);
  LineNumberTable: 
   line 1: 0

}

javap results for (2):

Compiled from "Test.java"
public class Test extends java.lang.Object{
public Test();
  LineNumberTable: 
   line 1: 0
  LocalVariableTable: 
   Start  Length  Slot  Name   Signature
   0      5      0    this       LTest;

public void sayHello(java.lang.String);
  LineNumberTable: 
   line 8: 0
   line 9: 13
  LocalVariableTable: 
   Start  Length  Slot  Name   Signature
   6      8      0    this       LTest;
   6      8      1    message       Ljava/lang/String;

}
Comment 1 NAKAGUCHI Takao CLA 2007-02-13 04:31:08 EST
I'm sorry for posting duplicate contents.
Same request seems to be sent when I back pages because I got error with posting attachment.
Please delete this bug(#173977).


*** This bug has been marked as a duplicate of bug 173978 ***