Commit 3352042
committed
fix for obscure issue with Interface
In this case, there is an Interface (TView) that WorldTView implements.
But that interface, in its static initializer, creates a WorldTViewIcon
by referencing a static field in WorldTView,
protected static final Icon WORLDVIEW_ICON =
Tracker.getResourceIcon("axes.gif", true);
Ah, but this is happening before WorldView is fully initialized, and it
causes WorldTView to instantiate all its static fields. OK, but then
later, the JavaScript classloader runs the method that generates all the
defaults for the static fields, and that was nulling out the array that
had just been made.1 parent c410841 commit 3352042
7 files changed
Lines changed: 42 additions & 36 deletions
File tree
- sources
- net.sf.j2s.core/dist/swingjs
- ver/3.3.1
- net.sf.j2s.java.core
- dist
- srcjs
- js
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
397 | | - | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
465 | | - | |
466 | | - | |
467 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
468 | 471 | | |
469 | | - | |
| 472 | + | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
| |||
477 | 480 | | |
478 | 481 | | |
479 | 482 | | |
480 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
481 | 487 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 488 | + | |
493 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
494 | 497 | | |
495 | 498 | | |
496 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14022 | 14022 | | |
14023 | 14023 | | |
14024 | 14024 | | |
| 14025 | + | |
14025 | 14026 | | |
14026 | 14027 | | |
14027 | 14028 | | |
| |||
14409 | 14410 | | |
14410 | 14411 | | |
14411 | 14412 | | |
14412 | | - | |
| 14413 | + | |
14413 | 14414 | | |
14414 | 14415 | | |
14415 | 14416 | | |
| |||
14477 | 14478 | | |
14478 | 14479 | | |
14479 | 14480 | | |
14480 | | - | |
14481 | | - | |
14482 | | - | |
| 14481 | + | |
| 14482 | + | |
| 14483 | + | |
| 14484 | + | |
| 14485 | + | |
14483 | 14486 | | |
14484 | | - | |
| 14487 | + | |
14485 | 14488 | | |
14486 | 14489 | | |
14487 | 14490 | | |
| |||
14492 | 14495 | | |
14493 | 14496 | | |
14494 | 14497 | | |
14495 | | - | |
| 14498 | + | |
| 14499 | + | |
| 14500 | + | |
| 14501 | + | |
14496 | 14502 | | |
14497 | | - | |
14498 | | - | |
14499 | | - | |
14500 | | - | |
14501 | | - | |
14502 | | - | |
14503 | | - | |
14504 | | - | |
14505 | | - | |
14506 | | - | |
14507 | | - | |
| 14503 | + | |
14508 | 14504 | | |
| 14505 | + | |
| 14506 | + | |
| 14507 | + | |
| 14508 | + | |
| 14509 | + | |
| 14510 | + | |
| 14511 | + | |
14509 | 14512 | | |
14510 | 14513 | | |
14511 | 14514 | | |
| |||
0 commit comments