sszuev opened a new issue, #1990:
URL: https://github.com/apache/jena/issues/1990

   ### Version
   
   4.9.0
   
   ### What happened?
   
   Expect all modify operations are prohibited.
   ```java
   import org.apache.jena.graph.Graph;
   import org.apache.jena.graph.NodeFactory;
   import org.apache.jena.graph.Triple;
   import org.apache.jena.sparql.graph.GraphFactory;
   
   public class TmpUnmodifiableGraph {
   
       public static void main(String[] args) {
           Graph graph = new 
org.apache.jena.sparql.graph.UnmodifiableGraph(GraphFactory.createGraphMem());
           try {
               graph.add(Triple.create(NodeFactory.createURI("a"), 
NodeFactory.createURI("b"), NodeFactory.createURI("c")));
               throw new AssertionError();
           } catch (Exception e) {
               e.printStackTrace();
           }
       }
   }
   ```
   
   This is quite an old problem (also in 3.x.x)
   So, probably, this is by design. But strange.
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   None


-- 
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