Skip to content

Commit 9d080bb

Browse files
committed
[GR-67326] Allow types starting with $Proxy without being proxy classes
PullRequest: graal/21414
2 parents bc9da5b + 4c9d58a commit 9d080bb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

substratevm/mx.substratevm/mx_substratevm_benchmark.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,6 @@ def build_assertions(self, benchmark: str, is_gate: bool) -> List[str]:
854854
# We cannot enable assertions along with emitting a build report for layered images, due to GR-65751
855855
if self.stages_info.current_stage.is_layered():
856856
return []
857-
# We cannot enable assertions for Micronaut Pegasus Function due to an AssertionError (see GR-67326)
858-
if self._get_benchmark_config(benchmark)["app"] == "micronaut-pegasus-function":
859-
return []
860857
return super().build_assertions(benchmark, is_gate)
861858

862859
def rules(self, output, benchmarks, bmSuiteArgs) -> List[Rule]:

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/meta/HostedUniverse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ private static final class TypeComparator implements Comparator<HostedType> {
601601
private static Optional<HostedType[]> proxyType(HostedType type) {
602602
HostedType baseType = type.getBaseType();
603603
boolean isProxy = Proxy.isProxyClass(baseType.getJavaClass());
604-
assert isProxy == (baseType.toJavaName(false).startsWith("$Proxy") && !(type.getWrapped().getWrapped() instanceof BaseLayerType));
604+
assert !isProxy || (baseType.toJavaName(false).startsWith("$Proxy") && !(type.getWrapped().getWrapped() instanceof BaseLayerType));
605605
if (isProxy) {
606606
return Optional.of(baseType.getInterfaces());
607607
} else {

0 commit comments

Comments
 (0)