Skip to content

Conversation

@BobHanson
Copy link
Owner

Java2Script 3.2.2.02 general Java8 tests pass

hansonr added 8 commits July 26, 2018 18:21
compilation-unit scope var p$1, p$2, p$3, etc., {} one for each class,
to hold method references. All then use .apply.
-- fully qualified methods
-- Java 8 lambda expressions
-- new SwingJS-site.zip runtime Clazz
Note that functional interface methods (methods in singleton Interfaces)
are still aliased both in their fully parameterized forms and their
unparameterized forms. This works for proxy, but it is not ideal.
Ideally, we would be giving the minimum signature for the interface
method parameters. I just don't have a way of doing that.
refactored class creation and invocation handling
- lambda functions
- doublecolon operator
- java.util.function
- java.util.stream

- all methods post-$ qualified except Math.* and *.toString()
Unqualified names reduced to Math::* and *.toString

Plugin structure simplified. Just four files:

Plugin.xml
CompilationParticipant.java
Java2ScriptCompiler.java
Java2ScriptVisitor.java
Unqualified names reduced to Math::* and *.toString
@BobHanson BobHanson merged commit 20c7e79 into master Aug 4, 2018
@BobHanson
Copy link
Owner Author

Java2Script 3.2.2.02 general Java8 tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants