8229930: internal_name() in annotations.hpp returns "{constant pool}"

Fix typo and change text to "{annotations}"

Reviewed-by: mdoerr, dcubed
This commit is contained in:
Harold Seigel 2019-08-21 11:29:40 -04:00
parent 9e633ae065
commit 9ccb4dc212
2 changed files with 3 additions and 3 deletions

View File

@ -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::metaspace_pointers_do(MetaspaceClosure* it) {
}
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

View File

@ -100,7 +100,7 @@ class Annotations: public MetaspaceObj {
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