[pal-cvs 3225] [962] fixed JS2-862

svnno****@sourc***** svnno****@sourc*****
2008年 6月 5日 (木) 10:41:31 JST


Revision: 962
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=962
Author:   shinsuke
Date:     2008-06-05 10:41:31 +0900 (Thu, 05 Jun 2008)

Log Message:
-----------
fixed JS2-862

Modified Paths:
--------------
    pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/layout/impl/PortletPlacementContextImpl.java


-------------- next part --------------
Modified: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/layout/impl/PortletPlacementContextImpl.java
===================================================================
--- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/layout/impl/PortletPlacementContextImpl.java	2008-06-05 01:34:14 UTC (rev 961)
+++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/components/portal/src/java/org/apache/jetspeed/layout/impl/PortletPlacementContextImpl.java	2008-06-05 01:41:31 UTC (rev 962)
@@ -815,7 +815,7 @@
         if (fragment != null)
         {
             if (foundFragment == null
-                    || foundFragment.getId() != fragment.getId())
+                    || !foundFragment.getId().equals(fragment.getId()))
             {
                 sourceDesc = (sourceDesc == null ? "getFragmentAtExpectedCoordinate"
                         : sourceDesc);
@@ -852,6 +852,11 @@
                         out.append("row is out of bounds, ");
                     out.append("row-count=").append(colFragCount);
                 }
+                if (foundFragment != null)
+                {
+                    out.append(" - found fragment ").append(
+                            foundFragment.getId());
+                }
                 out.append(")");
                 throw new PortletPlacementException(out.toString());
             }


pal-cvs メーリングリストの案内