User: ko5tik  
  Date: 02/02/24 10:19:30

  Modified:    src/xjavadoc XJavaDoc.java
  Log:
  resolved deadlok. acquire lock on source class before starting
  parser.
  
  Revision  Changes    Path
  1.16      +655 -654  xjavadoc/src/xjavadoc/XJavaDoc.java
  
  Index: XJavaDoc.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/XJavaDoc.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -w -r1.15 -r1.16
  --- XJavaDoc.java     24 Feb 2002 04:38:56 -0000      1.15
  +++ XJavaDoc.java     24 Feb 2002 18:19:30 -0000      1.16
  @@ -291,10 +291,11 @@
                SourceClass sourceClass = new SourceClass(null, qualifiedName, f);
   
                ParseThread parseThread = new ParseThread(sourceClass);
  -             parseThread.start();
                // We must wait here until the first part of the parsing is done.
                // we'll be notified by the parser when it's done
                synchronized (sourceClass.getParseLock()) {
  +                     parseThread.start();
  +
                        try {
                                sourceClass.getParseLock().wait();
                        } catch (InterruptedException e) {
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to