Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: Declare error



>I would like to declare an error if any subtype of ClassA do not have a
>default constructor.
>Is it possible?
No. You are trying to identify the absence of something i.e. the lack of
default constructor. Declare warning/error can only be used to advise join
points that exist. They cannot be used where the joint point does not
exist.

From previous postings it seems that your application has the requirement
for the existence of default constructors. May I ask what the root
requirement is?

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



Back to the top