6
0
forked from pool/javaparser
Files
javaparser/javaparser.spec

113 lines
3.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package javaparser
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: javaparser
Accepting request 1206164 from home:urbic:branches:Java:packages - 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
2024-10-07 20:44:18 +00:00
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
Accepting request 1043021 from home:urbic:java - Upgrade to upstream version 3.24.9 * Highlights + Remove "executable" bit from code files (PR #3755 by @icmdaf) * Added + Created TypeSolverBuilder (PR #3421 by @4everTheOne) * Changed + Changing, in test classes, the initialization of the lexical preserva… (PR #3779 by @jlerbsc) + chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 (PR #3770 by @dependabot[bot]) + chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 (PR #3756 by @dependabot[bot]) * Fixed + Fix: #3195 Resolved methods in outer classes not inferred correcly (PR #3778 by @jlerbsc) + Fix: #3681 LineComment alwaysing trimming content (PR #3777 by @jlerbsc) + Fix: #3773 Replacing nodes causes error in lexical preserving printer… (PR #3776 by @jlerbsc) + Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … (PR #3775 by @jlerbsc) + Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved (PR #3768 by @abego) + Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments (PR #3766 by @jlerbsc) + Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter (PR #3765 by @jlerbsc) + Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… (PR #3764 by @jlerbsc) + Fix: #2137 ClassOrInterfaceDeclaration addMember using index (PR #3763 by @jlerbsc) + Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position (PR #3762 by @jlerbsc) + Fix: #3693 Removing modifiers from method declaration results in loss… (PR #3760 by @jlerbsc) + Fix: #3750 Lexical preserving corrupts source (PR #3759 by @jlerbsc) + Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… (PR #3758 by @jlerbsc) * Security + Remove "executable" bit from code files (PR #3755 by @icmdaf) - Add build dependency on mvn(org.checkerframework:checker-qual) - Upgrade to upstream version 3.24.8 * Added + [Fixes #3099] Added ability to solve type with a list of expected type arguments + [Suggestion] NonNull generator for parameters * Changed + Updated workflow to only run one job per PR + Remove or comment system.out.println statement in unit tests + Added Optional method in SymbolReference + Centralized management of symbol solver exceptions to prevent exception type Erasion * Fixed + Fix issue #1827 Issue resolving a constructor of a class using generics + Fix issue #3728 ParseProblemException + Updated Badge for Build and Coverage + Position + Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable + Implemented isReferenceType in ResolvedTypeDeclaration and isTypeParameter in ResolvedTypeParameterDeclaration * Developer Changes + chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 + Fix maven wrapper not found in generator scripts + chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 * Uncategorised + Change issue 1945 test to paramaterized + More unit tests for JavaToken and CodeGenerationUtils - Upgrade to upstream version 3.24.7 * Highlights + Issue #3415 * Changed + Refactoring - use of existing methods + Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept * Deprecated + Issue #3415 * Fixed + Fix for ReflectionAnnotationDeclaration getClassName() + Fix some yield expressions not recognized + Accept final in instanceof pattern + [Fix] Avoid test failure due to line separator differences on windows host + Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation + Fix issue #3678 Function accepts a configuration but it does not do anything - Upgrade to upstream version 3.24.3 * API or Behaviour Change + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Changed + Minor refactoring to manage check in range and use hasRange method in class CommentsInserter + Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) * Fixed + Fix documentation of JAVA_17 + Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account + Fix issue #3588 Modifier is removed when removing an annotation + Fix lambda generic types that are always resolved to the first type param + Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier + Default pretty printer should print inner-class receiver parameters on constructors + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Developer Changes + chore(deps): update actions/checkout action to v3.0.1 + official Apache Maven wrapper + chore(deps): update codecov/codecov-action action to v3 + chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 + chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 + chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 - Re-enable modules: javaparser-symbol-solver-{core,logic,model,testing} - Add build dependency on mvn(org.javassist:javassist) - Update summary and description - Upgrade to upstream version 3.24.2 * Fixes: + Adding constructor descriptor + Fix issue #3491 Method has a multidimensional arrays argument in jar file. when call the method throw UnsolvedSymbolException + Fix issue #3218 GetSourceRoots() does not return all source roots + Bug in ArrayCreationExpr constructors + Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException + Improve unit test for BlockStmtContextResolutionTest + Improve Conditional Operator resolution [JLS 15.25] + Fix issue #3526 Variable or FieldDeclaration is not resolved correctly when another variable with the same name is declared in the same block - Upgrade to the latest version 3.24.0 * A long list of fixes is to be found at https://github.com/ /javaparser/javaparser/blob/master/changelog.md * Upgrade needed to be able to upgrade jctools and make them not depend hard on Java 8 - Initial packaging of javaparser 3.3.5 OBS-URL: https://build.opensuse.org/request/show/1043021 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=14
2022-12-16 06:49:29 +00:00
Group: Development/Libraries/Java
URL: https://javaparser.org
Source0: https://github.com/javaparser/javaparser/archive/%{name}-parent-%{version}.tar.gz
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)
Accepting request 1043021 from home:urbic:java - Upgrade to upstream version 3.24.9 * Highlights + Remove "executable" bit from code files (PR #3755 by @icmdaf) * Added + Created TypeSolverBuilder (PR #3421 by @4everTheOne) * Changed + Changing, in test classes, the initialization of the lexical preserva… (PR #3779 by @jlerbsc) + chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 (PR #3770 by @dependabot[bot]) + chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 (PR #3756 by @dependabot[bot]) * Fixed + Fix: #3195 Resolved methods in outer classes not inferred correcly (PR #3778 by @jlerbsc) + Fix: #3681 LineComment alwaysing trimming content (PR #3777 by @jlerbsc) + Fix: #3773 Replacing nodes causes error in lexical preserving printer… (PR #3776 by @jlerbsc) + Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … (PR #3775 by @jlerbsc) + Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved (PR #3768 by @abego) + Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments (PR #3766 by @jlerbsc) + Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter (PR #3765 by @jlerbsc) + Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… (PR #3764 by @jlerbsc) + Fix: #2137 ClassOrInterfaceDeclaration addMember using index (PR #3763 by @jlerbsc) + Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position (PR #3762 by @jlerbsc) + Fix: #3693 Removing modifiers from method declaration results in loss… (PR #3760 by @jlerbsc) + Fix: #3750 Lexical preserving corrupts source (PR #3759 by @jlerbsc) + Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… (PR #3758 by @jlerbsc) * Security + Remove "executable" bit from code files (PR #3755 by @icmdaf) - Add build dependency on mvn(org.checkerframework:checker-qual) - Upgrade to upstream version 3.24.8 * Added + [Fixes #3099] Added ability to solve type with a list of expected type arguments + [Suggestion] NonNull generator for parameters * Changed + Updated workflow to only run one job per PR + Remove or comment system.out.println statement in unit tests + Added Optional method in SymbolReference + Centralized management of symbol solver exceptions to prevent exception type Erasion * Fixed + Fix issue #1827 Issue resolving a constructor of a class using generics + Fix issue #3728 ParseProblemException + Updated Badge for Build and Coverage + Position + Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable + Implemented isReferenceType in ResolvedTypeDeclaration and isTypeParameter in ResolvedTypeParameterDeclaration * Developer Changes + chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 + Fix maven wrapper not found in generator scripts + chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 * Uncategorised + Change issue 1945 test to paramaterized + More unit tests for JavaToken and CodeGenerationUtils - Upgrade to upstream version 3.24.7 * Highlights + Issue #3415 * Changed + Refactoring - use of existing methods + Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept * Deprecated + Issue #3415 * Fixed + Fix for ReflectionAnnotationDeclaration getClassName() + Fix some yield expressions not recognized + Accept final in instanceof pattern + [Fix] Avoid test failure due to line separator differences on windows host + Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation + Fix issue #3678 Function accepts a configuration but it does not do anything - Upgrade to upstream version 3.24.3 * API or Behaviour Change + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Changed + Minor refactoring to manage check in range and use hasRange method in class CommentsInserter + Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) * Fixed + Fix documentation of JAVA_17 + Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account + Fix issue #3588 Modifier is removed when removing an annotation + Fix lambda generic types that are always resolved to the first type param + Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier + Default pretty printer should print inner-class receiver parameters on constructors + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Developer Changes + chore(deps): update actions/checkout action to v3.0.1 + official Apache Maven wrapper + chore(deps): update codecov/codecov-action action to v3 + chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 + chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 + chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 - Re-enable modules: javaparser-symbol-solver-{core,logic,model,testing} - Add build dependency on mvn(org.javassist:javassist) - Update summary and description - Upgrade to upstream version 3.24.2 * Fixes: + Adding constructor descriptor + Fix issue #3491 Method has a multidimensional arrays argument in jar file. when call the method throw UnsolvedSymbolException + Fix issue #3218 GetSourceRoots() does not return all source roots + Bug in ArrayCreationExpr constructors + Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException + Improve unit test for BlockStmtContextResolutionTest + Improve Conditional Operator resolution [JLS 15.25] + Fix issue #3526 Variable or FieldDeclaration is not resolved correctly when another variable with the same name is declared in the same block - Upgrade to the latest version 3.24.0 * A long list of fixes is to be found at https://github.com/ /javaparser/javaparser/blob/master/changelog.md * Upgrade needed to be able to upgrade jctools and make them not depend hard on Java 8 - Initial packaging of javaparser 3.3.5 OBS-URL: https://build.opensuse.org/request/show/1043021 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=14
2022-12-16 06:49:29 +00:00
BuildRequires: mvn(org.checkerframework:checker-qual)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
Accepting request 1043021 from home:urbic:java - Upgrade to upstream version 3.24.9 * Highlights + Remove "executable" bit from code files (PR #3755 by @icmdaf) * Added + Created TypeSolverBuilder (PR #3421 by @4everTheOne) * Changed + Changing, in test classes, the initialization of the lexical preserva… (PR #3779 by @jlerbsc) + chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 (PR #3770 by @dependabot[bot]) + chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 (PR #3756 by @dependabot[bot]) * Fixed + Fix: #3195 Resolved methods in outer classes not inferred correcly (PR #3778 by @jlerbsc) + Fix: #3681 LineComment alwaysing trimming content (PR #3777 by @jlerbsc) + Fix: #3773 Replacing nodes causes error in lexical preserving printer… (PR #3776 by @jlerbsc) + Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … (PR #3775 by @jlerbsc) + Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved (PR #3768 by @abego) + Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments (PR #3766 by @jlerbsc) + Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter (PR #3765 by @jlerbsc) + Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… (PR #3764 by @jlerbsc) + Fix: #2137 ClassOrInterfaceDeclaration addMember using index (PR #3763 by @jlerbsc) + Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position (PR #3762 by @jlerbsc) + Fix: #3693 Removing modifiers from method declaration results in loss… (PR #3760 by @jlerbsc) + Fix: #3750 Lexical preserving corrupts source (PR #3759 by @jlerbsc) + Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… (PR #3758 by @jlerbsc) * Security + Remove "executable" bit from code files (PR #3755 by @icmdaf) - Add build dependency on mvn(org.checkerframework:checker-qual) - Upgrade to upstream version 3.24.8 * Added + [Fixes #3099] Added ability to solve type with a list of expected type arguments + [Suggestion] NonNull generator for parameters * Changed + Updated workflow to only run one job per PR + Remove or comment system.out.println statement in unit tests + Added Optional method in SymbolReference + Centralized management of symbol solver exceptions to prevent exception type Erasion * Fixed + Fix issue #1827 Issue resolving a constructor of a class using generics + Fix issue #3728 ParseProblemException + Updated Badge for Build and Coverage + Position + Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable + Implemented isReferenceType in ResolvedTypeDeclaration and isTypeParameter in ResolvedTypeParameterDeclaration * Developer Changes + chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 + Fix maven wrapper not found in generator scripts + chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 * Uncategorised + Change issue 1945 test to paramaterized + More unit tests for JavaToken and CodeGenerationUtils - Upgrade to upstream version 3.24.7 * Highlights + Issue #3415 * Changed + Refactoring - use of existing methods + Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept * Deprecated + Issue #3415 * Fixed + Fix for ReflectionAnnotationDeclaration getClassName() + Fix some yield expressions not recognized + Accept final in instanceof pattern + [Fix] Avoid test failure due to line separator differences on windows host + Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation + Fix issue #3678 Function accepts a configuration but it does not do anything - Upgrade to upstream version 3.24.3 * API or Behaviour Change + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Changed + Minor refactoring to manage check in range and use hasRange method in class CommentsInserter + Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) * Fixed + Fix documentation of JAVA_17 + Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account + Fix issue #3588 Modifier is removed when removing an annotation + Fix lambda generic types that are always resolved to the first type param + Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier + Default pretty printer should print inner-class receiver parameters on constructors + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Developer Changes + chore(deps): update actions/checkout action to v3.0.1 + official Apache Maven wrapper + chore(deps): update codecov/codecov-action action to v3 + chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 + chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 + chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 - Re-enable modules: javaparser-symbol-solver-{core,logic,model,testing} - Add build dependency on mvn(org.javassist:javassist) - Update summary and description - Upgrade to upstream version 3.24.2 * Fixes: + Adding constructor descriptor + Fix issue #3491 Method has a multidimensional arrays argument in jar file. when call the method throw UnsolvedSymbolException + Fix issue #3218 GetSourceRoots() does not return all source roots + Bug in ArrayCreationExpr constructors + Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException + Improve unit test for BlockStmtContextResolutionTest + Improve Conditional Operator resolution [JLS 15.25] + Fix issue #3526 Variable or FieldDeclaration is not resolved correctly when another variable with the same name is declared in the same block - Upgrade to the latest version 3.24.0 * A long list of fixes is to be found at https://github.com/ /javaparser/javaparser/blob/master/changelog.md * Upgrade needed to be able to upgrade jctools and make them not depend hard on Java 8 - Initial packaging of javaparser 3.3.5 OBS-URL: https://build.opensuse.org/request/show/1043021 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=14
2022-12-16 06:49:29 +00:00
BuildRequires: mvn(org.javassist:javassist)
BuildArch: noarch
%description
A set of libraries implementing a Java 1.0 - Java 17 Parser with advanced
analysis functionalities.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-parent-%{version}
sed -i 's/\r//' readme.md
# Remove plugins unnecessary for RPM builds
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin :maven-source-plugin
%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
Accepting request 1043021 from home:urbic:java - Upgrade to upstream version 3.24.9 * Highlights + Remove "executable" bit from code files (PR #3755 by @icmdaf) * Added + Created TypeSolverBuilder (PR #3421 by @4everTheOne) * Changed + Changing, in test classes, the initialization of the lexical preserva… (PR #3779 by @jlerbsc) + chore(deps): bump maven-dependency-plugin from 3.3.0 to 3.4.0 (PR #3770 by @dependabot[bot]) + chore(deps): bump maven-install-plugin from 3.0.1 to 3.1.0 (PR #3756 by @dependabot[bot]) * Fixed + Fix: #3195 Resolved methods in outer classes not inferred correcly (PR #3778 by @jlerbsc) + Fix: #3681 LineComment alwaysing trimming content (PR #3777 by @jlerbsc) + Fix: #3773 Replacing nodes causes error in lexical preserving printer… (PR #3776 by @jlerbsc) + Fix: #2517 Modifying some nodes with the lexicalPreservation enabled … (PR #3775 by @jlerbsc) + Fix: #3725 JavaParserFacade var type in for-each loop cannot be resolved (PR #3768 by @abego) + Fix: #3216 LexicalPreservingPrinter add Wrong indentation when removing comments (PR #3766 by @jlerbsc) + Fix: #3472 Line comment removal causes IllegalStateException with LexicalPreservingPrinter (PR #3765 by @jlerbsc) + Fix: #3441 LexicalPreservingPrinter prints wrong output with line com… (PR #3764 by @jlerbsc) + Fix: #2137 ClassOrInterfaceDeclaration addMember using index (PR #3763 by @jlerbsc) + Fix: #3761 Lexical preserving corrupts source when adding a modifier in first position (PR #3762 by @jlerbsc) + Fix: #3693 Removing modifiers from method declaration results in loss… (PR #3760 by @jlerbsc) + Fix: #3750 Lexical preserving corrupts source (PR #3759 by @jlerbsc) + Fix: Fix the indentation generated by the LexicalPreservingPrinter wh… (PR #3758 by @jlerbsc) * Security + Remove "executable" bit from code files (PR #3755 by @icmdaf) - Add build dependency on mvn(org.checkerframework:checker-qual) - Upgrade to upstream version 3.24.8 * Added + [Fixes #3099] Added ability to solve type with a list of expected type arguments + [Suggestion] NonNull generator for parameters * Changed + Updated workflow to only run one job per PR + Remove or comment system.out.println statement in unit tests + Added Optional method in SymbolReference + Centralized management of symbol solver exceptions to prevent exception type Erasion * Fixed + Fix issue #1827 Issue resolving a constructor of a class using generics + Fix issue #3728 ParseProblemException + Updated Badge for Build and Coverage + Position + Fix part of issue #3721 UnsupportedOperationException while trying to modify the type of a variable + Implemented isReferenceType in ResolvedTypeDeclaration and isTypeParameter in ResolvedTypeParameterDeclaration * Developer Changes + chore(deps): bump versions-maven-plugin from 2.12.0 to 2.13.0 + Fix maven wrapper not found in generator scripts + chore(deps): bump actions/checkout from 3.0.2 to 3.1.0 * Uncategorised + Change issue 1945 test to paramaterized + More unit tests for JavaToken and CodeGenerationUtils - Upgrade to upstream version 3.24.7 * Highlights + Issue #3415 * Changed + Refactoring - use of existing methods + Refactoring adding convenient methods to know if a DifferenceElement is added, removed or kept * Deprecated + Issue #3415 * Fixed + Fix for ReflectionAnnotationDeclaration getClassName() + Fix some yield expressions not recognized + Accept final in instanceof pattern + [Fix] Avoid test failure due to line separator differences on windows host + Fix issue #3700 Removing last statement with LexicalPreservingPrinter results in loss of indendation + Fix issue #3678 Function accepts a configuration but it does not do anything - Upgrade to upstream version 3.24.3 * API or Behaviour Change + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Changed + Minor refactoring to manage check in range and use hasRange method in class CommentsInserter + Renaming PACKAGE_PRIVATE to NONE (this refers to the discussion in the issue #2242) * Fixed + Fix documentation of JAVA_17 + Fix issue 3631 NameExpr.resolve() does not take end of inner block scopes into account + Fix issue #3588 Modifier is removed when removing an annotation + Fix lambda generic types that are always resolved to the first type param + Fix issue #3489 SourceRoot.tryToParse() fails if the root path ends with a directory that is not a java identifier + Default pretty printer should print inner-class receiver parameters on constructors + Issue #3405 thread safety of pre/postprocessors (incl. breaking change to Processor with pre/post processor methods). * Developer Changes + chore(deps): update actions/checkout action to v3.0.1 + official Apache Maven wrapper + chore(deps): update codecov/codecov-action action to v3 + chore(deps): update dependency org.jacoco:jacoco-maven-plugin to v0.8.8 + chore(deps): update dependency org.apache.maven.plugins:maven-clean-plugin to v3.2.0 + chore(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m6 - Re-enable modules: javaparser-symbol-solver-{core,logic,model,testing} - Add build dependency on mvn(org.javassist:javassist) - Update summary and description - Upgrade to upstream version 3.24.2 * Fixes: + Adding constructor descriptor + Fix issue #3491 Method has a multidimensional arrays argument in jar file. when call the method throw UnsolvedSymbolException + Fix issue #3218 GetSourceRoots() does not return all source roots + Bug in ArrayCreationExpr constructors + Fix issue 3440 Removing a node with LexicalPreservingPrinter causes UnsupportedOperationException + Improve unit test for BlockStmtContextResolutionTest + Improve Conditional Operator resolution [JLS 15.25] + Fix issue #3526 Variable or FieldDeclaration is not resolved correctly when another variable with the same name is declared in the same block - Upgrade to the latest version 3.24.0 * A long list of fixes is to be found at https://github.com/ /javaparser/javaparser/blob/master/changelog.md * Upgrade needed to be able to upgrade jctools and make them not depend hard on Java 8 - Initial packaging of javaparser 3.3.5 OBS-URL: https://build.opensuse.org/request/show/1043021 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javaparser?expand=0&rev=14
2022-12-16 06:49:29 +00:00
# Compatibility alias
%{mvn_alias} :javaparser-core com.google.code.javaparser:javaparser
# Fix javacc plugin name
sed -i \
-e 's/ph-javacc-maven-plugin/javacc-maven-plugin/' \
-e 's/com.helger.maven/org.codehaus.mojo/' \
javaparser-core/pom.xml
# This plugin is not packaged, so use maven-resources-plugin to accomplish the same thing
%pom_remove_plugin :templating-maven-plugin javaparser-core
%pom_xpath_inject "pom:build" "
<resources>
<resource>
<directory>src/main/java-templates</directory>
<filtering>true</filtering>
<targetPath>\${basedir}/src/main/java</targetPath>
</resource>
</resources>" javaparser-core
# Missing dep on jbehave for testing
%pom_disable_module javaparser-core-testing
%pom_disable_module javaparser-core-testing-bdd
# Only need to ship the core module
%pom_disable_module javaparser-core-generators
%pom_disable_module javaparser-core-metamodel-generator
%pom_disable_module javaparser-core-serialization
echo "-reproducible: true" >> javaparser-core/bnd.bnd
echo "-noextraheaders: true" >> javaparser-core/bnd.bnd
echo "-snapshot: SNAPSHOT" >> javaparser-core/bnd.bnd
%build
%{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc readme.md changelog.md
%license LICENSE LICENSE.APACHE LICENSE.GPL LICENSE.LGPL
%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE.APACHE LICENSE.GPL LICENSE.LGPL
%changelog