File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2020, 2020 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2020, 2022 , Oracle and/or its affiliates. All rights reserved.
33 * Copyright (c) 2020, 2020, Red Hat Inc. All rights reserved.
44 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55 *
3737import java .util .function .Consumer ;
3838import java .util .stream .Stream ;
3939
40+ import com .oracle .graal .pointsto .infrastructure .WrappedJavaType ;
4041import jdk .vm .ci .meta .JavaType ;
4142import org .graalvm .compiler .code .CompilationResult ;
4243import org .graalvm .compiler .code .SourceMapping ;
@@ -1061,10 +1062,16 @@ public Path cachePath() {
10611062
10621063 @ Override
10631064 public ResolvedJavaType ownerType () {
1065+ ResolvedJavaType result ;
10641066 if (method instanceof HostedMethod ) {
1065- return getDeclaringClass ((HostedMethod ) method , true );
1067+ result = getDeclaringClass ((HostedMethod ) method , true );
1068+ } else {
1069+ result = method .getDeclaringClass ();
1070+ }
1071+ if (result instanceof WrappedJavaType ) {
1072+ result = ((WrappedJavaType ) result ).getWrapped ();
10661073 }
1067- return method . getDeclaringClass () ;
1074+ return result ;
10681075 }
10691076
10701077 @ Override
You can’t perform that action at this time.
0 commit comments