< prev index next >

src/share/vm/classfile/classFileParser.hpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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.

@@ -170,16 +170,23 @@
   void apply_parsed_class_attributes(InstanceKlass* k);  // update k
   void apply_parsed_class_metadata(InstanceKlass* k, int fields_count, TRAPS);
   void clear_class_metadata();
 
   // Constant pool parsing
-  void parse_constant_pool_entries(const ClassFileStream* const stream,
+
+  // Besides parsing the constant pool entries, if class file version is >= 53
+  // then this function returns either 19 or 20 if it finds a constant pool
+  // entry with either value.  Otherwise, it returns zero.
+  int parse_constant_pool_entries(const ClassFileStream* const stream,
                                    ConstantPool* cp,
                                    const int length,
                                    TRAPS);
 
-  void parse_constant_pool(const ClassFileStream* const cfs,
+  // Besides parsing the constant pool, if class file version is >= 53 then
+  // this function returns either 19 or 20 if an entry with that value is
+  // found in the constant pool.  Otherwise, it returns zero.
+  int parse_constant_pool(const ClassFileStream* const cfs,
                            ConstantPool* const cp,
                            const int length,
                            TRAPS);
 
   // Interface parsing
< prev index next >