Java2Script 3.2.2.02 general Java8 tests pass - #61
Merged
Conversation
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
added a commit
that referenced
this pull request
Sep 18, 2018
update for transpiler and runtime - fix #2 for unqualified methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
java.util.stream, java.util.function, switch to fully qualified method names excepting only Math::* and *.toString()