tcurdt / jdeb

This library provides an Ant task and a Maven plugin to create Debian packages from Java builds in a truly cross platform manner.
https://github.com/tcurdt/jdeb
Apache License 2.0
485 stars 264 forks source link

deal with and fix some warnings and deprecations #628

Closed tcurdt closed 3 months ago

tcurdt commented 4 months ago
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/utils/OutputTimestampResolver.java: Some input files use or override a deprecated API.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/utils/OutputTimestampResolver.java: Recompile with -Xlint:deprecation for details.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java: /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java uses unchecked or unsafe operations.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java: Recompile with -Xlint:unchecked for details.
arunsak04 commented 4 months ago

@tcurdt can you please check PR https://github.com/tcurdt/jdeb/pull/643

Dancan1471 commented 3 months ago
[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] Annotation processing is enabled because one or more processors were found
  on the class path. A future release of javac may disable annotation processing
  unless at least one processor is specified by name (-processor), or a search
  path is specified (--processor-path, --processor-module-path), or annotation
  processing is enabled explicitly (-proc:only, -proc:full).
  Use -Xlint:-options to suppress this message.
  Use -proc:none to disable annotation processing.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/utils/OutputTimestampResolver.java: Some input files use or override a deprecated API.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/utils/OutputTimestampResolver.java: Recompile with -Xlint:deprecation for details.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java: /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java uses unchecked or unsafe operations.
[INFO] /Users/tcurdt/Projects/jdeb/src/main/java/org/vafer/jdeb/maven/DebMojo.java: Recompile with -Xlint:unchecked for details.

Reinstall it and it will work fine

Dancan1471 commented 3 months ago

REINSTALL

arunsak04 commented 3 months ago

Okay, if it will work fine by reinstalling then you can close the issue

tcurdt commented 3 months ago

"reinstall" is not a fix.

inglepriyanka148867 commented 3 months ago
  1. Update Source and Target Versions: The warnings about source and target value 8 being obsolete suggest that you should update your source and target versions to a newer version. You can do this by setting the maven.compiler.source and maven.compiler.target properties in your Maven pom.xml file to a newer version. For example:

    11 11

    Replace 11 with the appropriate Java version you are targeting.

  2. Suppress Warnings about Obsolete Options: If you want to suppress warnings about obsolete options, you can use the -Xlint:-options option. You can add this option to the configuration in your Maven pom.xml file:

    org.apache.maven.plugins maven-compiler-plugin -Xlint:-options

  3. Check Deprecated APIs: The warnings about using or overriding a deprecated API indicate that some classes or methods in your codebase are using deprecated APIs. You should review these warnings and update your code to use non-deprecated alternatives. You can recompile with -Xlint:deprecation for more details on specific deprecated APIs.

  4. Unchecked or Unsafe Operations: The warnings about unchecked or unsafe operations in DebMojo.java suggest that there may be unchecked or unsafe operations such as raw types or unchecked casts in your code. You should review these warnings and refactor your code to use generics and type-safe operations wherever possible. Recompile with -Xlint:unchecked for more details on specific unchecked operations.

tcurdt commented 3 months ago

@inglepriyanka148867 Please don't use AI to comment. The issues needs to be fixed - not explained.

inglepriyanka148867 commented 3 months ago

I am sorry

On Tue, 16 Apr, 2024, 4:27 pm Torsten Curdt, @.***> wrote:

@inglepriyanka148867 https://github.com/inglepriyanka148867 Please don't use AI to comment. The issues needs to be fixed - not explained.

— Reply to this email directly, view it on GitHub https://github.com/tcurdt/jdeb/issues/628#issuecomment-2058812213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEK54ZJM2LYNQSJDJJEPCBTY5T7ZRAVCNFSM6AAAAABEDESJB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYHAYTEMRRGM . You are receiving this because you were mentioned.Message ID: @.***>

Erwin-Ny commented 3 months ago

Update the compiler

As90909w commented 3 months ago

so update ASDD file is active now? As I mean the compiler is computing properly?

tcurdt commented 3 months ago

should be fixed