lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Isakson" <Eric.Isak...@sas.com>
Subject RE: Failed Build: Query.java
Date Wed, 15 Jan 2003 16:35:33 GMT
public RuntimeException(Throwable cause) was added to the API in 1.4 and more generally, it
was added to the Throwable object and constructors were added to extensions of Throwable.
To be 1.2 compatible, you can't use this signature or this one 
public Throwable(String message,
                 Throwable cause)
 
See http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Throwable.html <http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Throwable.html#Throwable(java.lang.String>

Eric

	-----Original Message----- 
	From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] 
	Sent: Wed 1/15/2003 10:38 AM 
	To: Lucene Developers List 
	Cc: 
	Subject: Re: Failed Build: Query.java
	
	

	I can apply the patch, but what vesion do you have that's not taking
	Exception in RuntimeException constructor?
	
	Otis
	
	--- Kelvin Tan <kelvin-lists@relevanz.com> wrote:
	> Someone's got JDK 1.4 installed...:-)
	>
	> compile:
	>     [javac] Compiling 73 source files to
	> C:\checkout\jakarta-lucene\bin\classes
	>     [javac]
	>
	C:\checkout\jakarta-lucene\src\java\org\apache\lucene\search\Query.jav
	> a:175: cannot resolve symbol
	>     [javac] symbol  : constructor RuntimeException
	> (java.lang.CloneNotSupportedException)
	>     [javac] location: class java.lang.RuntimeException
	>     [javac]       throw new RuntimeException(e);
	>     [javac]             ^
	>     [javac] 1 error
	>
	> BUILD FAILED
	>
	> See attached for suggested patch.
	>
	> Regards,
	> Kelvin
	>
	> --------
	> The book giving manifesto     - http://how.to/sharethisbook
	>
	> > cvs diff -u Query.java (in directory
	> C:\checkout\jakarta-lucene\src\java\org\apache\lucene\search)
	> Index: Query.java
	> ===================================================================
	> RCS file:
	>
	/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/Query.java,v
	> retrieving revision 1.10
	> diff -u -r1.10 Query.java
	> --- Query.java  14 Jan 2003 21:57:30 -0000  1.10
	> +++ Query.java  15 Jan 2003 12:19:18 -0000
	> @@ -172,7 +172,7 @@
	>      try {
	>        return (Query)super.clone();
	>      } catch (CloneNotSupportedException e) {
	> -      throw new RuntimeException(e);
	> +      throw new RuntimeException("Clone not supported:" +
	> e.getMessage());
	>      }
	>    }
	>  }
	> > --
	> To unsubscribe, e-mail: 
	> <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
	> For additional commands, e-mail:
	<mailto:lucene-dev-help@jakarta.apache.org>
	
	
	__________________________________________________
	Do you Yahoo!?
	Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
	http://mailplus.yahoo.com
	
	--
	To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
	For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
	
	

Mime
View raw message