In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article editor for everyone to introduce in detail "J2SE 1.4.2 enhanced features", detailed content, clear steps, details handled properly, I hope that this "J2SE 1.4.2 enhanced what features" article can help you solve doubts, the following follow the editor's ideas slowly in-depth, together to learn new knowledge bar.
Virtual machine
Runtime performance XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" / >
Client HotSpot compiler, mainly in the compilation speed and footprint improvements.
Server HotSpot compiler, which uses SSE and SSE2 instructions when supported by processors and operating systems on IA32 platforms.
Faster constant division operation.
Faster floating-point quadratic power division operation.
Faster NullPointerException processing.
Core library
The network
NTLM authentication for http and https is now supported on the windows platform.
HTTP redirection to relative URL is supported, but prior to 1.4.2, we required that the redirected URL must be an absolute URL address.
New I Dot O (NIO)
The finalize method of the original Channel class (SocketChannel,ServerSocketChannel, etc.) has been removed.
I/O
On Windows2000/XP, the default encoding of Windows's locale does not have a corresponding ANSI code page to convert from utf-16le to utf-8. Compatibility with existing ASCII text encoding and the ability to handle output systems with this locale are provided in this version.
Internationalization
Changed the installer for the Windows platform, mainly on the supported locale. There is now a single installer, and if the Windows system supports only European languages, support for European languages will be installed by default. If the Windows system supports at least one non-European language family, support for all languages will be installed. Users can customize the installation of other languages during installation.
Safety
Many new certificates and encryption algorithms have been added to this version, such as CA certificates, AES (Advanced Encryption Standard), SHA-256,SHA-384 and SHA-512 hash algorithms.
Comprehensive library
JNDI
Fix some bug.
The JNDI/LDAP service now provides support for using SSL connections when requesting access to the LDAP server.
In addition, users do not have to specify the port number in the LDAP URL. The default port number for non-SSL connections is 389, while the default port number for SSL connections is 636. In versions prior to 1.4.2, the default port number for all connections was 389.
User interface
Java sound technology
Port is now supported on Windows and Solaris.
ALSA (Advanced Linux Sound Architecture) is now supported.
It is now possible to have both capture/ and playback on Lunux.
Java 2D technology
A lot of bug has been fixed in 1.4.2. A lot of work has been done to enhance full-screen support in Window. There are also corrections to font handling, support for 24bit pixels in Linux, and bug locked by ide. Wait.
Input method
The Thai input method is now bundled in 1.4.2, but it is turned off by default. To enable it, you can move the thaiim.jar located in the lib/im directory of jre to the lib/ext directory.
On Windows XP, you may have experienced such problems: for example, the input method cannot be switched or the input method toolbar cannot be displayed. If you have encountered such a problem, please use the latest Windows xp service pack.
AWT
Fixed that on Windows2000 and XP, a TextArea only displays a vertical bar of bug when SCROLLBARS_BOTH is set.
Fixed deadlock from a Runnable run mode window in 1.3.1 and 1.4.
Fixed bug that cannot enter text in Windows input method without ANSI code page.
Swing
Two new Look&Feel:Windows XP lags and GTK+ lags are introduced.
Deployment
Improvement in startup time
The core library is optimized to improve startup time. For a small command line application, the startup time increased by 30%; for a small Swing application, the startup time increased by 14% to 20%.
Applet
In 1.4.1, calling a modular pop-up window from the stop () or destroy () method of Applet may cause some problems, such as NullPointerException, or the dialog box does not display, or even exists after the Applet is destroyed, in the worst case, Browser dies. These issues were fixed in 1.4.2.
In 1.4.1, java.applet.getDocumentBase () returns the URL of a directory that contains the document for this Applet. In 1.4.2, it was fixed to return the document's own URL. Similarly, java.applet.getCodeBase () returns the URL of Applet, which is now revised in 1.4.2 to return the URL of the directory containing this Applet.
In 1.4.2, when an applet is deployed via Java Plug-in (with cache on), if applet is in a JAR file with multiple class files, and if one of these classes calls the javax.crypto.Cipher.getInstance () method, then the request to access the same JAR file will fail and throw "java.lang.IllegalStateException:Zip file closed", which has now been corrected.
Java Plug-in technology
Java Plug-in now supports Mozilla 1.1 and later.
In this version, ActiveX Bridge technology is reimplemented. It allows JavaBean to be displayed in the ActiveX container like an ActiveX control. Unlike before, developers have to repackage their bean in order to use ActiveX Bridge.
JSobject can now return the correct dom element type.
Java web Start 1.4.2
It is realized that every time JAWS runs, it automatically detects all registered JRE in the computer.
Not only JNLP URL, but also .html and .jnlp files can now be opened and marked as bookmarks directly in the JAWS application manager.
Java tool
JPDA (Java PlatfoRM Debugger Architecture)
New interface features are added to JVMDI to allow multithreaded suspend and resume execution. This feature has also been added to JVMPI. They are:
JvmdiError SuspendThreadList (jint reqCount, jthread * reqList, jvmdiError * results)
JvmdiError ResumeThreadList (jint reqCount, jthread * reqList, jvmdiError * results)
In addition, interface functions that were not previously implemented in JVMDI are now implemented:
JvmdiError GetOwnedMonitorInfo (jthread thread, JVMDI_owned_monitor_info * infoPtr)
JvmdiError GetCurrentContendedMonitor (jthread thread,jobject * monitorPtr)
Java compiler (javac)
Added the synonym command-cp for the-classpath command option.
Added the-Xmaxerrors and-Xmaxwarns command options to limit the maximum number of errors and warnings printed on the Java console.
Javac also fixed some vital Bug., such as no longer erroneous detection of duplicate local class declarations, etc.
Javadoc tool
Several new command options have been added.
Read here, this "J2SE 1.4.2 enhanced what functions" article has been introduced, want to master the knowledge of this article still need to practice and use to understand, if you want to know more about the article, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.