Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-04-02 02:51:03 +0000
committerStephan Herrmann2010-04-02 02:51:03 +0000
commitb00be45a18c8695e6bf3aebeb36ee05c9005daf3 (patch)
tree626c919a53321df197b3db39a26f0b385d8c3b37 /othersrc
parent53563786fc98a64097ce5de2c42fa95ae5da38dd (diff)
downloadorg.eclipse.objectteams-b00be45a18c8695e6bf3aebeb36ee05c9005daf3.tar.gz
org.eclipse.objectteams-b00be45a18c8695e6bf3aebeb36ee05c9005daf3.tar.xz
org.eclipse.objectteams-b00be45a18c8695e6bf3aebeb36ee05c9005daf3.zip
after r23534 one base field accessor in test1126_nestingAndLayering4pf was no correctly generated
* avoid false match by including classname in the key
Diffstat (limited to 'othersrc')
-rw-r--r--othersrc/OTRE/src/org/eclipse/objectteams/otre/Decapsulation.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/othersrc/OTRE/src/org/eclipse/objectteams/otre/Decapsulation.java b/othersrc/OTRE/src/org/eclipse/objectteams/otre/Decapsulation.java
index c7a5c1980..8442cbdfd 100644
--- a/othersrc/OTRE/src/org/eclipse/objectteams/otre/Decapsulation.java
+++ b/othersrc/OTRE/src/org/eclipse/objectteams/otre/Decapsulation.java
@@ -221,7 +221,7 @@ public class Decapsulation
Iterator<FieldDescriptor> it = getter.iterator();
while (it.hasNext()) {
FieldDescriptor fd = it.next();
- String key = "get_" + fd.getFieldName() + fd.getFieldSignature();
+ String key = "get_" + class_name +"." + fd.getFieldName() + fd.getFieldSignature();
if (logging)
printLogMessage("Generating getter method "+key);
if (addedAccessMethods == null)
@@ -240,7 +240,7 @@ public class Decapsulation
Iterator<FieldDescriptor> it = setter.iterator();
while (it.hasNext()) {
FieldDescriptor fd = it.next();
- String key = "set_"+fd.getFieldName()+fd.getFieldSignature();
+ String key = "set_"+ class_name +"." + fd.getFieldName()+fd.getFieldSignature();
if (logging)
printLogMessage("Generating setter method "+key);
if (addedAccessMethods == null)

Back to the top