Skip to content

Commit 9229956

Browse files
authored
JDK8: java.lang.ClassCastException: com.sun.activation.registries.MailcapFile cannot be cast to jakarta.activation.MailcapRegistry (#11)
* JDK8: java.lang.ClassCastException: com.sun.activation.registries.MailcapFile cannot be cast to jakarta.activation.MailcapRegistry Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
1 parent 00c0a11 commit 9229956

18 files changed

Lines changed: 47 additions & 44 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ target/
22
*/target/
33
.m2/
44
.idea/
5+
.classpath
6+
.project
7+
.settings/
58

69
_site
710
www/.sass-cache

activation-registry/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!--
44
5-
Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
5+
Copyright (c) 2021, 2023 Oracle and/or its affiliates. All rights reserved.
66
77
This program and the accompanying materials are made available under the
88
terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -54,15 +54,15 @@
5454
</Require-Capability>
5555
<Provide-Capability><![CDATA[
5656
osgi.service;
57-
objectClass:List<String>="com.sun.activation.registries.MailcapRegistryProviderImpl";effective:=active,
57+
objectClass:List<String>="org.eclipse.angus.activation.MailcapRegistryProviderImpl";effective:=active,
5858
osgi.service;
59-
objectClass:List<String>="com.sun.activation.registries.MimeTypeRegistryProviderImpl";effective:=active,
59+
objectClass:List<String>="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl";effective:=active,
6060
osgi.serviceloader;
61-
osgi.serviceloader="com.sun.activation.registries.MailcapRegistryProviderImpl";
62-
register:="com.sun.activation.registries.MailcapRegistryProviderImpl",
61+
osgi.serviceloader="org.eclipse.angus.activation.MailcapRegistryProviderImpl";
62+
register:="org.eclipse.angus.activation.MailcapRegistryProviderImpl",
6363
osgi.serviceloader;
64-
osgi.serviceloader="com.sun.activation.registries.MimeTypeRegistryProviderImpl";
65-
register:="com.sun.activation.registries.MimeTypeRegistryProviderImpl"
64+
osgi.serviceloader="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl";
65+
register:="org.eclipse.angus.activation.MimeTypeRegistryProviderImpl"
6666
]]>
6767
</Provide-Capability>
6868
</instructions>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -11,13 +11,13 @@
1111
/**
1212
* Eclipse Angus - Activation provides implementation of Jakarta Activation Specification.
1313
*/
14-
module com.sun.activation.registries {
15-
exports com.sun.activation.registries;
14+
module org.eclipse.angus.activation {
15+
exports org.eclipse.angus.activation;
1616
requires java.logging;
1717
requires transitive jakarta.activation;
1818

1919
requires static org.graalvm.sdk;
2020

21-
provides jakarta.activation.spi.MailcapRegistryProvider with com.sun.activation.registries.MailcapRegistryProviderImpl;
22-
provides jakarta.activation.spi.MimeTypeRegistryProvider with com.sun.activation.registries.MimeTypeRegistryProviderImpl;
21+
provides jakarta.activation.spi.MailcapRegistryProvider with org.eclipse.angus.activation.MailcapRegistryProviderImpl;
22+
provides jakarta.activation.spi.MimeTypeRegistryProvider with org.eclipse.angus.activation.MimeTypeRegistryProviderImpl;
2323
}

activation-registry/src/main/java/com/sun/activation/registries/LogSupport.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/LogSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
import java.util.logging.Level;
1414
import java.util.logging.Logger;

activation-registry/src/main/java/com/sun/activation/registries/MailcapFile.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MailcapFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
import jakarta.activation.MailcapRegistry;
1414

activation-registry/src/main/java/com/sun/activation/registries/MailcapParseException.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MailcapParseException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
/**
1414
* A class to encapsulate Mailcap parsing related exceptions

activation-registry/src/main/java/com/sun/activation/registries/MailcapRegistryProviderImpl.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MailcapRegistryProviderImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
import jakarta.activation.MailcapRegistry;
1414
import jakarta.activation.spi.MailcapRegistryProvider;

activation-registry/src/main/java/com/sun/activation/registries/MailcapTokenizer.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MailcapTokenizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
/**
1414
* A tokenizer for strings in the form of "foo/bar; prop1=val1; ... ".

activation-registry/src/main/java/com/sun/activation/registries/MimeTypeFile.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MimeTypeFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
import jakarta.activation.MimeTypeEntry;
1414
import jakarta.activation.MimeTypeRegistry;

activation-registry/src/main/java/com/sun/activation/registries/MimeTypeRegistryProviderImpl.java renamed to activation-registry/src/main/java/org/eclipse/angus/activation/MimeTypeRegistryProviderImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2023 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -8,7 +8,7 @@
88
* SPDX-License-Identifier: BSD-3-Clause
99
*/
1010

11-
package com.sun.activation.registries;
11+
package org.eclipse.angus.activation;
1212

1313
import jakarta.activation.MimeTypeRegistry;
1414
import jakarta.activation.spi.MimeTypeRegistryProvider;

0 commit comments

Comments
 (0)