Aklakan commented on issue #3993:
URL: https://github.com/apache/jena/issues/3993#issuecomment-4715825034

   ```
   if (priorTask != null && !priorTask.isTerminated()) {
       throw new RuntimeException("A spatial indexing task is already active 
for this dataset. Wait for completion or abort it.");
   }
   ```
   
   `TaskThread` extends `Thread` which has a package-private `isTerminated` 
method. `TaskThread` also implements `BasicTask` which declares the same method 
as public - this shouldn't work. Interestingly, (for me) the compiler does not 
complain with an error on the `TaskThread` class. The correct public method is 
`Thread.isAlive`. Probably the easy fix is to change `isTerminated` to 
`isAlive`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to