druid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] QiuMM edited a comment on issue #6371: Fix the forbidden apis check do not work issue
Date Mon, 24 Sep 2018 12:58:22 GMT
QiuMM edited a comment on issue #6371: Fix the forbidden apis check do not work issue
URL: https://github.com/apache/incubator-druid/pull/6371#issuecomment-423965000
 
 
   I have modified the execution phase and run `mvn clean compile`, then forbidden apis check
works fine, but I got this build error: 
   ```
   [INFO] Scanning for classes to check...
   [INFO] Reading bundled API signatures: jdk-unsafe-1.8
   [INFO] Reading bundled API signatures: jdk-system-out
   [INFO] Reading API signatures: /Users/qmm/work/github/incubator-druid/codestyle/joda-time-forbidden-apis.txt
   [INFO] Reading API signatures: /Users/qmm/work/github/incubator-druid/codestyle/druid-forbidden-apis.txt
   [INFO] Loading classes to check...
   [INFO] Scanning classes for violations...
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.PullDependencies (PullDependencies.java:467)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.validate.DruidJsonValidator (DruidJsonValidator.java:75)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.Main (Main.java:119)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.Main (Main.java:120)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.Main (Main.java:121)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.DumpSegment (DumpSegment.java:423)
   [ERROR] Forbidden field access: java.lang.System#out [prints to System.out; should only
be used for debugging, not in production code]
   [ERROR]   in org.apache.druid.cli.Version (Version.java:36)
   [ERROR] Scanned 74 (and 588 related) class file(s) for forbidden API invocations (in 0.34s),
7 error(s).
   ```
   
   There are some classes have to use `java.lang.System#out`, so I excluded these classes
from forbidden apis check.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Mime
View raw message