You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/01/07 01:54:30 UTC
cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/junit JMeterTest.java
sebb 2004/01/06 16:54:30
Modified: src/core/org/apache/jmeter/junit JMeterTest.java
Log:
Make compliant with JDK1.3
Revision Changes Path
1.23 +9 -7 jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTest.java
Index: JMeterTest.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTest.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- JMeterTest.java 16 Dec 2003 17:07:25 -0000 1.22
+++ JMeterTest.java 7 Jan 2004 00:54:30 -0000 1.23
@@ -283,19 +283,21 @@
{
// We won't test restricted-access classes.
}
- catch (java.awt.HeadlessException e)
- {
- System.out.println("Error creating "+n+" "+e.toString());
- }
+ //JDK1.4: catch (java.awt.HeadlessException e)
+ //JDK1.4: {
+ //JDK1.4: System.out.println("Error creating "+n+" "+e.toString());
+ //JDK1.4: }
catch (Exception e)
{
- if (e instanceof RemoteException)
+ if ((e instanceof RemoteException)
+ ||e.getClass().getName().equals("java.awt.HeadlessException")//for JDK1.3
+ )
{
System.out.println("Error creating "+n+" "+e.toString());
}
else
{
- throw new Exception("Error creating "+n,e);
+ throw new Exception("Error creating "+n+" "+e.toString());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org