You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/04/15 14:28:29 UTC
[isis] branch master updated: ISIS-2569: do not use
SpecLoader#loadSpecification(Class) - (9)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 4e69b35 ISIS-2569: do not use SpecLoader#loadSpecification(Class) - (9)
4e69b35 is described below
commit 4e69b35003d542eababefc07df3dd4fcada9b973
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Apr 15 16:27:38 2021 +0200
ISIS-2569: do not use SpecLoader#loadSpecification(Class) - (9)
... when outside the scope of initial spec loading (its optimized for
initial loading, skips introspecting members)
---
.../main/java/org/apache/isis/core/metamodel/spec/ManagedObjects.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ManagedObjects.java b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ManagedObjects.java
index c019ab8..0f0d861 100644
--- a/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ManagedObjects.java
+++ b/core/metamodel/src/main/java/org/apache/isis/core/metamodel/spec/ManagedObjects.java
@@ -317,8 +317,7 @@ public final class ManagedObjects {
val commonSuperClass = commonSuperClassFinder.getCommonSuperclass().orElse(null);
if(commonSuperClass!=null && commonSuperClass!=firstElement.getSpecification().getCorrespondingClass()) {
val specificationLoader = firstElementSpec.getMetaModelContext().getSpecificationLoader();
- val commonSpec = specificationLoader.loadSpecification(commonSuperClass);
- return Optional.of(commonSpec);
+ return specificationLoader.specForType(commonSuperClass);
}
return Optional.of(firstElementSpec);