src/share/vm/classfile/defaultMethods.cpp

changeset 8368
32b682649973
parent 7756
8cd2e2834c8f
child 8604
04d83ba48607
child 9507
7e72702243a4
     1.1 --- a/src/share/vm/classfile/defaultMethods.cpp	Mon Jan 11 13:41:45 2016 -0800
     1.2 +++ b/src/share/vm/classfile/defaultMethods.cpp	Fri Jan 15 22:33:15 2016 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2012, 2016, 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 @@ -892,10 +892,8 @@
    1.11    m->set_constants(NULL); // This will get filled in later
    1.12    m->set_name_index(cp->utf8(name));
    1.13    m->set_signature_index(cp->utf8(sig));
    1.14 -#ifdef CC_INTERP
    1.15    ResultTypeFinder rtf(sig);
    1.16 -  m->set_result_index(rtf.type());
    1.17 -#endif
    1.18 +  m->constMethod()->set_result_type(rtf.type());
    1.19    m->set_size_of_parameters(params);
    1.20    m->set_max_stack(max_stack);
    1.21    m->set_max_locals(params);

mercurial