aboutsummaryrefslogtreecommitdiff
path: root/buildtools/nasgen/src
diff options
context:
space:
mode:
authorsundar <none@none>2014-01-13 18:13:55 +0530
committersundar <none@none>2014-01-13 18:13:55 +0530
commit5feb4d2de6980be6646ccda376595f93a9211024 (patch)
tree4faa2dff74c41e46ea56ac592409671a5daf5826 /buildtools/nasgen/src
parent73086ab978897ab9fef952428ae8a6ea34ecee85 (diff)
downloadnashorn-5feb4d2de6980be6646ccda376595f93a9211024.tar.gz
8029332: Do not require nasgen-generated functions to return Object
Reviewed-by: lagergren, jlaskey, hannesw
Diffstat (limited to 'buildtools/nasgen/src')
-rw-r--r--buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java
index 3fdd7c68..c43bdf52 100644
--- a/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java
+++ b/buildtools/nasgen/src/jdk/nashorn/internal/tools/nasgen/MemberInfo.java
@@ -279,10 +279,6 @@ public final class MemberInfo implements Cloneable {
}
}
} else if (kind == Kind.FUNCTION) {
- final Type returnType = Type.getReturnType(javaDesc);
- if (! returnType.toString().equals(OBJECT_DESC)) {
- error("return value should be of Object type, found" + returnType);
- }
final Type[] argTypes = Type.getArgumentTypes(javaDesc);
if (argTypes.length < 1) {
error("function methods should have at least 1 arg");