comparison src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/resources/Messages.properties @ 1265:6af2ee7b09a9

8079470: Misleading error message when explicit signature constructor is called with wrong arguments Reviewed-by: jlaskey, hannesw
author sundar
date Wed, 06 May 2015 20:04:42 +0530
parents 7939ae855d57
children 1bd45e5ecf6a
comparison
equal deleted inserted replaced
1264:9831c47f6279 1265:6af2ee7b09a9
142 type.error.extend.ERROR_NO_COMMON_LOADER=Can not find a common class loader for ScriptObject and {0}. 142 type.error.extend.ERROR_NO_COMMON_LOADER=Can not find a common class loader for ScriptObject and {0}.
143 type.error.extend.ERROR_FINAL_FINALIZER=Can not extend class because {0} has a final finalize method. 143 type.error.extend.ERROR_FINAL_FINALIZER=Can not extend class because {0} has a final finalize method.
144 type.error.extend.ERROR_OTHER=Can not extend/implement {0} because of {1} 144 type.error.extend.ERROR_OTHER=Can not extend/implement {0} because of {1}
145 type.error.no.constructor.matches.args=Can not construct {0} with the passed arguments; they do not match any of its constructor signatures. 145 type.error.no.constructor.matches.args=Can not construct {0} with the passed arguments; they do not match any of its constructor signatures.
146 type.error.no.method.matches.args=Can not invoke method {0} with the passed arguments; they do not match any of its method signatures. 146 type.error.no.method.matches.args=Can not invoke method {0} with the passed arguments; they do not match any of its method signatures.
147 type.error.no.constructor.matches.args=Can not create new object with constructor {0} with the passed arguments; they do not match any of its method signatures.
147 type.error.method.not.constructor=Java method {0} cannot be used as a constructor. 148 type.error.method.not.constructor=Java method {0} cannot be used as a constructor.
148 type.error.env.not.object=$ENV must be an Object. 149 type.error.env.not.object=$ENV must be an Object.
149 type.error.unsupported.java.to.type=Unsupported Java.to target type {0}. 150 type.error.unsupported.java.to.type=Unsupported Java.to target type {0}.
150 type.error.constructor.requires.new=Constructor {0} requires "new". 151 type.error.constructor.requires.new=Constructor {0} requires "new".
151 type.error.new.on.nonpublic.javatype=new cannot be used with non-public java type {0}. 152 type.error.new.on.nonpublic.javatype=new cannot be used with non-public java type {0}.