commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Borcherds (JIRA)" <>
Subject [jira] [Commented] (MATH-1406) official support for compiling on GWT 2.8
Date Mon, 03 Apr 2017 08:44:41 GMT


Michael Borcherds commented on MATH-1406:

GWT documentation refers to what is supported, rather than what isn't :)

re Clone:

re ClassCastException
This works OK
	 * @throws ClassCastException
	 *             when <i>obj1</i> is not a <code>Comparable</code>,
or when
	 *             <code>((Comparable)obj1).compareTo(obj2)</code> does
	public int compare(T obj1, T obj2) {
		return obj1.compareTo(obj2);

but the other uses
try { do a cast } catch (ClassCastException e)
simply don't throw an Exception in GWT so lead to runtime rather than compile-time errors

> official support for compiling on GWT 2.8
> -----------------------------------------
>                 Key: MATH-1406
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Michael Borcherds
>   Original Estimate: 168h
>  Remaining Estimate: 168h
> Context: at the moment Apache Commons Math can't be compiled using GWT (to allow it to
be made into a JavaScript library for example)
> Is there any interest in allowing Apache Commons Math to be officially supported on GWT?
> With GWT 2.8.0 the changes needed aren't too hard to get most of it to compile
> You can see the diff from 3.6.1 here:

This message was sent by Atlassian JIRA

View raw message