Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java @ 24222:a86e69d2d92e
ClassNotFoundException thrown by CompilerToVM.lookupType() should be converted to a LinkageError (JDK-8186459)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 18 Aug 2017 21:16:58 +0200 |
parents | 26a414946c56 |
children | 1f8fa81f0c7d |
comparison
equal
deleted
inserted
replaced
24221:f32391b837d5 | 24222:a86e69d2d92e |
---|---|
154 * @param resolve force resolution to a {@link ResolvedJavaType}. If true, this method will | 154 * @param resolve force resolution to a {@link ResolvedJavaType}. If true, this method will |
155 * either return a {@link ResolvedJavaType} or throw an exception | 155 * either return a {@link ResolvedJavaType} or throw an exception |
156 * @return the type for {@code name} or 0 if resolution failed and {@code resolve == false} | 156 * @return the type for {@code name} or 0 if resolution failed and {@code resolve == false} |
157 * @throws LinkageError if {@code resolve == true} and the resolution failed | 157 * @throws LinkageError if {@code resolve == true} and the resolution failed |
158 */ | 158 */ |
159 native HotSpotResolvedObjectTypeImpl lookupType(String name, Class<?> accessingClass, boolean resolve); | 159 native HotSpotResolvedObjectTypeImpl lookupType(String name, Class<?> accessingClass, boolean resolve) throws ClassNotFoundException; |
160 | 160 |
161 /** | 161 /** |
162 * Resolves the entry at index {@code cpi} in {@code constantPool} to an object. | 162 * Resolves the entry at index {@code cpi} in {@code constantPool} to an object. |
163 * | 163 * |
164 * The behavior of this method is undefined if {@code cpi} does not denote one of the following | 164 * The behavior of this method is undefined if {@code cpi} does not denote one of the following |