Skip to content

Commit d47c669

Browse files
authored
Merge pull request #168 from smillst/updating-javaparser-parent-3.27.1
Update to javaparser 3.27.1
2 parents b631fe9 + a867f5c commit d47c669

File tree

93 files changed

+2384
-488
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2384
-488
lines changed

.github/workflows/create_github_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4.2.2
16+
uses: actions/checkout@v5.0.0
1717

1818
- name: Create Release
1919
id: create_release

.github/workflows/formatting_check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Checkout latest code
34-
uses: actions/checkout@v4.2.2
34+
uses: actions/checkout@v5.0.0
3535
with:
3636
fetch-depth: "0"
3737
- name: Set up JDK 11
38-
uses: actions/setup-java@v4
38+
uses: actions/setup-java@v5
3939
with:
4040
java-version: '11'
4141
distribution: 'zulu'
@@ -47,11 +47,11 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout latest code
50-
uses: actions/checkout@v4.2.2
50+
uses: actions/checkout@v5.0.0
5151
with:
5252
fetch-depth: "0"
5353
- name: Set up JDK 11
54-
uses: actions/setup-java@v4
54+
uses: actions/setup-java@v5
5555
with:
5656
java-version: '11'
5757
distribution: 'zulu'

.github/workflows/maven_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
steps:
5959
## Checkout the current version of the code from the repo.
6060
- name: Checkout latest code
61-
uses: actions/checkout@v4.2.2
61+
uses: actions/checkout@v5.0.0
6262
with:
6363
fetch-depth: "0"
6464

6565
## Setup the specified version of Java (includes maven/gradle).
6666
- name: Set up JDK ${{ matrix.jdk }}
67-
uses: actions/setup-java@v4
67+
uses: actions/setup-java@v5
6868
with:
6969
distribution: 'zulu' # v2 requires explicitly stating the distribution - `zulu` and `adopt` supported at time of writing
7070
java-version: ${{ matrix.jdk }} # Use matrix to select which JDK level to use
@@ -97,7 +97,7 @@ jobs:
9797

9898

9999
- name: CodeCov - JavaParser Core
100-
uses: codecov/codecov-action@v5.4.0
100+
uses: codecov/codecov-action@v5.5.1
101101
timeout-minutes: 10
102102
with:
103103
files: javaparser-core-testing/target/site/jacoco/jacoco.xml,javaparser-core-testing-bdd/target/site/jacoco/jacoco.xml
@@ -107,7 +107,7 @@ jobs:
107107
env_vars: OS,JDK
108108

109109
- name: CodeCov - JavaParser Symbol Solver
110-
uses: codecov/codecov-action@v5.4.0
110+
uses: codecov/codecov-action@v5.5.1
111111
timeout-minutes: 10
112112
with:
113113
file: javaparser-symbol-solver-testing/target/site/jacoco/jacoco.xml

.github/workflows/prepare_release_changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515

1616
# Check out current repository
1717
- name: Fetch Sources
18-
uses: actions/checkout@v4.2.2
18+
uses: actions/checkout@v5.0.0
1919

2020
# Setup Java 11 environment for the next steps
2121
- name: Setup Java
22-
uses: actions/setup-java@v4
22+
uses: actions/setup-java@v5
2323
with:
2424
distribution: zulu
2525
java-version: 11
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
181
distributionType=only-script
19-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
2+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

changelog.md

