changeset 56040:efb2770e8288

8229930: internal_name() in annotations.hpp returns "{constant pool}" Summary: Fix typo and change text to "{annotations}" Reviewed-by: mdoerr, dcubed
author hseigel
date Wed, 21 Aug 2019 11:29:40 -0400
parents df3397f95387
children 253c817653b6
files src/hotspot/share/oops/annotations.cpp src/hotspot/share/oops/annotations.hpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/oops/annotations.cpp	Wed Aug 21 17:09:05 2019 +0300
+++ b/src/hotspot/share/oops/annotations.cpp	Wed Aug 21 11:29:40 2019 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 2019, 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
@@ -86,7 +86,7 @@
 }
 
 void Annotations::print_value_on(outputStream* st) const {
-  st->print("Anotations(" INTPTR_FORMAT ")", p2i(this));
+  st->print("Annotations(" INTPTR_FORMAT ")", p2i(this));
 }
 
 #if INCLUDE_SERVICES
--- a/src/hotspot/share/oops/annotations.hpp	Wed Aug 21 17:09:05 2019 +0300
+++ b/src/hotspot/share/oops/annotations.hpp	Wed Aug 21 11:29:40 2019 -0400
@@ -100,7 +100,7 @@
  private:
   static julong count_bytes(Array<AnnotationArray*>* p);
  public:
-  const char* internal_name() const { return "{constant pool}"; }
+  const char* internal_name() const { return "{annotations}"; }
 #ifndef PRODUCT
   void print_on(outputStream* st) const;
 #endif