From bfe3c4fa8edada69eba151a76939374c79e9d2b85624699b580b427d0777417f Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 7 Oct 2024 20:44:18 +0000 Subject: [PATCH 1/2] Accepting request 1206164 from home:urbic:branches:Java:packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Upgrade to upstream version 3.26.2 * Changed + Move formatting workflows into separate file (PR #4480 by @johannescoetzee) + Exclude unavailable macos <-> java version combinations from github tests (PR #4479 by @johannescoetzee) * Fixed + Fixes #4526. Fix Node.PostOrderIterator for roots without children (PR #4538 by @ktul) + Add missing copyright notice to RecordPatternExpr.java (PR #4527 by @johannescoetzee) + Add missing type erasure in ClassOrInterfaceType.toDescriptor (PR #4522 by @johanneskloos) + Allow primitive types for patterns (PR #4506 by @johannescoetzee) + Fix project formatting (PR #4499 by @johannescoetzee) + Fix: issue 4492 resolve LambdaExpr has NullPointException (PR #4497 by @jlerbsc) + Fix: issue 2738 UnsolvedSymbolException while trying to ResolvedMethodDeclaration from MethodCallExpr (PR #4482 by @jlerbsc) * Developer Changes + fix(deps): update byte-buddy.version to v1.15.1 (PR #4547 by @renovate[bot]) + fix(deps): update byte-buddy.version to v1.15.0 (PR #4543 by @renovate[bot]) + fix(deps): update dependency com.google.guava:guava to v33.3.0-jre (PR #4532 by @renovate[bot]) + fix(deps): update dependency net.bytebuddy:byte-buddy-agent to v1.14.19 (PR #4531 by @renovate[bot]) + chore(deps): update junit5 monorepo to v5.11.0 (PR #4528 by @renovate[bot]) + fix(deps): update byte-buddy.version to v1.14.18 (PR #4493 by @renovate[bot]) + chore(deps): update actions/checkout action to v4.1.7 (PR #4486 by @renovate[bot]) + chore(deps): update actions/checkout action to v4.0.0 (PR #4485 by @renovate[bot]) + chore(deps): update junit5 monorepo to v5.10.3 (PR #4483 by @renovate[bot]) * Uncategorised + Add better instructions for re-formatting the project (PR #4540 by @johannescoetzee) - Upgrade to upstream version 3.26.1 * Added + Fix record declarations nested in annotation declarations (PR #4460 by @johannescoetzee) * Changed + Format code with spotless (PR #4465 by @johannescoetzee) + Simplifying the search for types in compilation unit (PR #4459 by @jlerbsc) + Add spotless plugin configuration (PR #4409 by @johannescoetzee) * Fixed + Disable spotless ratcheting and fix formatting (PR #4478 by @johannescoetzee) + Fix: issue 4450 Endless recursion (-> StackOverflow) with cyclic static references (PR #4477 by @jlerbsc) + Fix: issue 4399 MethodCallExpr inside lambda in assignment expression cannot be resolved (PR #4462 by @jlerbsc) + Fix crash on SwitchExpr entries if tokens are not stored (PR #4461 by @johannescoetzee) + Fix lookahead for pattern expression in switch entries [Issue 4455] (PR #4458 by @johannescoetzee) * Developer Changes + Automatically format code after codegen and validate with a github action (PR #4468 by @johannescoetzee) + Add git-blame-ignore-revs file to ignore the reformatting commit in git blame (PR #4466 by @johannescoetzee) * Uncategorised + Add link to the guide to adding nodes in CONTRIBUTING.md (PR #4453 by @johannescoetzee) - Upgrade to upstream version 3.26.0 * Added + [JEP 440] Add support for record patterns (PR #4432 by @johannescoetzee) + PatternExpr -> TypePatternExpr refactor in preparation for record pattern implementation (PR #4387 by @johannescoetzee) + [JEP441] Add support for switch pattern matching (PR #4375 by @johannescoetzee) + Add support for case null, default in switch and fix concrete syntax model for new switch syntax (PR #4364 by @johannescoetzee) * Changed + Fixes SYSTEM_EOL warnings (PR #4412 by @matthieu-vergne) + Refact: Adds a find node by range method in Node class (PR #4377 by @jlerbsc) * Fixed + Fix: issue 3277 StackOverflow issue while parse MethodCallExpr/FieldAccessExpr, their ancestor/child node is ObjectCreation expression which contain .new (PR #4447 by @jlerbsc) + Fix expressions in the body of switch expression entries (Issue 4440) (PR #4446 by @johannescoetzee) + Fix: issue 4442 LexicalPreservingPrinter does not support unexpected token (PR #4444 by @jlerbsc) + Fix: issue 3100 JavaSymbolSolver unable to resolve an inner class defined in a base class (PR #4441 by @jlerbsc) + Fix: 4330 Method 'forEach' cannot be resolved in certain context (PR #4436 by @jlerbsc) + Fix: 'permits' and 'sealed' Contextual keyworlds usage (PR #4434 by @jlerbsc) + Fixes an error in jbehave tests when they are run in a Windows os (PR #4433 by @jlerbsc) + Make resolution of implements and extends types start with the parent… (PR #4430 by @eldapiiro) + Fix: solveMethodAsUsage() for implicit method ::values() (PR #4424 by @Kimmmey) + Fix: ::values() is a static method, was not static (PR #4417 by @Kimmmey) + Fix missed generated code from PatternExpr refactor (PR #4414 by @johannescoetzee) + Fixes #4410 (PR #4411 by @matthieu-vergne) + Fix issue 2368 Unable to calculate the type of a varargs parameter (PR #4402 by @jlerbsc) + Fix: Fixes the version currently supported by Javaparser. (PR #4393 by @jlerbsc) + ?? make mvnw command runnable by copy-pasting (PR #4382 by @cravingPixels) * Developer Changes + chore(deps): bump actions/checkout from 4.1.4 to 4.1.5 (PR #4415 by @dependabot[bot]) + Minor refactoring on Concrete syntax model (PR #4405 by @jlerbsc) + chore(deps): bump actions/checkout from 4.1.2 to 4.1.3 (PR #4381 by @dependabot[bot]) * Uncategorised + Improve unit test on generic (PR #4407 by @jlerbsc) OBS-URL: https://build.opensuse.org/request/show/1206164 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=40 --- javaparser-parent-3.25.10.tar.gz | 3 - javaparser-parent-3.26.2.tar.gz | 3 + javaparser.changes | 132 +++++++++++++++++++++++++++++++ javaparser.spec | 2 +- 4 files changed, 136 insertions(+), 4 deletions(-) delete mode 100644 javaparser-parent-3.25.10.tar.gz create mode 100644 javaparser-parent-3.26.2.tar.gz diff --git a/javaparser-parent-3.25.10.tar.gz b/javaparser-parent-3.25.10.tar.gz deleted file mode 100644 index 48d6660..0000000 --- a/javaparser-parent-3.25.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20e1c95f9fcd4037612ca1b4cf3026e1b75bc24160b7b9089657153616e2784f -size 18435318 diff --git a/javaparser-parent-3.26.2.tar.gz b/javaparser-parent-3.26.2.tar.gz new file mode 100644 index 0000000..fc4c62f --- /dev/null +++ b/javaparser-parent-3.26.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a5291f3040c36ede7f3f89c7a563670ca1914ab2006e28f158c07ac54fa64e5 +size 18492822 diff --git a/javaparser.changes b/javaparser.changes index bb1ed18..def4d53 100644 --- a/javaparser.changes +++ b/javaparser.changes @@ -1,3 +1,135 @@ +------------------------------------------------------------------- +Mon Oct 7 18:56:00 UTC 2024 - Anton Shvetz + +- Upgrade to upstream version 3.26.2 + * Changed + + Move formatting workflows into separate file (PR #4480 by + @johannescoetzee) + + Exclude unavailable macos <-> java version combinations from + github tests (PR #4479 by @johannescoetzee) + * Fixed + + Fixes #4526. Fix Node.PostOrderIterator for roots without + children (PR #4538 by @ktul) + + Add missing copyright notice to RecordPatternExpr.java (PR + #4527 by @johannescoetzee) + + Add missing type erasure in ClassOrInterfaceType.toDescriptor + (PR #4522 by @johanneskloos) + + Allow primitive types for patterns (PR #4506 by + @johannescoetzee) + + Fix project formatting (PR #4499 by @johannescoetzee) + + Fix: issue 4492 resolve LambdaExpr has NullPointException (PR + #4497 by @jlerbsc) + + Fix: issue 2738 UnsolvedSymbolException while trying to + ResolvedMethodDeclaration from MethodCallExpr (PR #4482 by + @jlerbsc) + * Developer Changes + + fix(deps): update byte-buddy.version to v1.15.1 (PR #4547 by + @renovate[bot]) + + fix(deps): update byte-buddy.version to v1.15.0 (PR #4543 by + @renovate[bot]) + + fix(deps): update dependency com.google.guava:guava to + v33.3.0-jre (PR #4532 by @renovate[bot]) + + fix(deps): update dependency net.bytebuddy:byte-buddy-agent + to v1.14.19 (PR #4531 by @renovate[bot]) + + chore(deps): update junit5 monorepo to v5.11.0 (PR #4528 by + @renovate[bot]) + + fix(deps): update byte-buddy.version to v1.14.18 (PR #4493 by + @renovate[bot]) + + chore(deps): update actions/checkout action to v4.1.7 (PR + #4486 by @renovate[bot]) + + chore(deps): update actions/checkout action to v4.0.0 (PR + #4485 by @renovate[bot]) + + chore(deps): update junit5 monorepo to v5.10.3 (PR #4483 by + @renovate[bot]) + * Uncategorised + + Add better instructions for re-formatting the project (PR + #4540 by @johannescoetzee) +- Upgrade to upstream version 3.26.1 + * Added + + Fix record declarations nested in annotation declarations (PR + #4460 by @johannescoetzee) + * Changed + + Format code with spotless (PR #4465 by @johannescoetzee) + + Simplifying the search for types in compilation unit (PR + #4459 by @jlerbsc) + + Add spotless plugin configuration (PR #4409 by + @johannescoetzee) + * Fixed + + Disable spotless ratcheting and fix formatting (PR #4478 by + @johannescoetzee) + + Fix: issue 4450 Endless recursion (-> StackOverflow) with + cyclic static references (PR #4477 by @jlerbsc) + + Fix: issue 4399 MethodCallExpr inside lambda in assignment + expression cannot be resolved (PR #4462 by @jlerbsc) + + Fix crash on SwitchExpr entries if tokens are not stored (PR + #4461 by @johannescoetzee) + + Fix lookahead for pattern expression in switch entries [Issue + 4455] (PR #4458 by @johannescoetzee) + * Developer Changes + + Automatically format code after codegen and validate with a + github action (PR #4468 by @johannescoetzee) + + Add git-blame-ignore-revs file to ignore the reformatting + commit in git blame (PR #4466 by @johannescoetzee) + * Uncategorised + + Add link to the guide to adding nodes in CONTRIBUTING.md (PR + #4453 by @johannescoetzee) +- Upgrade to upstream version 3.26.0 + * Added + + [JEP 440] Add support for record patterns (PR #4432 by + @johannescoetzee) + + PatternExpr -> TypePatternExpr refactor in preparation for + record pattern implementation (PR #4387 by @johannescoetzee) + + [JEP441] Add support for switch pattern matching (PR #4375 by + @johannescoetzee) + + Add support for case null, default in switch and fix concrete + syntax model for new switch syntax (PR #4364 by + @johannescoetzee) + * Changed + + Fixes SYSTEM_EOL warnings (PR #4412 by @matthieu-vergne) + + Refact: Adds a find node by range method in Node class (PR + #4377 by @jlerbsc) + * Fixed + + Fix: issue 3277 StackOverflow issue while parse + MethodCallExpr/FieldAccessExpr, their ancestor/child node is + ObjectCreation expression which contain .new (PR #4447 by + @jlerbsc) + + Fix expressions in the body of switch expression entries + (Issue 4440) (PR #4446 by @johannescoetzee) + + Fix: issue 4442 LexicalPreservingPrinter does not support + unexpected token (PR #4444 by @jlerbsc) + + Fix: issue 3100 JavaSymbolSolver unable to resolve an inner + class defined in a base class (PR #4441 by @jlerbsc) + + Fix: 4330 Method 'forEach' cannot be resolved in certain + context (PR #4436 by @jlerbsc) + + Fix: 'permits' and 'sealed' Contextual keyworlds usage (PR + #4434 by @jlerbsc) + + Fixes an error in jbehave tests when they are run in a + Windows os (PR #4433 by @jlerbsc) + + Make resolution of implements and extends types start with + the parent… (PR #4430 by @eldapiiro) + + Fix: solveMethodAsUsage() for implicit method ::values() (PR + #4424 by @Kimmmey) + + Fix: ::values() is a static method, was not static (PR #4417 + by @Kimmmey) + + Fix missed generated code from PatternExpr refactor (PR #4414 + by @johannescoetzee) + + Fixes #4410 (PR #4411 by @matthieu-vergne) + + Fix issue 2368 Unable to calculate the type of a varargs + parameter (PR #4402 by @jlerbsc) + + Fix: Fixes the version currently supported by Javaparser. (PR + #4393 by @jlerbsc) + + ?? make mvnw command runnable by copy-pasting (PR #4382 by + @cravingPixels) + * Developer Changes + + chore(deps): bump actions/checkout from 4.1.4 to 4.1.5 (PR + #4415 by @dependabot[bot]) + + Minor refactoring on Concrete syntax model (PR #4405 by + @jlerbsc) + + chore(deps): bump actions/checkout from 4.1.2 to 4.1.3 (PR + #4381 by @dependabot[bot]) + * Uncategorised + + Improve unit test on generic (PR #4407 by @jlerbsc) + ------------------------------------------------------------------- Sun May 5 00:47:46 UTC 2024 - Anton Shvetz diff --git a/javaparser.spec b/javaparser.spec index b354fd6..033c752 100644 --- a/javaparser.spec +++ b/javaparser.spec @@ -17,7 +17,7 @@ Name: javaparser -Version: 3.25.10 +Version: 3.26.2 Release: 0 Summary: Java Parser and Abstract Syntax Tree for Java License: Apache-2.0 OR LGPL-3.0-or-later -- 2.51.1 From e77d7557f64f9e218f94e02713d28a0ded21e52c59d278dc97d8bc1ecee73770 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 1 May 2025 12:56:39 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=42 --- javaparser.changes | 5 +++++ javaparser.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/javaparser.changes b/javaparser.changes index def4d53..ebab4bd 100644 --- a/javaparser.changes +++ b/javaparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 1 12:55:27 UTC 2025 - Fridrich Strba + +- Explicitely declare jsr305 in build requires + ------------------------------------------------------------------- Mon Oct 7 18:56:00 UTC 2024 - Anton Shvetz diff --git a/javaparser.spec b/javaparser.spec index 033c752..1a0d208 100644 --- a/javaparser.spec +++ b/javaparser.spec @@ -1,7 +1,7 @@ # # spec file for package javaparser # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin) +BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(org.checkerframework:checker-qual) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) @@ -54,7 +55,8 @@ sed -i 's/\r//' readme.md %pom_remove_plugin -r :jacoco-maven-plugin %pom_remove_plugin :maven-source-plugin -%pom_add_dep org.checkerframework:checker-qual javaparser-symbol-solver-core +%pom_add_dep org.checkerframework:checker-qual::provided javaparser-symbol-solver-core +%pom_add_dep com.google.code.findbugs:jsr305::provided javaparser-symbol-solver-core # Compatibility alias %{mvn_alias} :javaparser-core com.google.code.javaparser:javaparser @@ -91,7 +93,6 @@ echo "-snapshot: SNAPSHOT" >> javaparser-core/bnd.bnd %build %{mvn_build} -f -- \ - -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ %if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} -Dmaven.compiler.release=8 \ %endif -- 2.51.1