Issue Details (XML | Word | Printable)

Key: SPR-5097
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Alef Arendsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Framework

<aspect ref=""/> with missing ref attribute gives error, should not

Created: 19/Aug/08 01:05 AM   Updated: 19/Aug/08 02:27 PM   Resolved: 19/Aug/08 02:27 PM
Component/s: SpringAOP
Affects Version/s: 2.5.5
Fix Version/s: 2.5.6

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive test.zip (3 kB)



 Description  « Hide

If I define an aspect with just an <aop:declare-parents/> elements but without an ref attribute in the <aop:aspect/> element, Spring AOP gives me an error, while I think it should not. An introduction without a backing Java class is perfectly okay, I would say.

I've attached a test project



Juergen Hoeller added a comment - 19/Aug/08 02:27 PM

Indeed, there is no need to insist on an aspect reference in that case. Fixed for 2.5.6!

Juergen