756 Commits

Author SHA1 Message Date
Louis Grignon
7aa397f0b1 Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-10-26 14:12:00 +02:00
Louis Grignon
69d26a5fe8 add Dates unit test 2019-10-26 14:11:52 +02:00
ifeanyi
24aff665c6 Add support for transpiling collections to ES6
This commit adds an Adapter that transpiles sets using ES6 Set
implementation.
The goal of the adapter is to use a standard API for the transpiled
collections in order to abstract implementation details of collections
as well as enable
inter-operability between collections just as in Java.
For example in Java most collections can be initialized with any
arbitrary collection and never need to know how that collection is
implemented.

Having the transpiled code work only via the API at collection
boundaries enables this.
However this means that collections transpiled by this adapter are not
compatible with those transpiled by other adapters - this should be less
of an issue once the adapter has support to handle all collection types.

Related #548
Fixes #549
2019-10-09 19:48:39 +02:00
lgrignon
f6eb3f65a3 next snapshot version 2019-10-06 20:21:01 +02:00
lgrignon
024acb93b9 2.3.5 release 2019-10-06 20:16:45 +02:00
lgrignon
76e45a0013 Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-10-06 20:11:58 +02:00
lgrignon
0276dccacb fix some transpilation issues for J4TS 2019-10-06 20:11:40 +02:00
ifeanyi
0d236e3c32 Add support for Number constructors with char arguments
* Also add missing support for `Character.valueOf`

Fixes #509
2019-10-06 19:21:30 +02:00
ifeanyi
11c00b0a57 Support Map initialization via non-Map arguments
This patch ignores any arguments that isn't of Map type during
the invocation of a Map collection. Based on the supported
data-structures, these non-Map arguments can either be of type
int (capacity, loadFactor) or Comparator. The use case for the
latter is not currently supported while the former have no equivalent
in javascript.

Fixes #508
2019-10-05 19:18:46 +02:00
lgrignon
fb6f9b0e59 fix #544 extending Java Map, print this in transformation instead of invalid super 2019-10-05 11:44:48 +02:00
lgrignon
8a68a70555 #542 unit test for boxing issue 2019-10-05 10:18:58 +02:00
Louis Grignon
9c3104a3f3 fix #540 overload in Globals 2019-09-22 19:11:50 +02:00
Louis Grignon
728fffa464 #541 unit test to show working case 2019-09-22 18:22:40 +02:00
Louis Grignon
7fd8496dc3 add unit test for #539 2019-09-22 16:56:35 +02:00
lgrignon
6ab243193a next snapshot version 2019-09-09 00:57:39 +02:00
lgrignon
ab95a89fce release 2.3.4 2019-09-09 00:56:27 +02:00
lgrignon
8d48e0a410 fix NPE in global npm package lookup 2019-09-09 00:50:54 +02:00
lgrignon
a7bc751ec6 fix NPE in global npm package lookup 2019-09-09 00:41:33 +02:00
lgrignon
5727fc9e34 next snapshot version 2019-09-09 00:32:19 +02:00
lgrignon
539b85a9eb 2.3.3 release 2019-09-09 00:31:22 +02:00
lgrignon
74adc70cd3 attempt to fix tsc retrieval 2019-08-29 13:35:28 +02:00
lgrignon
826e3bb2f0 next snapshot version 2019-08-29 12:55:06 +02:00
lgrignon
0ec73ccdf2 fix tsserver lookup for unix + release 2019-08-29 12:52:47 +02:00
lgrignon
20fac4f76d next snapshot version 2019-08-25 15:29:09 +02:00
lgrignon
611fd7d890 fix release 2.3.1: no snapshot 2019-08-25 15:27:50 +02:00
lgrignon
d3b3c3a306 next snapshot version 2019-08-25 15:18:58 +02:00
lgrignon
6393c4119c replace static calls even if target is not an interface (instance select of static field can't work in TypeScript) 2019-08-25 15:16:19 +02:00
lgrignon
01bd04bc3d Merge branch 'develop' of https://github.com/cincheo/jsweet into develop 2019-07-24 23:12:20 +02:00
lgrignon
ff3718113d add babel before running phantomjs 2019-07-24 23:12:01 +02:00
Josef Stark
2c6bd6b887 Merge branch 'upstream_develop' into Issue_#530 2019-06-26 19:17:07 +02:00
lgrignon
96be831f40 2.3.1 snapshot 2019-06-23 12:02:36 +02:00
lgrignon
90caa06096 2.3.0 release 2019-06-23 11:14:24 +02:00
Josef Stark
c84c7ee1d4 Add missing headers for when a class inherits a default method that
accesses a field from another class.

This commit attempts to fix #530
Works so far but might not be clean or work for all cases
2019-06-20 15:42:26 +02:00
Dasa Paddock
6b9fe3029b Fix test 2019-06-03 12:46:09 -07:00
Dasa Paddock
926241e322 Add support for range in Arrays.fill 2019-06-03 10:58:05 -07:00
Dasa Paddock
63db041074 Add support for subtract and signum methods 2019-06-02 09:11:24 -07:00
Louis Grignon
0fbcbea45b add error when not using Java 8 2019-05-01 12:20:14 +02:00
Louis Grignon
437d178457 fix Promise returning async methods 2019-04-29 22:29:56 +02:00
Louis Grignon
d1c7d0ed45 allow async method to not return promise
Prior to this commit, async methods had to strictly return a promise.
This needed to be improved in order to be able to return a simple value
in an async method, just like in TypeScript.

Since this is now allowed, this is why there is a new await method which
does not take a Promise parameter, but a generic type. (this
modification was in previous commit:
7f2000e03beee56ab4454b2bdb2d886048f6112e)
2019-04-29 19:42:10 +02:00
Louis Grignon
7f2000e03b add $invoke capability
Brings dynamic invoke capability to def.js.Object.

It allows to dynamically call a method on an object for instance if
definition is missing or simply if it is not possible to do it
otherwise.
2019-04-27 18:47:13 +02:00
Louis Grignon
26beb8d8ce next snapshot version: 2.3.0-SNAPSHOT 2019-03-15 23:39:51 +01:00
Louis Grignon
53c18d5e92 readme for release 2019-03-15 23:28:18 +01:00
Louis Grignon
139233e451 release 2.2.0 2019-03-13 22:17:37 +01:00
Louis Grignon
d9b4e654bb add lgrignon to pom's developers + SCM connection + issues management 2019-03-10 16:16:51 +01:00
Benoit Lagae
f844ff5d7f Support Deque:remove() and removeFirst()
This solves errors when using LinkedList reported in #517
2019-02-26 09:42:31 +01:00
Louis Grignon
2bc5f1a048 add division extension points 2019-01-04 19:20:10 +01:00
Louis Grignon
bd2cb8f17d UtilSupport: context wasn't accessible 2018-12-13 00:27:37 +01:00
Louis Grignon
6cd36ec4ee
Merge pull request #496 from chfeiler/non_static_member_ref
Non static method reference
2018-11-28 23:32:58 +01:00
Chris Brown
760da5433b fix #506 added support for StringBuffer.substring 2018-11-13 09:56:34 +00:00
Louis Grignon
759a0d55a5 fixed import 2018-11-08 22:47:41 +01:00