Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Just for fun: declare error to prevent use of inheritance?

Just for fun, I was trying to think of how to use declare error to prevent the use of class inheritance in user code, but I can't think of how to do that.

Basically, if you wanted to disallow the declaration of classes that extend anything other than Object, is there a "declare error" form that would work?

-matthew

--
mailto:matthew@xxxxxxxxxxxxxxx 
skype:matthewadams12
googletalk:matthew@xxxxxxxxxxxxxxx
http://matthewadams.me
http://www.linkedin.com/in/matthewadams


Back to the top