src/share/vm/prims/jvmtiRedefineClasses.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 3234,3244 **** // Copy the "source file name" attribute from new class version the_class->set_source_file_name(scratch_class->source_file_name()); // Copy the "source debug extension" attribute from new class version the_class->set_source_debug_extension( ! scratch_class->source_debug_extension()); // Use of javac -g could be different in the old and the new if (scratch_class->access_flags().has_localvariable_table() != the_class->access_flags().has_localvariable_table()) { --- 3234,3246 ---- // Copy the "source file name" attribute from new class version the_class->set_source_file_name(scratch_class->source_file_name()); // Copy the "source debug extension" attribute from new class version the_class->set_source_debug_extension( ! scratch_class->source_debug_extension(), ! scratch_class->source_debug_extension() == NULL ? 0 : ! (int)strlen(scratch_class->source_debug_extension())); // Use of javac -g could be different in the old and the new if (scratch_class->access_flags().has_localvariable_table() != the_class->access_flags().has_localvariable_table()) {