equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
1039 */ |
1039 */ |
1040 processBatchedDisposes(); |
1040 processBatchedDisposes(); |
1041 } |
1041 } |
1042 |
1042 |
1043 Type findBootType(String signature) throws ClassNotLoadedException { |
1043 Type findBootType(String signature) throws ClassNotLoadedException { |
1044 List<ReferenceType> types = allClasses(); |
1044 List<ReferenceType> types = retrieveClassesBySignature(signature); |
1045 Iterator<ReferenceType> iter = types.iterator(); |
1045 Iterator<ReferenceType> iter = types.iterator(); |
1046 while (iter.hasNext()) { |
1046 while (iter.hasNext()) { |
1047 ReferenceType type = iter.next(); |
1047 ReferenceType type = iter.next(); |
1048 if ((type.classLoader() == null) && |
1048 if (type.classLoader() == null) { |
1049 (type.signature().equals(signature))) { |
|
1050 return type; |
1049 return type; |
1051 } |
1050 } |
1052 } |
1051 } |
1053 JNITypeParser parser = new JNITypeParser(signature); |
1052 JNITypeParser parser = new JNITypeParser(signature); |
1054 throw new ClassNotLoadedException(parser.typeName(), |
1053 throw new ClassNotLoadedException(parser.typeName(), |