Skip to content

Commit 4d227dd

Browse files
committed
Initial support for Expression Language 6.0
Signed-off-by: Arjan Tijms <[email protected]>
1 parent 22a696f commit 4d227dd

File tree

3 files changed

+27
-50
lines changed

3 files changed

+27
-50
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Eclipse Expressly
22

33

4-
Eclipse Expressly implements [Jakarta Expression Language](https://jakarta.ee/specifications/expression-language/4.0/jakarta-expression-language-spec-4.0.html), an expression language for Java applications.
4+
Eclipse Expressly implements [Jakarta Expression Language](https://jakarta.ee/specifications/expression-language/6.0/), an expression language for Java applications.
55

66
This project contains the Eclipse implementation. For the API see https://github.com/jakartaee/expression-language
77

@@ -13,7 +13,7 @@ Expressly can be built by executing the following from the project root:
1313

1414
``mvn clean package``
1515

16-
Expressly requires JDK 11 and Maven 3.6.0 to be build.
16+
Expressly requires JDK 17 and Maven 3.6.0 to be build.
1717

1818

1919
## Making Changes

pom.xml

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
4-
Copyright (c) 2022 Contributors to the Eclipse Foundation.
4+
Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation.
55
Copyright (c) 1997, 2021 Oracle and/or its affiliates and others.
66
All rights reserved.
77
@@ -19,19 +19,19 @@
1919
2020
-->
2121

22-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2323
<modelVersion>4.0.0</modelVersion>
2424

2525
<parent>
2626
<groupId>org.eclipse.ee4j</groupId>
2727
<artifactId>project</artifactId>
28-
<version>1.0.6</version>
28+
<version>1.0.9</version>
2929
<relativePath/>
3030
</parent>
3131

3232
<groupId>org.glassfish.expressly</groupId>
3333
<artifactId>expressly</artifactId>
34-
<version>5.0.0-SNAPSHOT</version>
34+
<version>6.0.0-SNAPSHOT</version>
3535

3636
<name>Eclipse Expressly</name>
3737
<description>Jakarta Expression Language Implementation</description>
@@ -47,9 +47,9 @@
4747
</developers>
4848
<contributors>
4949
<contributor>
50-
<name>Jakarta Expression Language Contributors</name>
51-
<email>el[email protected]</email>
52-
<url>https://github.com/eclipse-ee4j/el-ri/graphs/contributors</url>
50+
<name>Expressly Contributors</name>
51+
<email>expressly[email protected]</email>
52+
<url>https://github.com/eclipse-ee4j/expressly/graphs/contributors</url>
5353
</contributor>
5454
</contributors>
5555

@@ -64,21 +64,20 @@
6464
</mailingLists>
6565

6666
<scm>
67-
<connection>scm:git:https://github.com/eclipse-ee4j/expressly-ri.git</connection>
68-
<developerConnection>scm:git:ssh://[email protected]/eclipse-ee4j/expressly-ri.git</developerConnection>
69-
<url>https://github.com/eclipse-ee4j/expressly-ri</url>
70-
<tag>HEAD</tag>
67+
<connection>scm:git:https://github.com/eclipse-ee4j/expressly.git</connection>
68+
<developerConnection>scm:git:ssh://[email protected]/eclipse-ee4j/expressly.git</developerConnection>
69+
<url>https://github.com/eclipse-ee4j/expressly</url>
7170
</scm>
7271
<issueManagement>
7372
<system>github</system>
74-
<url>https://github.com/eclipse-ee4j/expressly-ri/issues</url>
73+
<url>https://github.com/eclipse-ee4j/expressly/issues</url>
7574
</issueManagement>
7675

7776
<dependencies>
7877
<dependency>
7978
<groupId>jakarta.el</groupId>
8079
<artifactId>jakarta.el-api</artifactId>
81-
<version>5.0.0</version>
80+
<version>6.0.0-M1</version>
8281
</dependency>
8382
<dependency>
8483
<groupId>junit</groupId>
@@ -109,9 +108,7 @@
109108
<plugins>
110109
<!-- Sets minimal Maven version -->
111110
<plugin>
112-
<groupId>org.apache.maven.plugins</groupId>
113111
<artifactId>maven-enforcer-plugin</artifactId>
114-
<version>3.0.0</version>
115112
<executions>
116113
<execution>
117114
<id>enforce-maven</id>
@@ -135,12 +132,14 @@
135132
<plugin>
136133
<groupId>org.apache.felix</groupId>
137134
<artifactId>maven-bundle-plugin</artifactId>
138-
<version>5.1.4</version>
135+
<version>5.1.9</version>
139136
<configuration>
140137
<supportIncrementalBuild>true</supportIncrementalBuild>
141138
<instructions>
142139
<Bundle-SymbolicName>org.glassfish.expressly</Bundle-SymbolicName>
143140
<_include>-osgi.bundle</_include>
141+
<_noimportjava>true</_noimportjava>
142+
<_runee>JavaSE-17</_runee>
144143
</instructions>
145144
</configuration>
146145
<executions>
@@ -156,17 +155,15 @@
156155

157156
<!-- Adds the manifest file created by the org.apache.felix:maven-bundle-plugin -->
158157
<plugin>
159-
<groupId>org.apache.maven.plugins</groupId>
160158
<artifactId>maven-jar-plugin</artifactId>
161-
<version>3.2.2</version>
162159
<configuration>
163160
<archive>
164161
<manifestFile>
165162
${project.build.outputDirectory}/META-INF/MANIFEST.MF
166163
</manifestFile>
167164
<manifestEntries>
168165
<Extension-Name>org.glassfish.expressly</Extension-Name>
169-
<Specification-Version>5.0</Specification-Version>
166+
<Specification-Version>6.0</Specification-Version>
170167
<Specification-Vendor>Eclipse Foundation</Specification-Vendor>
171168
<Implementation-Version>${project.version}</Implementation-Version>
172169
<Implementation-Vendor>${vendorName}</Implementation-Vendor>
@@ -176,22 +173,19 @@
176173
</configuration>
177174
</plugin>
178175

179-
<!-- Restricts the Java version to 11 -->
176+
<!-- Restricts the Java version to 17 -->
180177
<plugin>
181-
<groupId>org.apache.maven.plugins</groupId>
182178
<artifactId>maven-compiler-plugin</artifactId>
183-
<version>3.10.1</version>
179+
<version>3.11.0</version>
184180
<configuration>
185-
<release>11</release>
181+
<release>17</release>
186182
<compilerArgument>-Xlint:unchecked</compilerArgument>
187183
</configuration>
188184
</plugin>
189185

190186
<!-- Create Javadoc for API jar -->
191187
<plugin>
192-
<groupId>org.apache.maven.plugins</groupId>
193188
<artifactId>maven-javadoc-plugin</artifactId>
194-
<version>3.3.1</version>
195189
<executions>
196190
<execution>
197191
<id>attach-javadocs</id>
@@ -209,8 +203,8 @@
209203
</group>
210204
</groups>
211205
<bottom><![CDATA[
212-
Comments to: <a href="mailto:el[email protected]">el[email protected]</a>.<br>
213-
Copyright &#169; 2018, 2022 Eclipse Foundation. All rights reserved.<br>
206+
Comments to: <a href="mailto:expressly[email protected]">expressly[email protected]</a>.<br>
207+
Copyright &#169; 2018, 2023 Eclipse Foundation. All rights reserved.<br>
214208
Use is subject to <a href="http://www.eclipse.org/legal/epl-2.0" target="_top">license terms</a>.]]>
215209
</bottom>
216210
</configuration>
@@ -222,21 +216,11 @@ Use is subject to <a href="http://www.eclipse.org/legal/epl-2.0" target="_top">l
222216
<version>2.6</version> <executions> <execution> <id>jjtree-javacc</id> <goals> <goal>jjtree-javacc</goal> </goals> <configuration> <sourceDirectory>src/main/java/com/sun/el/parser</sourceDirectory>
223217
<outputDirectory>src/main/java/com/sun/el/parser</outputDirectory> </configuration> </execution> </executions> </plugin> -->
224218

225-
<plugin>
226-
<groupId>org.apache.maven.plugins</groupId>
227-
<artifactId>maven-release-plugin</artifactId>
228-
<configuration>
229-
<mavenExecutorId>forked-path</mavenExecutorId>
230-
<useReleaseProfile>false</useReleaseProfile>
231-
<arguments>${release.arguments}</arguments>
232-
</configuration>
233-
</plugin>
234-
235219
<plugin>
236220
<artifactId>maven-surefire-plugin</artifactId>
237-
<version>3.0.0-M5</version>
221+
<version>3.2.2</version>
238222
<configuration>
239-
<forkMode>never</forkMode>
223+
<forkCount>1</forkCount>
240224
</configuration>
241225
</plugin>
242226
</plugins>

src/main/java/org/glassfish/expressly/stream/StreamELResolver.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@
1717

1818
package org.glassfish.expressly.stream;
1919

20-
import java.beans.FeatureDescriptor;
20+
import jakarta.el.ELContext;
21+
import jakarta.el.ELResolver;
2122
import java.lang.reflect.Array;
2223
import java.util.Collection;
2324
import java.util.Iterator;
2425

25-
import jakarta.el.ELContext;
26-
import jakarta.el.ELResolver;
27-
2826
/*
2927
* This ELResolver intercepts method calls to a Collections, to provide
3028
* support for collection operations.
@@ -105,11 +103,6 @@ public boolean isReadOnly(ELContext context, Object base, Object property) {
105103
return false;
106104
}
107105

108-
@Override
109-
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
110-
return null;
111-
}
112-
113106
@Override
114107
public Class<?> getCommonPropertyType(ELContext context, Object base) {
115108
return String.class;

0 commit comments

Comments
 (0)