-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Use case:
A file A defines a parameter and imports a file B. File B uses this parameter inside an import path to import a file C.
File C changes the value of this parameter and imports file B again (cyclic import of file B).
File B now uses the modified parameter value to import another file D.
File D changes the value of the parameter again and imports file B again (again an cyclic import of file B).
File B now uses the modified parameter value to import another file E.
Now we have two possibilities:
- File E stops the sequence (no further imports).
- File E resets the parameter to the initial value and imports file B (again an cyclic import of file B).
This would cause an endless loop, because now again file C will be imported. And so on.
Results:
In booth cases a cyclic import happens that is detected by the JsonPreprocessor properly. But the list of affected files in the exception of the JsonPreprocessor is not correct.
This is covered by self test cases JPP_1165 and JPP_1166.
More details can be found in attached PDF.
CyclicImport.pdf
Metadata
Metadata
Assignees
Labels
Projects
Status