[jsword-devel] [JIRA] Created: (JS-188) OSISUtil bug in getStrongsNumbers, getReferences and getNotes

DM Smith (JIRA) jira at crosswire.org
Sat Apr 9 18:59:06 MST 2011


OSISUtil bug in getStrongsNumbers, getReferences and getNotes
-------------------------------------------------------------

                 Key: JS-188
                 URL: http://www.crosswire.org/bugs/browse/JS-188
             Project: JSword
          Issue Type: Bug
          Components: o.c.jsword.util
    Affects Versions: 1.6.1
            Reporter: DM Smith
            Assignee: DM Smith
             Fix For: 1.6.1


On Apr 9, 2011, at 7:06 AM, Martin Denham wrote:
{quote}
        Key key = book.getKey("Gen 1:1");
        BookData data = new BookData(book, key);
        Element osis = data.getOsisFragment();
        
        String strongsNumbers = OSISUtil.getStrongsNumbers(osis);
        assertTrue("No Strongs in KJV", strongsNumbers.length()>0);
{quote}
The bug was in getStrongsNumbers, the second argument to getDeepContent was ...TITLE, but should have been ...W.
I'm pretty sure that this was introduced with the change of iteration to an enhanced for loop.
This was also a problem in OSISUtil.getNotes and OSISUtil.getReferences.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jsword-devel mailing list