https://defect.opensolaris.org/bz/show_bug.cgi?id=17978

           Summary: Compiler errors For ContextXml.java
    Classification: Development
           Product: opengrok
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P3
         Component: build
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


My IDE has a major compliant with the following:

>> line 54 - 70 in ContextXml.java

    private static Set<String> tokenFields = new HashSet<String>(3);

    static {
        tokenFields.add("full");
        tokenFields.add("refs");
        tokenFields.add("defs");
    }

    /**
     * Constructs a context generator
     * @param query the query to generate the result for
     * @param queryStrings map from field names to queries against the fields
     */
    public ContextXml(Query query, Map<String, String> queryStrings) {
        QueryMatchers qm = new QueryMatchers();
--->    m = qm.getMatchers(query, tokenFields);


<< 

At the "--->", i get a compile error
"The method getMatchers(Query, Map<String,Boolean>) in the type QueryMatchers
is not applicable for the arguments 
 (Query, Set<String>)"

In QueryMatchers class, it definately is expecting a Map object with the String
for the field name, and a flag/boolean for the sensitivity. Though in
ContextXml it is just passing the set of "full/refs/defs" strings. 

I'm going try to correct it to keep my development going, but I wanted to
document it.

-- 
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to