1.1 --- a/src/share/vm/classfile/classFileStream.hpp Thu Aug 21 13:57:51 2014 -0700 1.2 +++ b/src/share/vm/classfile/classFileStream.hpp Tue Sep 02 14:02:57 2014 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 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 @@ -53,20 +53,20 @@ 1.11 u1* _buffer_start; // Buffer bottom 1.12 u1* _buffer_end; // Buffer top (one past last element) 1.13 u1* _current; // Current buffer position 1.14 - char* _source; // Source of stream (directory name, ZIP/JAR archive name) 1.15 + const char* _source; // Source of stream (directory name, ZIP/JAR archive name) 1.16 bool _need_verify; // True if verification is on for the class file 1.17 1.18 void truncated_file_error(TRAPS); 1.19 public: 1.20 // Constructor 1.21 - ClassFileStream(u1* buffer, int length, char* source); 1.22 + ClassFileStream(u1* buffer, int length, const char* source); 1.23 1.24 // Buffer access 1.25 u1* buffer() const { return _buffer_start; } 1.26 int length() const { return _buffer_end - _buffer_start; } 1.27 u1* current() const { return _current; } 1.28 void set_current(u1* pos) { _current = pos; } 1.29 - char* source() const { return _source; } 1.30 + const char* source() const { return _source; } 1.31 void set_verify(bool flag) { _need_verify = flag; } 1.32 1.33 void check_truncated_file(bool b, TRAPS) {