Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-546

These classes (org.apache.xmlbeans.impl.store.Locale, org.apache.xmlbeans.impl.tool.BaseSchemaResourceManager and org.apache.xmlbeans.impl.tool.SchemaCodeGenerator) have bugs??

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 3.1.0
    • Version 5.0.1
    • None
    • None

    Description

      Is there a dead loop in the exit() method of class org.apache.xmlbeans.impl.store.Locale?

      public void exit()

      { // assert _numTempFramesLeft >= 0; //asserts computed frame fits between //0 and _tempFrames.length assert _numTempFramesLeft >= 0 && (_numTempFramesLeft <= _tempFrames.length - 1): " Temp frames mismanaged. Impossible stack frame. Unsynchronized: " + noSync(); int frame = _tempFrames.length - ++_numTempFramesLeft; while (_tempFrames[frame] != null) _tempFrames[frame].release(); }

      The process(String[], String[], boolean, boolean, boolean) method of class
      org.apache.xmlbeans.impl.tool.BaseSchemaResourceManager has a bug. Here's the code snippet for the fix:
      for (int i = 0; i < filenames.length; i++)

      { SchemaResource resource = (SchemaResource)_resourceForFilename.get(filenames[i]); if (resource != null) starterset.add(resource); }

      In the class org.apache.xmlbeans.impl.tool.SchemaCodeGenerator, does that thread not need to be started in the tryToDeleteLater(File) method?

      Attachments

        Activity

          People

            kiwiwings Andreas Beeker
            Xiao Yuan Xiao Yuan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m