You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@locus.apache.org on 2000/08/31 17:56:19 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/environment AbstractEnvironment.java

stefano     00/08/31 08:56:18

  Modified:    src/org/apache/cocoon/environment Tag: xml-cocoon2
                        AbstractEnvironment.java
  Log:
  no message
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +5 -2      xml-cocoon/src/org/apache/cocoon/environment/Attic/AbstractEnvironment.java
  
  Index: AbstractEnvironment.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/Attic/AbstractEnvironment.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- AbstractEnvironment.java	2000/08/31 14:56:33	1.1.2.2
  +++ AbstractEnvironment.java	2000/08/31 15:56:15	1.1.2.3
  @@ -34,7 +34,7 @@
       protected StringBuffer prefix = new StringBuffer();
   
       /** The View requested */
  -    protected String view = "";
  +    protected String view = null;
   
        /** The Context path */
       protected URL context = null;
  @@ -85,7 +85,10 @@
                   this.context = f.toURL();
               }
           } else {
  -            //FIXME: should we throw an error here ?
  +            throw new RuntimeException("The current URI (" 
  +                + uri + ") doesn't start with given prefix (" 
  +                + prefix + ")"
  +            );
           }
       }