Details
Description
Currently Namespaces uses internally a hierarchical structure to save a 'stack' of namespaces. This could and should be refactored to use e.g a proper stack (or a similar structure).
Issue Links
- relates to
-
CASTOR-3093
NullPointerException when turning on "org.exolab.castor.parser.namespaces"
-
I had begun working on this issue and currently I removed the previouse implementation that create it's own list a like collection of namespaces within single Namespaces class. Hovewer, as I understand this is not the actuall thing the was on Your mind?
So how would You like to remove the _parent references and replace them with some other stack structure?
Note: the attached patch already uses the Assert class attached here:
CASTOR-3138.