File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/metadata Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -239,12 +239,6 @@ public void traceUnsafeAllocatedType(Class<?> clazz) {
239
239
public void traceProxyType (Class <?>[] interfaces ) {
240
240
List <String > interfaceNames = Arrays .stream (interfaces ).map (Class ::getTypeName ).toList ();
241
241
ProxyConfigurationTypeDescriptor descriptor = new ProxyConfigurationTypeDescriptor (interfaceNames );
242
- for (String interfaceName : interfaceNames ) {
243
- if (isInternal (interfaceName )) {
244
- debug ("proxy type not registered for reflection (uses an internal interface)" , descriptor );
245
- return ;
246
- }
247
- }
248
242
traceReflectionTypeImpl (descriptor );
249
243
}
250
244
@@ -257,6 +251,7 @@ public void traceProxyType(Class<?>[] interfaces) {
257
251
public ConfigurationType traceReflectionTypeImpl (ConfigurationTypeDescriptor typeDescriptor ) {
258
252
assert enabledAtRunTime ();
259
253
if (isInternal (typeDescriptor )) {
254
+ debug ("type not registered for reflection (uses an internal interface)" , typeDescriptor );
260
255
return null ;
261
256
}
262
257
ConfigurationSet configurationSet = getConfigurationSetForTracing ();
@@ -270,6 +265,12 @@ public ConfigurationType traceReflectionTypeImpl(ConfigurationTypeDescriptor typ
270
265
private static boolean isInternal (ConfigurationTypeDescriptor typeDescriptor ) {
271
266
if (typeDescriptor instanceof NamedConfigurationTypeDescriptor (String name )) {
272
267
return isInternal (name );
268
+ } else if (typeDescriptor instanceof ProxyConfigurationTypeDescriptor proxyType ) {
269
+ for (String interfaceName : proxyType .interfaceNames ()) {
270
+ if (isInternal (interfaceName )) {
271
+ return true ;
272
+ }
273
+ }
273
274
}
274
275
return false ;
275
276
}
You can’t perform that action at this time.
0 commit comments