Lines changed: 101 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
Next Release (Version 3.26.5-snapshot)
2+
Next Release (Version 3.27.2-snapshot)
33
--------------------------------------
4-
[issues resolved](https://github.com/javaparser/javaparser/milestone/212?closed=1)
4+
[issues resolved](https://github.com/javaparser/javaparser/milestone/214?closed=1)
55

66
### Added
77
### Changed
@@ -10,8 +10,105 @@ Next Release (Version 3.26.5-snapshot)
1010
### Fixed
1111
### Security
1212

13-
Next Release (Version 3.26.4)
14-
----------------------------
13+
Version 3.27.1
14+
--------------
15+
[issues resolved](https://github.com/javaparser/javaparser/milestone/213?closed=1)
16+
17+
### Changed
18+
19+
* fix: switch expression improvement (PR [#4823](https://github.com/javaparser/javaparser/pull/4823) by [@seokjun7410](https://github.com/seokjun7410))
20+
21+
### Fixed
22+
23+
* Fix: Adjusts the range limits of lambda expression parameters to ignore brackets. (PR [#4860](https://github.com/javaparser/javaparser/pull/4860) by [@jlerbsc](https://github.com/jlerbsc))
24+
* Fix issue 4846 (PR [#4855](https://github.com/javaparser/javaparser/pull/4855) by [@PiTheGuy](https://github.com/PiTheGuy))
25+
* Revert checkstyle plugin upgrade (PR [#4836](https://github.com/javaparser/javaparser/pull/4836) by [@jlerbsc](https://github.com/jlerbsc))
26+
* Fix: issue 4832 Resolving type of fully qualified varargs invocation throws IndexOutOfBoundsException (PR [#4835](https://github.com/javaparser/javaparser/pull/4835) by [@jlerbsc](https://github.com/jlerbsc))
27+
* Fix: Issue 4829 Infinite loop in DifferenceElementCalculator when calling setPermittedTypes (PR [#4834](https://github.com/javaparser/javaparser/pull/4834) by [@jlerbsc](https://github.com/jlerbsc))
28+
* XmlPrinter: fix duplicate attribute name in generated xml (PR [#4806](https://github.com/javaparser/javaparser/pull/4806) by [@sgqy](https://github.com/sgqy))
29+
* Use lambda parameter counts and block bodies for improved resolution (PR [#4796](https://github.com/javaparser/javaparser/pull/4796) by [@johannescoetzee](https://github.com/johannescoetzee))
30+
* Fix issue #4791 (PR [#4792](https://github.com/javaparser/javaparser/pull/4792) by [@bannmann](https://github.com/bannmann))
31+
32+
### Developer Changes
33+
34+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.51.1 (PR [#4862](https://github.com/javaparser/javaparser/pull/4862) by [@renovate[bot]](https://github.com/apps/renovate))
35+
* chore(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.12.0 (PR [#4843](https://github.com/javaparser/javaparser/pull/4843) by [@renovate[bot]](https://github.com/apps/renovate))
36+
* fix(deps): update dependency com.google.guava:guava to v33.5.0-jre (PR [#4839](https://github.com/javaparser/javaparser/pull/4839) by [@renovate[bot]](https://github.com/apps/renovate))
37+
* chore(deps): update codecov/codecov-action action to v5.5.1 (PR [#4827](https://github.com/javaparser/javaparser/pull/4827) by [@renovate[bot]](https://github.com/apps/renovate))
38+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.50.0 (PR [#4825](https://github.com/javaparser/javaparser/pull/4825) by [@renovate[bot]](https://github.com/apps/renovate))
39+
* chore(deps): update actions/setup-java action to v5 (PR [#4822](https://github.com/javaparser/javaparser/pull/4822) by [@renovate[bot]](https://github.com/apps/renovate))
40+
* chore(deps): update actions/checkout action to v5 (PR [#4811](https://github.com/javaparser/javaparser/pull/4811) by [@renovate[bot]](https://github.com/apps/renovate))
41+
* chore(deps): update dependency com.puppycrawl.tools:checkstyle to v11 (PR [#4808](https://github.com/javaparser/javaparser/pull/4808) by [@renovate[bot]](https://github.com/apps/renovate))
42+
* chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 (PR [#4701](https://github.com/javaparser/javaparser/pull/4701) by [@renovate[bot]](https://github.com/apps/renovate))
43+
44+
### Uncategorised
45+
46+
* Improves documentation on LexicalPreservingPrinter (PR [#4820](https://github.com/javaparser/javaparser/pull/4820) by [@jlerbsc](https://github.com/jlerbsc))
47+
* Improves documentation on the raw langage level (PR [#4819](https://github.com/javaparser/javaparser/pull/4819) by [@jlerbsc](https://github.com/jlerbsc))
48+
* Fix javadoc of Name class (PR [#4789](https://github.com/javaparser/javaparser/pull/4789) by [@bannmann](https://github.com/bannmann))
49+
* Fix NormalAnnotationExpr Javadoc (PR [#4784](https://github.com/javaparser/javaparser/pull/4784) by [@bannmann](https://github.com/bannmann))
50+
51+
### :heart: Contributors
52+
53+
Thank You to all contributors who worked on this release!
54+
55+
* [@seokjun7410](https://github.com/seokjun7410)
56+
* [@bannmann](https://github.com/bannmann)
57+
* [@sgqy](https://github.com/sgqy)
58+
* [@johannescoetzee](https://github.com/johannescoetzee)
59+
* [@PiTheGuy](https://github.com/PiTheGuy)
60+
* [@jlerbsc](https://github.com/jlerbsc)
61+
62+
63+
Version 3.27.0
64+
--------------
65+
[issues resolved](https://github.com/javaparser/javaparser/milestone/212?closed=1)
66+
67+
### Developer Changes
68+
69+
* fix(deps): update dependency org.junit:junit-bom to v5.13.1 (PR [#4775](https://github.com/javaparser/javaparser/pull/4775) by [@renovate[bot]](https://github.com/apps/renovate))
70+
* chore(deps): update dependency maven to v3.9.10 (PR [#4774](https://github.com/javaparser/javaparser/pull/4774) by [@renovate[bot]](https://github.com/apps/renovate))
71+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.49.4 (PR [#4770](https://github.com/javaparser/javaparser/pull/4770) by [@renovate[bot]](https://github.com/apps/renovate))
72+
* fix(deps): update dependency org.junit:junit-bom to v5.13.0 (PR [#4766](https://github.com/javaparser/javaparser/pull/4766) by [@renovate[bot]](https://github.com/apps/renovate))
73+
* chore(deps): update codecov/codecov-action action to v5.4.3 (PR [#4755](https://github.com/javaparser/javaparser/pull/4755) by [@renovate[bot]](https://github.com/apps/renovate))
74+
* fix(deps): update dependency org.checkerframework:checker-qual to v3.49.3 (PR [#4745](https://github.com/javaparser/javaparser/pull/4745) by [@renovate[bot]](https://github.com/apps/renovate))
75+
* chore(deps): update codecov/codecov-action action to v5.4.2 (PR [#4731](https://github.com/javaparser/javaparser/pull/4731) by [@renovate[bot]](https://github.com/apps/renovate))
76+
* fix(deps): update dependency org.junit:junit-bom to v5.12.2 (PR [#4728](https://github.com/javaparser/javaparser/pull/4728) by [@renovate[bot]](https://github.com/apps/renovate))
77+
* fix(deps): update dependency com.google.guava:guava to v33.4.7-jre (PR [#4719](https://github.com/javaparser/javaparser/pull/4719) by [@renovate[bot]](https://github.com/apps/renovate))
78+
79+
### Uncategorised
80+
81+
* Fix resolution for method refs used as varargs (PR [#4759](https://github.com/javaparser/javaparser/pull/4759) by [@johannescoetzee](https://github.com/johannescoetzee))
82+
* Fix IndexOutOfBoundsException resulting from empty varargs call as method usage (PR [#4754](https://github.com/javaparser/javaparser/pull/4754) by [@johannescoetzee](https://github.com/johannescoetzee))
83+
* Fix resolution of lambdas used as varargs (PR [#4752](https://github.com/javaparser/javaparser/pull/4752) by [@johannescoetzee](https://github.com/johannescoetzee))
84+
* Fix: issue 4747 Lexical preserving fails after replacing MarkerAnnotationExpr name (PR [#4748](https://github.com/javaparser/javaparser/pull/4748) by [@jlerbsc](https://github.com/jlerbsc))
85+
* Fix: issue 4503 Unable to find the method declaration corresponding to a method reference (PR [#4739](https://github.com/javaparser/javaparser/pull/4739) by [@jlerbsc](https://github.com/jlerbsc))
86+
* Fix issue 4724 Duplicate fields returned by JavaParserEnumDeclaration.getAllFields() (PR [#4735](https://github.com/javaparser/javaparser/pull/4735) by [@jlerbsc](https://github.com/jlerbsc))
87+
* Make some helper methods protected in DefaultPrettyPrinterVisitor (PR [#4729](https://github.com/javaparser/javaparser/pull/4729) by [@johanneskloos](https://github.com/johanneskloos))
88+
* Fix constructor resolution issue 4703 (PR [#4727](https://github.com/javaparser/javaparser/pull/4727) by [@johannescoetzee](https://github.com/johannescoetzee))
89+
* Fix MethodAmbiguityException for methods with varargs (PR [#4725](https://github.com/javaparser/javaparser/pull/4725) by [@johannescoetzee](https://github.com/johannescoetzee))
90+
* Fix range for cast expression with lambda child (PR [#4721](https://github.com/javaparser/javaparser/pull/4721) by [@johannescoetzee](https://github.com/johannescoetzee))
91+
* Add Javadoc to the various parts of the DefaultPrettyPrinterVisitor (PR [#4718](https://github.com/javaparser/javaparser/pull/4718) by [@johanneskloos](https://github.com/johanneskloos))
92+
* Make JarTypeSolver and ReflectionTypeSolver a bit more versatile. (PR [#4716](https://github.com/javaparser/javaparser/pull/4716) by [@johanneskloos](https://github.com/johanneskloos))
93+
* Fix formatting issues (PR [#4715](https://github.com/javaparser/javaparser/pull/4715) by [@jlerbsc](https://github.com/jlerbsc))
94+
* Fix Switch toString to LexicalPreservingPrinter when configured (PR [#4712](https://github.com/javaparser/javaparser/pull/4712) by [@jlerbsc](https://github.com/jlerbsc))
95+
* Fix: issue 4697 Updating the com.google.guava:guava dependency to v334.5-jre fails. (PR [#4711](https://github.com/javaparser/javaparser/pull/4711) by [@jlerbsc](https://github.com/jlerbsc))
96+
* Implement MethodResolutionCapability in JavassistRecordDeclaration (PR [#4709](https://github.com/javaparser/javaparser/pull/4709) by [@johanneskloos](https://github.com/johanneskloos))
97+
* Fix: issue 4707 Upgrading from junit 5.11.4 -> 5.12.1 causes junit exception (PR [#4708](https://github.com/javaparser/javaparser/pull/4708) by [@jlerbsc](https://github.com/jlerbsc))
98+
* Fix for #3710 by cutting off resolution loops involving object creation steps. (PR [#4704](https://github.com/javaparser/javaparser/pull/4704) by [@johanneskloos](https://github.com/johanneskloos))
99+
* [SECURITY] Fix Zip Slip Vulnerability (PR [#3684](https://github.com/javaparser/javaparser/pull/3684) by [@JLLeitschuh](https://github.com/JLLeitschuh))
100+
101+
### :heart: Contributors
102+
103+
Thank You to all contributors who worked on this release!
104+
105+
* [@johanneskloos](https://github.com/johanneskloos)
106+
* [@johannescoetzee](https://github.com/johannescoetzee)
107+
* [@jlerbsc](https://github.com/jlerbsc)
108+
* [@JLLeitschuh](https://github.com/JLLeitschuh)
109+
110+
Version 3.26.4
111+
--------------
15112
[issues resolved](https://github.com/javaparser/javaparser/milestone/211?closed=1)
16113

17114
### Developer Changes

javaparser-core-generators/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<parent>
44
<artifactId>javaparser-parent</artifactId>
55
<groupId>com.github.javaparser</groupId>
6-
<version>3.26.4</version>
6+
<version>3.27.1</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>javaparser-core-generators</artifactId>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<url>https://github.com/javaparser</url>
1113
<description>A code generator framework, and the generators for javaparser-core</description>
1214

1315
<dependencies>

javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2007-2010 Júlio Vilmar Gesser.
3-
* Copyright (C) 2011, 2013-2024 The JavaParser Team.
3+
* Copyright (C) 2011, 2013-2025 The JavaParser Team.
44
*
55
* This file is part of JavaParser.
66
*
@@ -109,7 +109,11 @@ private void generateSetter(
109109

110110
// Check if the new value is the same as the old value
111111
String returnValue = CodeUtils.castValue("this", setter.getType(), nodeMetaModel.getTypeName());
112-
body.addStatement(f("if (%s == this.%s) { return %s; }", name, name, returnValue));
112+
if (property.getType().equals(String.class)) {
113+
body.addStatement(f("if (%s.equals(this.%s)) { return %s; }", name, name, returnValue));
114+
} else {
115+
body.addStatement(f("if (%s == this.%s) { return %s; }", name, name, returnValue));
116+
}
113117

114118
body.addStatement(f("notifyPropertyChange(ObservableProperty.%s, this.%s, %s);", observableName, name, name));
115119
if (property.isNode()) {

javaparser-core-metamodel-generator/pom.xml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
<parent>
44
<artifactId>javaparser-parent</artifactId>
55
<groupId>com.github.javaparser</groupId>
6-
<version>3.26.4</version>
6+
<version>3.27.1</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>javaparser-core-metamodel-generator</artifactId>
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<url>https://github.com/javaparser</url>
1113
<description>The tool that generates the code in the javaparser-metamodel module</description>
1214

1315
<dependencies>
@@ -18,19 +20,6 @@
1820
</dependency>
1921
</dependencies>
2022

21-
<build>
22-
<plugins>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-deploy-plugin</artifactId>
26-
<configuration>
27-
<!-- no need to release this module -->
28-
<skip>true</skip>
29-
</configuration>
30-
</plugin>
31-
</plugins>
32-
</build>
33-
3423
<profiles>
3524
<profile>
3625
<id>run-generators</id>

javaparser-core-serialization/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
<parent>
33
<artifactId>javaparser-parent</artifactId>
44
<groupId>com.github.javaparser</groupId>
5-
<version>3.26.4</version>
5+
<version>3.27.1</version>
66
</parent>
77
<modelVersion>4.0.0</modelVersion>
88

99
<artifactId>javaparser-core-serialization</artifactId>
10+
<name>${project.groupId}:${project.artifactId}</name>
11+
<url>https://github.com/javaparser</url>
1012
<description>Serializers for the JavaParser AST.</description>
1113

1214
<licenses>

0 commit comments

Comments
 (0)