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

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/seems to 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



Back to the top