[jboss-cvs] JBossAS SVN: r84217 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Feb 14 16:54:24 EST 2009


Author: alesj
Date: 2009-02-14 16:54:23 -0500 (Sat, 14 Feb 2009)
New Revision: 84217

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
Log:
Pckg modifier.

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java	2009-02-14 21:16:33 UTC (rev 84216)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/zip/ZipEntryContext.java	2009-02-14 21:54:23 UTC (rev 84217)
@@ -98,6 +98,8 @@
  */
 public class ZipEntryContext extends AbstractVFSContext
 {
+   private boolean reset;
+
    /** Logger */
    private static final Logger log = Logger.getLogger(ZipEntryContext.class);
 
@@ -460,6 +462,11 @@
     */
    private synchronized void initEntries() throws IOException, URISyntaxException
    {
+      if (reset)
+      {
+         log.fatal("*************** Re-init " + getName());   
+      }
+
       boolean trace = log.isTraceEnabled();
 
       // we're using a two phase approach - we first select the relevant ones
@@ -627,6 +634,8 @@
     */
    void resetInitStatus()
    {
+      reset = true;
+
       EntryInfo rootInfo = entries.get("");
       entries = new ConcurrentHashMap<String, EntryInfo>();
       entries.put("", rootInfo);
@@ -799,6 +808,11 @@
       if (parent == null)
          throw new IllegalArgumentException("Null parent");
 
+      if (reset && name.contains("FaceletViewHandler"))
+      {
+         throw new RuntimeException("STACKTRACE");
+      }
+
       checkIfModified();
 
       String pathName = parent.getLocalPathName();
@@ -1073,7 +1087,7 @@
     * @param parent a parent
     * @param child a child
     */
-   public void addChild(AbstractVirtualFileHandler parent, AbstractVirtualFileHandler child)
+   void addChild(AbstractVirtualFileHandler parent, AbstractVirtualFileHandler child)
    {
       if (parent == null)
          throw new IllegalArgumentException("Null parent");




More information about the jboss-cvs-commits mailing list