aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime
Commit message (Collapse)AuthorAgeFilesLines
* JNLPClassLoader.toString: Use hex value of object hashCode()HEADmasterSven Gothel2014-01-311-1/+1
|
* JNLPClassLoader: Introduce pending removal of cached CLs (1 min) to enhance ↵Sven Gothel2014-01-311-5/+47
| | | | performance for single applet reload.
* JNLPClassLoader: Formatting .. and user final qualifierSven Gothel2014-01-311-5/+5
|
* JNLPClassLoader.createInstance(): Remove extLoader (same as baseLoader); ↵Sven Gothel2014-01-311-18/+45
| | | | | | | | | | | | | | | | getInstance(): No new JNLPClassLoader if uniqueKey satisfies JNLPClassLoader.[get|create]Instance(..): - Reuse uniqueKey, baseLoader from getInstance() - Remove extLoader (same as baseLoader) This is odd and sparked my eye while reusing the baseLoader (above). JNLPClassLoader.getInstance(..): - No new JNLPClassLoader if uniqueKey satisfies. Why should we ? Enables reusing CL and impacts performance. JNLPClassLoader.toString(): Added for better debugging.
* JNLPClassLoader: Formatting final, override, spaceSven Gothel2014-01-311-79/+88
|
* Experimental Applet without AWT (Applet3)Sven Gothel2014-01-304-44/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DISCLAIMER: - Only new Applet3 applets are supported under X11 for now - AWT Applet are disabled - Namespace com.jogamp.* and jogamp.* is only chosen to indicate new AWT-less code - Applet3 code path does not invoke any AWT function - JNLP code path still utilizes AWT/Swing (UIs, ..) TODO: - Refactor AWT dependencies properly via UI interfaces ? - Decide whether we shall merge netx and plugin namespace ? IMHO the right thing to do, jumping hoops due to separation. - Add support for Windows, OSX, Wayland, .. Applet3: - New AWT-less Applet3 interfaces are: - com.jogamp.plugin.applet.Applet3 - User implements - com.jogamp.plugin.applet.Applet3Context - Plugin implements - com.jogamp.plugin.ui.NativeWindowUpstream - Plugin window, aka browser parent of Applet3 - com.jogamp.plugin.ui.NativeWindowDownstream - Applet3 user window - User interfaces are exported as: - plugin3-public.jar - plugin3-public-src.zip
* Tuning of properties loading.Jiri Vanek2014-01-271-2/+19
| | | | Jnlp runtime now correctly dies in case of ConfigurationException and initialisation of config is failing to defaults instead of die with NoClassDefFoundError
* Support building against OpenJDK8Omair Majid2014-01-243-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenJDK8 javadoc parser is much more strict and raises erorrs on marlformed html, incorrect parameter names and incorrect throws declerations. 2014-01-23 Omair Majid <omajid@redhat.com> * netx/net/sourceforge/jnlp/JNLPFile.java, * netx/net/sourceforge/jnlp/NetxPanel.java, * netx/net/sourceforge/jnlp/cache/CacheLRUWrapper.java, * netx/net/sourceforge/jnlp/cache/CacheUtil.java, * netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java, * netx/net/sourceforge/jnlp/config/DirectoryValidator.java, * netx/net/sourceforge/jnlp/config/Setting.java, * netx/net/sourceforge/jnlp/controlpanel/AdvancedProxySettingsDialog.java, * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java, * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java, * netx/net/sourceforge/jnlp/runtime/RhinoBasedPacEvaluator.java, * netx/net/sourceforge/jnlp/security/SecurityDialogs.java, * netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java, * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java, * netx/net/sourceforge/jnlp/util/FileUtils.java, * netx/net/sourceforge/jnlp/util/JarFile.java, * netx/net/sourceforge/nanoxml/XMLElement.java, * netx/net/sourceforge/nanoxml/XMLParseException.java, * plugin/icedteanp/java/sun/applet/PluginStreamHandler.java: Fix incorrect parameter names, throws declerations and malformed html in javadocs.
* Fix classloading deadlock regressionAndrew Azores2013-12-271-75/+115
| | | | | | | | | | Resolve deadlock issue in JNLPClassLoader. See http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-December/025546.html * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) removed. (available, jarIndexes, classpaths, jarEntries, jarLocationSecurityMap) fields wrapped in Collections.synchronized*() to provide atomic read/write. Synchronized on while iterating over these collections. (loadClass) no longer uses implicit JNLPClassLoader instance lock nor dedicated loadClassLock object.
* singletons logic, logs and test cleanup/fixesJiri Vanek2013-12-201-16/+28
|
* JNLPRuntime.config changed to proper singleton.Jiri Vanek2013-12-181-17/+23
|
* itw itself warning cleanup: fixed rawtypes and unchecks, added braces and ↵Jiri Vanek2013-12-134-39/+68
| | | | | | | | | | | | | | | | | | | | | Override After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :) remaining issues: icedtea-web/netx/net/sourceforge/jnlp/cache/ResourceTracker.java:357: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/cache/CacheUtil.java:128: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/runtime/Boot.java:261: warning: [deprecation] toURL() in File has been deprecated There have been a lot of work around cach x file x url escaping, and as main difference between file.tourl and file.touri.tourl is escapin, I rather left it. icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:804: warning: [deprecation] Ref in sun.misc has been deprecated icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:121: warning: [deprecation] Ref in sun.misc has been deprecated What can be done? icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:205: warning: [fallthrough] possible fall-through into case icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:211: warning: [fallthrough] possible fall-through into case This have to be fixed
* Implement per-JAR security descriptors (PR1592)Andrew Azores2013-12-031-48/+80
| | | | | | Fix/new feature for PR1592. Each JAR in partially signed applets is assigned its own security level, rather than forcing the entire applet to run sandboxed.
* Better validation of crytical dirs with proper message on startupJiri Vanek2013-12-021-4/+5
|
* Added null check when getting manifest attributes for case of jar without ↵Jiri Vanek2013-11-271-2/+6
| | | | | | | | manifest * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getManifestAttribute) added check fo null manifest to prevent npe. * /tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: added test for npe from getManifestAttribute * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: (createJarWithContents) enhanced to be able to create jar without manifest.
* Removed most of checks to no output from reproducersJiri Vanek2013-11-251-1/+1
|
* Fixed NPE in getting the attributeJiri Vanek2013-11-141-0/+4
|
* JNLPClassLoader cleanup, avoid Enumerations and use strict typing.Andrew Azores2013-11-131-77/+54
| | | | | | Iteration over Enumerations refactored to instead view Enumerations as Lists using Collections library. Type parameters added to some local variables and return types. For-loops refactored into for-each-loops.
* Enabled access to manifests' attributes from JNLPFile class, implemented ↵Jiri Vanek2013-11-131-9/+18
| | | | http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
* Removed suspicious return when (searchForMain) had null launchDesc in ↵Jiri Vanek2013-11-101-4/+2
| | | | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java.
* Java console resurrected and connected to new logging.Jiri Vanek2013-11-051-3/+5
|
* Avoid potential NPE in JNLPSecurityManager#addPermission when debug is enabledAndrew Azores2013-11-051-3/+7
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java: (addPermission) avoid NPE in JNLPClassLoader#getPermissions with debug enabled
* Fix PR1513, signed applets with external main-class supportAndrew Azores2013-10-291-15/+8
| | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (initializeResources) ask for user approval rather than throwing LaunchException for signed applets with external main-class
* Logic to extract main class attribute generalized to common methods.Jiri Vanek2013-10-211-32/+59
| | | | | | | | | | * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getMainClassName) is now calling (getManifestAttribute) (getManifestAttribute) new method, extract named attribute from url specified jar. Called by (checkForAttributeInJars) (checkForMain) is now calling (checkForAttributeInJars). Also logic of (checkForAttributeInJars) was taken from here. (checkForAttributeInJars) new method, read specific attribute from
* Minor fix in DEBUG initialisationJiri Vanek2013-10-201-1/+1
| | | | | * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java: (isPluginDebug) made private to prevent confusion. * plugin/icedteanp/java/sun/applet/PluginDebug.java: (DEBUG) initialized from JNLPRuntime.isDebug instead of incorrect JNLPRuntime.isPluginDebug.
* Resolve multiple-applet deadlock issue in JNLPClassLoaderAndrew Azores2013-10-161-62/+73
| | | | | | | | | | | | | | | | | | | | New lock used for synchronizing JNLPClassLoader#loadClass(String) to avoid deadlock condition when multiple applets are being loaded simultaneously. Regression test included. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (loadClassLock) private member for locking of loadClass method. (loadClass) synchronizes using new lock rather than instance intrinsic lock to avoid RH976833 deadlock * tests/reproducers/custom/JNLPClassLoaderDeadlock/testcases/JNLPClassLoaderDeadlockTest.java: new test for multiple applet deadlock condition * tests/reproducers/custom/JNLPClassLoaderDeadlock/resources/JNLPClassLoaderDeadlock.html: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_2.java: same * tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/Makefile: same
* Unit tests for BrowserAwareProxySelectorOmair Majid2013-10-012-5/+35
| | | | | | | Also move duplicate code for selecting a host and port depending on the protocol into JNLPProxySelector.getFromArguments. The semantics of 'sameProxy' are different between BrowserAwareProxySelector and JNLPProxySelector; the socks proxy is included in firefox.
* Introduced logging bottleneckJiri Vanek2013-09-2514-261/+176
|
* PR1474: Can't get javaws to use SOCKS proxyOmair Majid2013-09-241-12/+13
| | | | | | | | If there is a SOCKS proxy specified, use it for https, http, and ftp protocols too (as a fallback). 'sameProxy' now affects the https, http and ftp protocols, but not the socket protocol.
* Unit tests for JNLPProxySelectorOmair Majid2013-09-232-11/+7
| | | | | | | | | | This contains one functional change: - String host = uri.getSchemeSpecificPart().split(":")[0]; + String host = uri.getHost(); Given the URI of "socket://example.org", the first line evaluates to "//example.org", while the second one (correctly) evaluates to "example.org".
* PR1533: Inherit jnlp.packEnabled and jnlp.versionEnabled like other propertiesOmair Majid2013-09-091-5/+1
| | | | | | | | | | | | | | | | | | | | | | Treat jnlp.packEnabled and jnlp.versionEnabled just like other properties that can be set in one resource element and inherited/filtered in others. 2013-09-09 Omair Majid <omajid@redhat.com> * netx/net/sourceforge/jnlp/JNLPFile.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. Look up jnlp.packEnabled and jnlp.versionEnabled in any resources element. * netx/net/sourceforge/jnlp/PluginBridge.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Invoke file.getDownloadResources. (getDownloadOptionsForJar): Remove. * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testDownloadOptionsAppliedEverywhere): New method. (testDownloadOptionsFilteredOut): New method.
* Fix and tests for PR974, extension JNLPs unavailable when embedded in HTML ↵Andrew Azores2013-08-151-11/+1
| | | | applet tags
* Cleaned up "throws IOException" from HTMLPanel constructor and try/catches ↵Andrew Azores2013-07-251-8/+2
| | | | elsewhere which handled this
* Added java.vm.name read permission to fix Rhino evaluation of proxy PAC ↵Andrew Azores2013-07-221-0/+7
| | | | (RH982558)
* IcedTea-Web is now following XDG .config and .cache specification(RH947647)Jiri Vanek2013-07-181-0/+2
|
* Implemented new about dialogue (by Andrew Azores). Andrew added to authorsJiri Vanek2013-07-101-44/+28
|
* JNLP file is now re-downloading only if is local and have href. Real couse ↵Jiri Vanek2013-06-241-1/+1
| | | | of PR1473
* Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml filesJiri Vanek2013-06-212-5/+16
|
* Removed out-of date Boot13 classJiri Vanek2013-06-202-101/+0
|
* Made it work with OpenJDK build 25 by creating application as soon as possibleJiri Vanek2013-06-202-1/+6
|
* Extract NativeLibraryStorage class from JNLPClassLoaderAdam Domurad2013-06-031-126/+13
|
* Ensure JarFile handles do not leak.Adam Domurad2013-04-231-1/+10
|
* JNLPClassLoader unit tests for file leaksAdam Domurad2013-04-231-3/+3
|
* Fixed gifar vulnereability with automated testcaseJiri Vanek2013-04-174-10/+32
|
* Integration of unsigned applet confirmation dialogue.Adam Domurad2013-03-261-5/+12
|
* Print stacktrace for ClassFormatError's during classloadingAdam Domurad2013-03-221-0/+1
|
* Move stream closing utility in JNLPClassLoader to StreamUtilsAdam Domurad2013-03-051-18/+5
|
* Extract JNLPClassLoader initialization logic into createInstance() methodAdam Domurad2013-02-251-21/+38
|
* Avoid potential NPE on shutdown.Adam Domurad2013-02-211-1/+1
|
* Fix PR580: http://www.horaoficial.cl/ loads improperly.Adam Domurad2013-02-131-31/+62
|