Mercurial > hg > graal-compiler
diff src/share/vm/classfile/verificationType.hpp @ 17888:c4bc6b5c6f25
8038076: constraint on multianewarray instruction is not checked since class version 50.
Summary: No VerifiyError generated if multianewarray bytecode's array type descriptor was 1 dimension smaller than dimensions specified.
Reviewed-by: hseigel, ctornqvi, coleenp, kamg
author | lfoltan |
---|---|
date | Mon, 14 Apr 2014 10:13:03 -0400 |
parents | 4ee06e614636 |
children | 54bc75c144b0 |
line wrap: on
line diff
--- a/src/share/vm/classfile/verificationType.hpp Tue Apr 15 14:34:48 2014 -0700 +++ b/src/share/vm/classfile/verificationType.hpp Mon Apr 14 10:13:03 2014 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2014, 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 @@ -299,7 +299,7 @@ int dimensions() const { assert(is_array(), "Must be an array"); int index = 0; - while (name()->byte_at(index++) == '['); + while (name()->byte_at(index) == '[') index++; return index; }