diff options
author | aclement <aclement> | 2006-11-21 16:27:36 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-11-21 16:27:36 +0000 |
commit | e022f649ea1fce716d16fc0d18b4c6aed48f8b30 (patch) | |
tree | 2565b0b12245a69dfec91b37c1a2f5b53fd2adeb /tests/bugs153 | |
parent | 25d72696da5568ab33ec8f4739a2542cf01437c9 (diff) | |
download | aspectj-e022f649ea1fce716d16fc0d18b4c6aed48f8b30.tar.gz aspectj-e022f649ea1fce716d16fc0d18b4c6aed48f8b30.zip |
test and fix for 164633 - problem with decp incorrectly targetting an inner type
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr164633/Model.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs153/pr164633/Model.java b/tests/bugs153/pr164633/Model.java new file mode 100644 index 000000000..71a94a0f6 --- /dev/null +++ b/tests/bugs153/pr164633/Model.java @@ -0,0 +1,35 @@ + +package test; + +import java.beans.PropertyChangeListener; +import java.beans.PropertyChangeSupport; +import java.io.Serializable; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyChangeListener; + +aspect BoundEntityAspect { + + interface BoundBean extends Serializable {} + + declare parents: Model || *ChangeL implements BoundBean;//test.* && !BoundEntityAspect implements BoundBean; + + public synchronized PropertyChangeSupport BoundBean.getPropertyChangeSupport() { + return null; + } + +} + +public class Model { + + private PropertyChangeListener changeListener = new ChangeL(); + + protected class ChangeL implements PropertyChangeListener { + public void propertyChange(PropertyChangeEvent evt) { + getPropertyChangeSupport();//.firePropertyChange("valid", null, null); + } + } + + public static void main(String[] args) { + new Model().changeListener.propertyChange(null); + } +} |