Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Add maven.compiler.failOnWarning to gerrit jobs

 Shouldn't this appear on he main status page? No one is looking at the logs. Why is it not there?

Dani



From:        Roland Grunberg <rgrunber@xxxxxxxxxx>
To:        "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Date:        24.09.2019 19:50
Subject:        [EXTERNAL] Re: [jdt-dev] Add maven.compiler.failOnWarning to gerrit jobs
Sent by:        jdt-dev-bounces@xxxxxxxxxxx




On Tue, 2019-09-24 at 17:49 +0200, Daniel Megert wrote:
> Where did you see the warning for JDT Debug? Looking at
https://ci.eclipse.org/jdt/job/eclipse.jdt.debug-Gerrit/888/seemsto be free of warnings.

I'm seeing :

[INFO] --- tycho-compiler-plugin:1.5.0-SNAPSHOT:compile (default-compile) @ org.eclipse.jdt.debug ---
[INFO] Compiling 121 source files to /notnfs/git/eclipse.jdt.debug/org.eclipse.jdt.debug/target/jdi.jar-classes
[INFO] Compiling 352 source files to /notnfs/git/eclipse.jdt.debug/org.eclipse.jdt.debug/target/jdimodel.jar-classes
[WARNING] /notnfs/git/eclipse.jdt.debug/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/JavaHotCodeReplaceManager.java:[72]
   import org.eclipse.jdt.internal.core.util.Util;
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Discouraged access: The type 'Util' is not API (restriction on classpath entry '/notnfs/tmp/m2/p2/osgi/bundle/org.eclipse.jdt.core/3.20.0.v20190923-1401/org.eclipse.jdt.core-3.20.0.v20190923-1401.jar')
[WARNING] /notnfs/git/eclipse.jdt.debug/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/JavaHotCodeReplaceManager.java:[711]
   bytes = Util.getResourceContentsAsByteArray((IFile) resource);
           ^^^^
Discouraged access: The type 'Util' is not API (restriction on classpath entry '/notnfs/tmp/m2/p2/osgi/bundle/org.eclipse.jdt.core/3.20.0.v20190923-1401/org.eclipse.jdt.core-3.20.0.v20190923-1401.jar')
[WARNING] /notnfs/git/eclipse.jdt.debug/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/JavaHotCodeReplaceManager.java:[711]
   bytes = Util.getResourceContentsAsByteArray((IFile) resource);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
11 problems (11 warnings)
error: warnings found and -failOnWarning specified

Util and CompilerOptions references are causing the warnings.


--
Roland Grunberg

_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jdt-dev





Back to the top