Uploaded image for project: 'JSword'
  1. JSword
  2. JS-188

OSISUtil bug in getStrongsNumbers, getReferences and getNotes

    Details

      Description

      On Apr 9, 2011, at 7:06 AM, Martin Denham wrote:

      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);

      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.

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              dmsmith DM Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: