8198898: Compilation errors in jdk.crypto.mscapi with VS 2017

Reviewed-by: xuelei
This commit is contained in:
Weijun Wang 2018-03-08 11:44:43 +08:00
parent 3fb8a072a1
commit 68b1b6c580

View File

@ -92,7 +92,7 @@ void ThrowException(JNIEnv *env, const char *exceptionName, DWORD dwError)
* Overloaded 'operator new[]' variant, which will raise Java's
* OutOfMemoryError in the case of a failure.
*/
static void* operator new[](std::size_t size, JNIEnv *env)
void* operator new[](std::size_t size, JNIEnv *env)
{
void* buf = ::operator new[](size, std::nothrow);
if (buf == NULL) {