|
13 | 13 |
|
14 | 14 | // TODO: Check String.contentEquals -- CharSequence? StringBuffer.shareValue?? |
15 | 15 |
|
| 16 | +// BH 8/26/2017 9:45:55 AM fix for URL.getContent() |
16 | 17 | // BH 8/24/2017 1:54:01 AM fix for static Character.toUpperCase, .toLowerCase |
17 | 18 | // BH 8/20/2017 5:04:32 AM lets String implement CharSequence using .length$() for all .length() for ALL classes |
18 | 19 | // BH 8/18/2017 10:14:09 PM Test_7.class.getConstructor(new Class[]{int[].class}) requires a minimal java.lang.Class |
|
112 | 113 |
|
113 | 114 | LoadClazz = function() { |
114 | 115 |
|
115 | | -var debugNoSwingJS = true; |
116 | | -if (debugNoSwingJS)alert("Note! debugNoSwingJS in j2sSwingJS.js") |
117 | | - |
118 | 116 |
|
119 | 117 | // BH c$ is the ONLY global used in SwingJS now. I do not think it is necessary, |
120 | 118 | // but it is created by the compiler, and I have not found a post-compile work-around. |
@@ -4041,6 +4039,10 @@ Sys.out.printf = Sys.out.format = function (f, args) { |
4041 | 4039 | } |
4042 | 4040 |
|
4043 | 4041 | Sys.out.println = Sys.out.println$O = Sys.out.println$Z = Sys.out.println$I = Sys.out.println$S = Sys.out.println = function(s) { |
| 4042 | + |
| 4043 | +if (s.indexOf("TypeError") >= 0) { |
| 4044 | + debugger; |
| 4045 | +} |
4044 | 4046 | if (Clazz._nooutput) return; |
4045 | 4047 | if (Clazz._traceOutput && s && ("" + s).indexOf(Clazz._traceOutput) >= 0) |
4046 | 4048 | alert(s + "\n\n" + Clazz.getStackTrace()); |
@@ -5209,7 +5211,7 @@ var regExp=new RegExp(exp,"gm"); |
5209 | 5211 | var m=this.match(regExp); |
5210 | 5212 | return m!=null&&m.length!=0; |
5211 | 5213 | }; |
5212 | | -sp.regionMatches$b$I$S$I$I=function(ignoreCase,toffset, |
| 5214 | +sp.regionMatches$Z$I$S$I$I=function(ignoreCase,toffset, |
5213 | 5215 | other,ooffset,len){ |
5214 | 5216 |
|
5215 | 5217 | if(typeof ignoreCase=="number" |
@@ -6782,8 +6784,7 @@ return null; |
6782 | 6784 | }); |
6783 | 6785 |
|
6784 | 6786 |
|
6785 | | -if (!debugNoSwingJS) |
6786 | | - Clazz._Loader.loadZJar(Clazz._Loader.getJ2SLibBase() + "core/coreswingjs.z.js", "swingjs.JSToolkit"); |
| 6787 | +Clazz._Loader.loadZJar(Clazz._Loader.getJ2SLibBase() + "core/coreswingjs.z.js", "swingjs.JSToolkit"); |
6787 | 6788 |
|
6788 | 6789 |
|
6789 | 6790 | })(Clazz, J2S); // requires JSmolCore.js |
|
0 commit comments