You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2017/07/31 15:30:33 UTC

isis git commit: ISIS-1551: takes protective copy of all object specs while iterating over.

Repository: isis
Updated Branches:
  refs/heads/master 18743523c -> 2102d7930


ISIS-1551: takes protective copy of all object specs while iterating over.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/2102d793
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/2102d793
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/2102d793

Branch: refs/heads/master
Commit: 2102d7930b273ebc5509ea82b9d8fb5b35d79c8e
Parents: 1874352
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Mon Jul 31 16:30:23 2017 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Mon Jul 31 16:30:23 2017 +0100

----------------------------------------------------------------------
 .../isis/core/runtime/system/session/IsisSessionFactory.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/2102d793/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactory.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactory.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactory.java
index 204546f..a2650b8 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactory.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/session/IsisSessionFactory.java
@@ -152,7 +152,9 @@ public class IsisSessionFactory implements ApplicationScopedComponent {
             for (Object service : copyOfServices) {
                 final String unused = titleService.titleOf(service);
             }
-            for (final ObjectSpecification objSpec : servicesInjector.getSpecificationLoader().allSpecifications()) {
+            final List<ObjectSpecification> objectSpecsCopy =
+                    Lists.newArrayList(servicesInjector.getSpecificationLoader().allSpecifications());
+            for (final ObjectSpecification objSpec : objectSpecsCopy) {
                 final Class<?> correspondingClass = objSpec.getCorrespondingClass();
                 if(correspondingClass.isEnum()) {
                     final Object[] enumConstants = correspondingClass.getEnumConstants();