Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4357

icu tools/ use forbidden apis

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0, 6.0
    • None
    • None
    • New

    Description

      I guess by default we dont validate stuff in modules' tools/
      but if you compile the ICU tools/ and then run validate:

      -check-forbidden-jdk-apis:
      [forbidden-apis] Reading API signatures: /home/rmuir/workspace/lucene-trunk/lucene/tools/forbiddenApis/executors.txt
      [forbidden-apis] Reading API signatures: /home/rmuir/workspace/lucene-trunk/lucene/tools/forbiddenApis/jdk-deprecated.txt
      [forbidden-apis] Reading API signatures: /home/rmuir/workspace/lucene-trunk/lucene/tools/forbiddenApis/jdk.txt
      [forbidden-apis] Loading classes to check...
      [forbidden-apis] Scanning for API signatures and dependencies...
      [forbidden-apis] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[])
      [forbidden-apis]   in org.apache.lucene.analysis.icu.GenerateUTR30DataFiles (GenerateUTR30DataFiles.java:255)
      [forbidden-apis] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[])
      [forbidden-apis]   in org.apache.lucene.analysis.icu.GenerateUTR30DataFiles (GenerateUTR30DataFiles.java:256)
      [forbidden-apis] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[])
      [forbidden-apis]   in org.apache.lucene.analysis.icu.GenerateUTR30DataFiles (GenerateUTR30DataFiles.java:261)
      [forbidden-apis] Forbidden method invocation: java.lang.String#format(java.lang.String,java.lang.Object[])
      [forbidden-apis]   in org.apache.lucene.analysis.icu.GenerateUTR30DataFiles (GenerateUTR30DataFiles.java:263)
      [forbidden-apis] Scanned 5235 (and 423 related) class file(s) for forbidden API invocations (in 1.35s), 4 error(s).
      

      Attachments

        1. LUCENE-4357.patch
          3 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: