aboutsummaryrefslogtreecommitdiff
path: root/buildtools/nasgen
diff options
context:
space:
mode:
authorhannesw <none@none>2013-02-07 14:58:41 +0100
committerhannesw <none@none>2013-02-07 14:58:41 +0100
commit10f7dd6722c56265cb0f0b344f7e2d125afd7bc9 (patch)
treee1ea1d1f97e53071752a8aa3b130b601a9ab0637 /buildtools/nasgen
parent3a30a9431526df7dcd11e3da85f3909151d31ca1 (diff)
downloadnashorn-10f7dd6722c56265cb0f0b344f7e2d125afd7bc9.tar.gz
8007627: Support @Getter annotation on constructor
Reviewed-by: attila, lagergren
Diffstat (limited to 'buildtools/nasgen')
-rw-r--r--buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java2
-rw-r--r--buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java
index 6da3562d..836cb893 100644
--- a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java
+++ b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/ConstructorGenerator.java
@@ -135,7 +135,7 @@ public class ConstructorGenerator extends ClassGenerator {
linkerAddGetterSetter(mi, className, memInfo);
} else if (memInfo.isConstructorGetter()) {
final MemberInfo setter = scriptClassInfo.findSetter(memInfo);
- linkerAddGetterSetter(mi, className, memInfo, setter);
+ linkerAddGetterSetter(mi, scriptClassInfo.getJavaName(), memInfo, setter);
}
}
emitStaticInitSuffix(mi, className);
diff --git a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java
index 9aeaf8f7..17750cd1 100644
--- a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java
+++ b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/PrototypeGenerator.java
@@ -112,7 +112,7 @@ public class PrototypeGenerator extends ClassGenerator {
linkerAddGetterSetter(mi, className, memInfo);
} else if (memInfo.isPrototypeGetter()) {
final MemberInfo setter = scriptClassInfo.findSetter(memInfo);
- linkerAddGetterSetter(mi, className, memInfo, setter);
+ linkerAddGetterSetter(mi, scriptClassInfo.getJavaName(), memInfo, setter);
}
}
emitStaticInitSuffix(mi, className);