sebb        2004/01/14 18:00:00

  Modified:    src/core/org/apache/jmeter/testbeans/gui TestBeanGUI.java
  Log:
  Make compatible with JDK1.3
  
  Revision  Changes    Path
  1.4       +10 -10    
jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
  
  Index: TestBeanGUI.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestBeanGUI.java  15 Jan 2004 00:18:13 -0000      1.3
  +++ TestBeanGUI.java  15 Jan 2004 02:00:00 -0000      1.4
  @@ -233,7 +233,7 @@
           {
               log.error("Can't get beanInfo for "+testBeanClass.getName(),
                   e);
  -            throw new Error(e); // Programming error. Don't continue.
  +            throw new Error(e.toString()); // Programming error. Don't continue.
           }
   
                // Sort the property descriptors:
  @@ -273,12 +273,12 @@
                   catch (InstantiationException e)
                   {
                       log.error("Can't create property editor.", e);
  -                    throw new Error(e);
  +                    throw new Error(e.toString());
                   }
                   catch (IllegalAccessException e)
                   {
                       log.error("Can't create property editor.", e);
  -                    throw new Error(e);
  +                    throw new Error(e.toString());
                   }
               }
               else
  @@ -459,7 +459,7 @@
                                // But for the time being, I just prefer to be aware 
of any
                                // problems occuring here, most likely programming 
errors,
                                // so I'll bail out.
  -                             throw new Error("Bad property value.", e);
  +                             throw new Error("Bad property value."+e);
                                // TODO: review this and possibly change to:
                                // setEditorValue(i, 
descriptors[i].getValue("default"); 
                        }
  @@ -473,7 +473,7 @@
         * @return the index of that property in the descriptors array, or -1 if 
         *                      there's no property of this name.
         */
  -     private int descriptorIndex(String name)
  +     private int descriptorIndex(String name) //NOTUSED
        {
                for (int i=0; i<descriptors.length; i++)
                {
  @@ -496,12 +496,12 @@
           catch (InstantiationException e)
           {
               log.error("Can't create test element", e);
  -            throw new Error(e); // Programming error. Don't continue.
  +            throw new Error(e.toString()); // Programming error. Don't continue.
           }
           catch (IllegalAccessException e)
           {
               log.error("Can't create test element", e);
  -            throw new Error(e); // Programming error. Don't continue.
  +            throw new Error(e.toString()); // Programming error. Don't continue.
           }
       }
   
  @@ -655,7 +655,7 @@
           
           GridBagConstraints cl= new GridBagConstraints(); // for labels
                cl.gridx= 0;
  -             cl.anchor= GridBagConstraints.LINE_END;
  +             cl.anchor= GridBagConstraints.EAST;//JDK1.4: was LINE_END
                cl.insets= new Insets(0, 1, 0, 1);
   
                GridBagConstraints ce= new GridBagConstraints(); // for editors
  @@ -720,7 +720,7 @@
                        cl.gridwidth= multiLineEditor ? 2 : 1;
                        cl.anchor= multiLineEditor 
                                ? GridBagConstraints.CENTER
  -                             : GridBagConstraints.LINE_END;
  +                             : GridBagConstraints.EAST;//JDK1.4: was LINE_END
               currentPanel.add(label, cl);
   
                        ce.gridx= multiLineEditor ? 0 : 1;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to