portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util/template JetspeedLinkFactory.java
Date Tue, 14 May 2002 06:55:51 GMT
taylor      02/05/13 23:55:51

  Modified:    src/java/org/apache/jetspeed/util/template
                        JetspeedLinkFactory.java
  Log:
  Changed JetspeedLinkFactory.getInstance() from public to package access since it crashes
at run time when used in combination with DynamicURI, which requires rundata upon construction.
  There are unit tests which seem to work fine, so Im leaving package access in place.
  
  Example of failed usage:
  
  1. create a link with JetspeedLinkFactory.getInstance()
  2. make use of any of the DynamicURI-based methods in JetspeedLink
  3. you will receive a null pointer error
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedLinkFactory.java
  
  Index: JetspeedLinkFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/template/JetspeedLinkFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JetspeedLinkFactory.java	14 Apr 2002 16:49:09 -0000	1.2
  +++ JetspeedLinkFactory.java	14 May 2002 06:55:51 -0000	1.3
  @@ -93,7 +93,7 @@
        * @throws TurbineException by Turbine's pool service
        * @return JetspeedLink
        */
  -    public static JetspeedLink getInstance()
  +    static JetspeedLink getInstance()
       throws TurbineException
       {
           JetspeedLink jsLink = (JetspeedLink) TurbinePool.getInstance( JETSPEEDLINK_CLASSNAME);
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message