Skip to content

Conversation

@BobHanson
Copy link
Owner

No description provided.

BobHanson and others added 29 commits May 22, 2018 20:51
JSGraphics2D, swingjs2.js update
Merge pull request #22 from BobHanson/yadav1
parent UI not tainted when child added
parent UI not tainted when child added
Cause
=====

In Java2ScriptCompiler the literals ".J2S" and ".j2s" are used as names
for the J2S compiler options file (the "dot-j2s" file). The literals
only differ in the case of the letters.

On Windows both literals ".J2S" and ".j2s" denote the same file. However
on other operating systems (like Linux and macOS) the two literals (can)
identify two different files. This is because these operating
system have (or can have) case-sensitive file systems.

As a consequence adding a file ".j2s" (with lower case letters) to a
project will not activate the J2S compiler on Linux and macOS because
the compiler's "isActive" method checks for the file ".J2S" (with upper
case letters) and does not find such a file.

Solution
========

Always use one unique name for the J2S compiler options file (".j2s"),
accessible through constant `Java2ScriptCompiler.J2S_OPTIONS_FILE_NAME`.

Also
====
- fix "unused import" warnings in Java2ScriptCompiler.java
Bug: J2S compiler not activated on Linux/macOS (Wrong ".J2S" file name)
from java2script to BobHanson
@BobHanson BobHanson merged commit 2273c2f into yadav1 Jul 22, 2018
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.

3 participants