Bug 119408 - VerifyError when loading weaved class
Summary: VerifyError when loading weaved class
Status: RESOLVED DUPLICATE of bug 118781
Alias: None
Product: AspectJ
Classification: Tools
Component: Library (show other bugs)
Version: 1.5.0M5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-06 09:14 EST by Thor Åge Eldby CLA
Modified: 2006-05-10 10:54 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 Thor Åge Eldby CLA 2005-12-06 09:14:10 EST
Upon loading a quite large class (6500 lines) I get this error when running all tests that load the weaved class, Thinlet:

java.lang.VerifyError: (class: no/vegvesen/fk/pda/gui/Thinlet, method: getGrid signature: (Ljava/lang/Object;)[[I) Wrong return type in function
        at no.vegvesen.fk.test.GUITestCaseBase.setUp(GUITestCaseBase.java:25)
        at no.vegvesen.fk.bean.control.PdaControlTestCase.setUp(PdaControlTestCase.java:76)
        at junit.framework.TestCase.runBare(TestCase.java:125)

My pointcut looks like this:

	protected pointcut mockPointcut() : (
		... execution on other classes ... ||
		execution (* no.vegvesen.fk.pda.gui.Thinlet.*(..)) ||
		... execution on other classes ...
	);

If I change the execution like this it works properly again: 

		(execution (* no.vegvesen.fk.pda.gui.Thinlet.*(..)) &&
			!execution (* *.getGrid(..))) ||

If I then add a new method with almost identical signature (only changed the name) it fails again:

	private int[][] getGri(Object component) {
		return null;
	}
Comment 1 Andrew Clement CLA 2005-12-06 09:36:53 EST
I suspect this is a duplicate of 118781 to do with multi depth arrays - as luck would have it we have just released a version of AJDT that fixes it.  Please can you retry? (on the latest AJDT or the latest AspectJ).
Comment 2 Wes Isberg CLA 2006-05-10 10:54:44 EDT
No response to request to retry, so closed as duplicate of 118781.
stalebug.

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