1.1 --- a/src/share/vm/classfile/verifier.hpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/classfile/verifier.hpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -375,15 +375,15 @@ 1.11 bool has_error() const { return result() != NULL; } 1.12 char* exception_message() { 1.13 stringStream ss; 1.14 - ss.print(_message); 1.15 + ss.print("%s", _message); 1.16 _error_context.details(&ss, _method()); 1.17 return ss.as_string(); 1.18 } 1.19 1.20 // Called when verify or class format errors are encountered. 1.21 // May throw an exception based upon the mode. 1.22 - void verify_error(ErrorContext ctx, const char* fmt, ...); 1.23 - void class_format_error(const char* fmt, ...); 1.24 + void verify_error(ErrorContext ctx, const char* fmt, ...) ATTRIBUTE_PRINTF(3, 4); 1.25 + void class_format_error(const char* fmt, ...) ATTRIBUTE_PRINTF(2, 3); 1.26 1.27 Klass* load_class(Symbol* name, TRAPS); 1.28