hi,

pls. see attached 'diff' output. i did the patch because 'jikes' was
throwing errors while compiling:

    [javac]    294.                     public Worker(int beanId,
SimpleEntityHome home, int loops) throws Exception {
    [javac]
<-->
    [javac] *** Error: Duplicate declaration of local variable "home".

could someone w/ cvs access pls. apply the patch?

tia,
    christian

-- 
Riege Software International GmbH         Phone: +49 (2159) 91 48 - 0
Mollsfeld 10                              Fax  : +49 (2159) 91 48 - 11
40670 Meerbusch, Germany                  http://www.riege.com/
Index: src/main/org/jboss/test/bench/servlet/EJBTester.java
===================================================================
RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bench/servlet/EJBTester.java,v
retrieving revision 1.1
diff -u -r1.1 EJBTester.java
--- src/main/org/jboss/test/bench/servlet/EJBTester.java        2000/11/29 01:15:12    
 1.1
+++ src/main/org/jboss/test/bench/servlet/EJBTester.java        2001/03/26 09:00:39
@@ -291,13 +291,13 @@
                        int loops;
                        SimpleEntity bean;
                        
-                       public Worker(int beanId, SimpleEntityHome home, int loops) 
throws Exception {
+                       public Worker(int beanId, SimpleEntityHome wHome, int loops) 
+throws Exception {
                                this.loops = loops;
                                
                                try { 
-                                       bean = home.findByPrimaryKey(new 
Integer(beanId));
+                                       bean = wHome.findByPrimaryKey(new 
+Integer(beanId));
                                } catch (Exception e) {
-                                       bean = home.create(beanId);
+                                       bean = wHome.create(beanId);
                                }
                        }
 
@@ -355,13 +355,13 @@
                        String otherField = new String(new char[dataSize]);
                        ComplexEntity bean;
                        
-                       public Worker(int beanId, ComplexEntityHome home, int loops) 
throws Exception {
+                       public Worker(int beanId, ComplexEntityHome wHome, int loops) 
+throws Exception {
                                this.loops = loops;
                                
                                try { 
-                                       bean = home.findByPrimaryKey(new 
AComplexPK(true, beanId, (long)0, (double)0, "empty"));
+                                       bean = wHome.findByPrimaryKey(new 
+AComplexPK(true, beanId, (long)0, (double)0, "empty"));
                                } catch (Exception e) {
-                                       bean = home.create(true, beanId, (long)0, 
(double)0, "empty");
+                                       bean = wHome.create(true, beanId, (long)0, 
+(double)0, "empty");
                                }
                        }
 
@@ -418,10 +418,10 @@
                        int loops;
                        MySession bean;
                        
-                       public Worker(MySessionHome home, int loops) throws Exception {
+                       public Worker(MySessionHome wHome, int loops) throws Exception 
+{
                                this.loops = loops;
                                
-                               bean = home.create();
+                               bean = wHome.create();
                        }
 
                        public void run() {

Reply via email to