Author: bago
Date: Thu May 29 15:39:37 2008
New Revision: 661514
URL: http://svn.apache.org/viewvc?rev=661514&view=rev
Log:
Class.asSubclass is a java5 method. Translated to Class.isAssignable to fix
java 1.4 compatibility.
Modified:
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/address/AddressTest.java
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/contenttype/ContentTypeTest.java
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/datetime/DateTimeTest.java
Modified:
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/address/AddressTest.java
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/address/AddressTest.java?rev=661514&r1=661513&r2=661514&view=diff
==============================================================================
---
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/address/AddressTest.java
(original)
+++
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/address/AddressTest.java
Thu May 29 15:39:37 2008
@@ -38,7 +38,7 @@
public void testExceptionTree() {
// make sure that our ParseException extends MimeException.
- ParseException.class.asSubclass(MimeException.class);
+ assertTrue(MimeException.class.isAssignableFrom(ParseException.class));
}
public void testParse1() throws ParseException {
Modified:
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/contenttype/ContentTypeTest.java
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/contenttype/ContentTypeTest.java?rev=661514&r1=661513&r2=661514&view=diff
==============================================================================
---
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/contenttype/ContentTypeTest.java
(original)
+++
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/contenttype/ContentTypeTest.java
Thu May 29 15:39:37 2008
@@ -31,7 +31,7 @@
public void testExceptionTree() {
// make sure that our ParseException extends MimeException.
- ParseException.class.asSubclass(MimeException.class);
+ assertTrue(MimeException.class.isAssignableFrom(ParseException.class));
}
public void testContentType() throws ParseException {
Modified:
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/datetime/DateTimeTest.java
URL:
http://svn.apache.org/viewvc/james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/datetime/DateTimeTest.java?rev=661514&r1=661513&r2=661514&view=diff
==============================================================================
---
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/datetime/DateTimeTest.java
(original)
+++
james/mime4j/trunk/src/test/java/org/apache/james/mime4j/field/datetime/DateTimeTest.java
Thu May 29 15:39:37 2008
@@ -31,7 +31,7 @@
public void testExceptionTree() {
// make sure that our ParseException extends MimeException.
- ParseException.class.asSubclass(MimeException.class);
+ assertTrue(MimeException.class.isAssignableFrom(ParseException.class));
}
public void testNormalDate() throws ParseException {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]