hotspot/src/share/vm/oops/arrayKlass.cpp
changeset 28731 f7339cba0a6a
parent 27020 a7c8010446c2
child 30764 fec48bf5a827
equal deleted inserted replaced
28628:544fb99e0080 28731:f7339cba0a6a
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    69   // There are no fields in an array klass but look to the super class (Object)
    69   // There are no fields in an array klass but look to the super class (Object)
    70   assert(super(), "super klass must be present");
    70   assert(super(), "super klass must be present");
    71   return super()->find_field(name, sig, fd);
    71   return super()->find_field(name, sig, fd);
    72 }
    72 }
    73 
    73 
    74 Method* ArrayKlass::uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const {
    74 Method* ArrayKlass::uncached_lookup_method(Symbol* name, Symbol* signature, OverpassLookupMode overpass_mode) const {
    75   // There are no methods in an array klass but the super class (Object) has some
    75   // There are no methods in an array klass but the super class (Object) has some
    76   assert(super(), "super klass must be present");
    76   assert(super(), "super klass must be present");
    77   return super()->uncached_lookup_method(name, signature, mode);
    77   // Always ignore overpass methods in superclasses, although technically the
       
    78   // super klass of an array, (j.l.Object) should not have
       
    79   // any overpass methods present.
       
    80   return super()->uncached_lookup_method(name, signature, Klass::skip_overpass);
    78 }
    81 }
    79 
    82 
    80 ArrayKlass::ArrayKlass(Symbol* name) {
    83 ArrayKlass::ArrayKlass(Symbol* name) {
    81   set_name(name);
    84   set_name(name);
    82 
    85