QDox
  1. QDox
  2. QDOX-58

ConcurrentModificationException thrown from JavaDocBuilder.search();

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Java API
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In JavaDocBuilderTest....

      public void testAllowsClassInterfacesToBeCheckedInSearchBlock() {
      // setup
      builder.addSource(new StringReader("class Y implements SomeInterface { }"));
      // execute
      List results = javaDocBuilder.search(new Searcher() {
      public boolean eval(JavaClass javaClass)

      { return javaClass.isA("SomeInterface"); }

      });
      // assert
      assertEquals(1, results.size());
      }

      Current result is this:

      java.util.ConcurrentModificationException
      at java.util.TreeMap$EntryIterator.nextEntry(TreeMap.java:1022)
      at java.util.TreeMap$KeyIterator.next(TreeMap.java:1047)
      at java.util.Collections$1.next(Collections.java:992)
      at com.thoughtworks.qdox.JavaDocBuilder.search(JavaDocBuilder.java:378)

        Activity

        Hide
        Mike Williams added a comment -

        Joe, I can't replicate the problem here, ie. the test you provide above doesn't fail for me (Linux, Sun J2SE 1.4.1_01-b01). What's your environment?

        There's no fixture element called "javaDocBuilder" in JavaDocBuilderTest ... I'm assuming you meant "builder"?

        Show
        Mike Williams added a comment - Joe, I can't replicate the problem here, ie. the test you provide above doesn't fail for me (Linux, Sun J2SE 1.4.1_01-b01). What's your environment? There's no fixture element called "javaDocBuilder" in JavaDocBuilderTest ... I'm assuming you meant "builder"?
        Mike Williams made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Cannot Reproduce [ 5 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Joe Walnes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: