From 6bd555ada0ec3db08a0f21e357636c6f276c356d Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Mon, 15 Jan 2024 17:41:02 +0000 Subject: [PATCH 01/10] Add a test for the new length property supported by ArrayElResolver --- .../arrayelresolver/ELClientIT.java | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/arrayelresolver/ELClientIT.java b/el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/arrayelresolver/ELClientIT.java index f686150ebf..5c31c58cd3 100644 --- a/el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/arrayelresolver/ELClientIT.java +++ b/el/src/main/java/com/sun/ts/tests/el/api/jakarta_el/arrayelresolver/ELClientIT.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates and others. + * Copyright (c) 2009, 2024 Oracle and/or its affiliates and others. * All rights reserved. * * This program and the accompanying materials are made available under the @@ -310,4 +310,34 @@ public void arrayELResolverCCETest() throws Exception { throw new Exception("Failed: No exception thrown."); } } + + + /* + * @testName: arrayELResolverLengthTest + * + * @test_Strategy: Verify that the length of an array is available as a read-only property. + */ + @Test + public void arrayELResolverLengthTest() throws Exception { + + boolean pass; + StringBuffer buf = new StringBuffer(); + String[] colors = { "red", "blue", "green" }; + + try { + ArrayELResolver arrayResolver = new ArrayELResolver(); + BareBonesELContext barebonesContext = new BareBonesELContext(); + ELContext context = barebonesContext.getELContext(); + + pass = ResolverTest.testELResolver(context, arrayResolver, colors, + "length", "3", buf, true); + } catch (Exception ex) { + throw new Exception(ex); + } + + if (!pass) { + throw new Exception(ELTestUtil.FAIL + buf.toString()); + } + logger.log(Logger.Level.TRACE, buf.toString()); + } } From dfb60b0d585b72f43d3dd426431aae11baeb7a2b Mon Sep 17 00:00:00 2001 From: Mark Thomas Date: Tue, 16 Jan 2024 11:46:27 +0000 Subject: [PATCH 02/10] Increment release target to 17 for EL TCK --- el/pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/el/pom.xml b/el/pom.xml index 1443d15b10..710456c2eb 100644 --- a/el/pom.xml +++ b/el/pom.xml @@ -1,7 +1,7 @@