src/share/vm/opto/parse2.cpp

changeset 4037
da91efe96a93
parent 3909
70862d781d01
child 4115
e626685e9f6c
     1.1 --- a/src/share/vm/opto/parse2.cpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/share/vm/opto/parse2.cpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1998, 2012, 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 @@ -1447,7 +1447,7 @@
    1.11                        NULL, tag.internal_name());
    1.12          break;
    1.13        }
    1.14 -      assert(constant.basic_type() != T_OBJECT || !constant.as_object()->is_klass(),
    1.15 +      assert(constant.basic_type() != T_OBJECT || constant.as_object()->is_instance(),
    1.16               "must be java_mirror of klass");
    1.17        bool pushed = push_constant(constant, true);
    1.18        guarantee(pushed, "must be possible to push this constant");

mercurial