Skip to content

Commit 31af206

Browse files
committed
SwingJS, javax, sun files added
No compile errors, but still need to check all j2sNative blocks for unqualified method calling.
1 parent 479b634 commit 31af206

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

sources/net.sf.j2s.core/test/dev/js/j2sApplet.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ J2S._getDefaultLanguage = function(isAll) { return (isAll ? J2S.featureDetection
843843
return "OK";
844844
var filename = filename.substring(filename.lastIndexOf("/") + 1);
845845
mimetype || (mimetype = (filename.indexOf(".pdf") >= 0 ? "application/pdf"
846+
: filename.indexOf(".zip") >= 0 ? "application/zip"
846847
: filename.indexOf(".png") >= 0 ? "image/png"
847848
: filename.indexOf(".gif") >= 0 ? "image/gif"
848849
: filename.indexOf(".jpg") >= 0 | filename.indexOf(".jpeg") >= 0? "image/jpg" : ""));

sources/net.sf.j2s.core/test/dev/js/j2sSwingJS.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,7 +4106,9 @@ if (typeof arguments[0] != "object")this.construct(arguments[0]);
41064106
});
41074107

41084108
var setJ2STypeclass = function(cl, type, paramCode) {
4109+
// TODO -- should be a proper Java.lang.Class
41094110
cl.TYPE = {
4111+
isPrimitive: function() { return true },
41104112
type:type,
41114113
__PARAMCODE:paramCode,
41124114
__PRIMITIVE:1

0 commit comments

Comments
 (0)