Skip to content

Commit

Permalink
fix: Update to JDK21 - EXO-71474 - Meeds-io/MIPs#91 (#733)
Browse files Browse the repository at this point in the history
Remove usage of SecurityManager as it is deprecated for removal in jdk21
Remove also usage of classes
- SecurityHelper
- PrivilegedSystemHelper
- PrivilegedFileHelper
- SecureList
- SecureSet
- SecureCollections

These classes are here only to use securityManager, and as it is removed, it is no more necessary
  • Loading branch information
rdenarie authored May 22, 2024
1 parent d8e3055 commit ad4fa95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server-embedded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>@{argLine} --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED -Dchat.embeddedMongoDBVersion=6.0</argLine>
<argLine>@{surefire.argLine} -Dchat.embeddedMongoDBVersion=6.0</argLine>
</configuration>
</plugin>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.exoplatform.chat.services.RealTimeMessageService;
import org.exoplatform.chat.services.TokenService;
import org.exoplatform.chat.utils.PropertyManager;
import org.exoplatform.commons.utils.PrivilegedSystemHelper;
import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.container.PortalContainer;
import org.exoplatform.container.RootContainer;
Expand Down Expand Up @@ -223,7 +222,7 @@ public String getInitParameter(String name) {
public Enumeration<String> getInitParameterNames() {
if (configs == null) {
List<String> keys = new LinkedList<String>();
Properties props = PrivilegedSystemHelper.getProperties();
Properties props = System.getProperties();
int len = PREFIX.length();

for (Object key : props.keySet()) {
Expand Down

0 comments on commit ad4fa95

Please sign in to comment.