--- a/src/hotspot/share/oops/typeArrayKlass.cpp Sat Jan 05 10:48:54 2019 +0800
+++ b/src/hotspot/share/oops/typeArrayKlass.cpp Sat Jan 05 20:08:24 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -44,17 +44,6 @@
#include "runtime/handles.inline.hpp"
#include "utilities/macros.hpp"
-bool TypeArrayKlass::compute_is_subtype_of(Klass* k) {
- if (!k->is_typeArray_klass()) {
- return ArrayKlass::compute_is_subtype_of(k);
- }
-
- TypeArrayKlass* tak = TypeArrayKlass::cast(k);
- if (dimension() != tak->dimension()) return false;
-
- return element_type() == tak->element_type();
-}
-
TypeArrayKlass* TypeArrayKlass::create_klass(BasicType type,
const char* name_str, TRAPS) {
Symbol* sym = NULL;