Skip to content

Conversation

@BobHanson
Copy link
Owner

No description provided.

BobHanson and others added 21 commits May 15, 2018 01:10
byte and short array upgrade -- full compatibility with Java for all operations
JSGraphics2D, swingjs2.js update
Merge pull request #22 from BobHanson/yadav1
parent UI not tainted when child added
// BH 7/21/2018 fix for static{thisApplet.__Info.width=300} not working
// BH 7/21/2018 fix for static{thisApplet.__Info.width=300} not working
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)
@BobHanson BobHanson merged commit 628c301 into BobHanson:master Jul 22, 2018
BobHanson added a commit that referenced this pull request Jul 22, 2018
this.this$0 fix; ResettableStream interface removed
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