Skip to content

Releases: Greentube/Java-converter

Solve ambiguity of delete(int) and delete(Object)

02 Apr 09:18

Choose a tag to compare

In some cases the wrong or a non-existing delete() method or collections were called. This lead to a crash of the javascript program.

Relaxed static dependency constraint for javascript

30 Mar 14:46

Choose a tag to compare

Previously having some static initialization for a member of A using a member variable of B would force the class B and all its recursive references to be loaded before A.
This leads to a problem if B directly or indirectly references A for whatever use, even if it has nothing do do with static initialization.

From now on such an initialization will only force B to be loaded before A and not all its references.

A side effect of the change is also that when A itself contains members that are using each other in their static initialization (like A.a = A.b), this will no longer force all references of A to be loaded before A.
This should remove some hassle of dealing with constant values.

Note, that creating a class instance or calling a static method from static initialization code will still create the recursive loading constraints as usual.

More convenience methods

25 Mar 14:44

Choose a tag to compare

Add some additional easy to implment methods to core libraries, mainly String, StringBuffer, StringBuilder.

Parsing and printing doubles

17 Feb 08:42

Choose a tag to compare

Fixed the format to parse and print doubles to never use local dependent commas or thousands separation.
Implementing interfaces with an abstract class now auto-generates the missing methods as abstract for C# compatibility.

Add more methods to Collection and Set.

11 Dec 13:48

Choose a tag to compare

Access the basic modification methods through the Collection and Set interfaces instead if needing the specific implementation object.
This can be useful, but could also lead to UnsupportedOperationException to be thrown, so use this feature with care.

While on the way, I also streamlined the collection framework libraries a bit more.

Fix: Accessing members of parent of outer class

05 Dec 14:27

Choose a tag to compare

2.11.5

Fix: Accessing members of parent of outer class was not correctly con…

Redirect System.out and System.err for C# converter target

05 Dec 08:26

Choose a tag to compare

In the C# conversion target, you now have the possibility to redirect the System.out and System.err streams to some arbitrary facility. Just call the 'redirect' method on the PrintStream object which takes a delegate that receives a single line of text on each invocation.

Whilelist forEach() method on all collections

04 Nov 09:18

Choose a tag to compare

Previously the converter did not allow to call the forEach method directly on ArrayList and Vector. It seems that these specific classes override the default interface implementation for performance reasons, and this makes it necessary to explicitly white-list the methods here.

Expose static compiler method to use in programs

14 Oct 13:39

Choose a tag to compare

2.11.2

Expose a main-like static method that does not call System.exit() on …

Update to current extendj version

30 Sep 10:37

Choose a tag to compare

Utilize new fixes of the underlying extendj framework.
Fix an issue on methods with type parameters.