src/share/vm/prims/jniCheck.cpp

changeset 2658
c7f3d0b4570f
parent 2508
b92c45f2bc75
child 3241
a6eef545f1a2
     1.1 --- a/src/share/vm/prims/jniCheck.cpp	Fri Mar 18 15:52:42 2011 -0700
     1.2 +++ b/src/share/vm/prims/jniCheck.cpp	Fri Mar 18 16:00:34 2011 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -224,8 +224,7 @@
    1.11      ReportJNIFatalError(thr, fatal_wrong_static_field);
    1.12  
    1.13    /* check for proper field type */
    1.14 -  if (!instanceKlass::cast(f_oop)->find_local_field_from_offset(
    1.15 -          id->offset(), true, &fd))
    1.16 +  if (!id->find_local_field(&fd))
    1.17      ReportJNIFatalError(thr, fatal_static_field_not_found);
    1.18    if ((fd.field_type() != ftype) &&
    1.19        !(fd.field_type() == T_ARRAY && ftype == T_OBJECT)) {

mercurial