2

  More    Next Blog»

anujkrsharmax86@gmail.com   Dashboard   Sign Out

Inspired by Actual Events
Dustin's Software Development Cogitations and Speculations
My observations and thoughts concerning software development (general development, Java, JavaFX, Groovy, Flex, ...).

Home

About This Blog

My Publications

Thursday, March 31, 2011

License

JDK 7: New Interfaces, Classes, Enums, and Methods
There are numerous new classes, enums, methods, and interfaces being added to JDK 7 that may not get
significant coverage in the blogs and articles on Java 7. In this post, I list and describe some of these. Note
that several of these are not really "miscellaneous," but were necessary additions to make greater new
functionality available.
The new java.util.Objects class provides some nice static convenience methods as described in my
blog post JDK 7: The New Objects Class.
Three new convenience methods have been added to the already useful Collections class:
Collections.emptyIterator(), Collections.emptyListIterator(), and Collections.emptyEnumeration().

Inspired by Actual Events
by Dustin Marx is
licensed under a
Creative Commons
Attribution 4.0
International License.

Disclaimers

New static methods for comparing primitives [similar to the already existing
Double.compare(double,double) and Float.compare(float,float)] are now available for additional
numeric/boolean types: Byte.compare(byte, byte), Integer.compare(int,int),
Long.compare(long,long), Short.compare(short,short), and Boolean.compare(boolean,boolean).

The opinions expressed
here are my own and are
not necessarily shared
by my employer, any
clients, any other
organization, or any
other individual.

Calendar gets some Java 7 attention (even if it's not the overhaul many of us had hoped for):
Calendar.isWeekDateSupported(), Calendar.getWeekYear(), Calendar.setWeekDate(int,int,int), and
Calendar.getWeeksInWeekYear(). The TimeZone.observesDaylightTime() method has also been
added. The implementation of this interface that most of us use, GregorianCalendar, has these
methods implemented now.

Any trademarked names
or labels used in this
blog remain the property
of their respective
trademark owners.

There are several changes related to Java reflection:
The java.lang.reflect.Modifier class has new static methods: classModifiers(),
interfaceModifiers(), constructorModifiers(), methodModifiers(), and fieldModifiers().
I have written a more detailed blog post on the new ReflectionOperationException class.
ConcurrentLinkedDeque and LinkedTransferQueue are now available.
The java.util.ConcurrentModificationException has two new constructors that each accept a cause
and one of them accepts a detailed message as well.
The java.net.ProtocolFamily interface is new as is the enum StandardProtocolFamily that
implements this interface.
The class InetAddress has a new method called getLoopbackAddress(). The method
InetAddress.isLoopbackAddress() has been available since JDK 1.4.
ProcessBuilder gets a new nested class called Redirect, which itself contains a nested Type enum.

No guarantees are made
regarding the accuracy
or usefulness of content
on this blog, though I do
make an effort to be
accurate.
Links to external sites do
not imply endorsement
of the linked‐to sites.
No animals were harmed
in the writing of this
blog.

The Character class now contains a nested UnicodeScript enum.
BitSet.valueOf(long[])

Search This Blog

Multiple JDBC enhancements:
The Statement interface prescribes two new methods: closeOnCompletion() and
isCloseOnCompletion().
The java.sql.DatabaseMetaData interface has two new methods: getPseudoColumns()
and generatedKeyAlwaysReturned().
JDBC's CallableStatement gets two new overloaded getObject() methods that get an
object based on provided name or index along with the expected object's class type.
The Driver class got a new method Driver.getParentLogger() that returns a
java.util.logging.Logger. CommonDataSource gets the same new method.

Search

Translate

Select Language
Powered by 

Blog Archive

File.toPath() provides a java.nio.file.Path.

►  2016 (5)

There are several new classes and interfaces related to security:

►  2015 (62)

The new java.security.AlgorithmConstraints interface "specifies constraints for
cryptographic algorithms, keys (key sizes), and other algorithm parameters."

►  2014 (74)
►  2013 (75)

Translate

size()      }      else if (it." Another approach would be to search the generated Javadoc for the same string.  22.  10." ►  2012 (112) CertPathValidatorException got a new constructor that accepts an implementation of the new nested CertPathValidatorException. The following Groovy script provides a brute force mechanism for searching the online JDK 7 Javadoc API documentation for methods. JDK 7 JMX Platform Management Beans: A First Peek Google Gears Skidding to a Stop Software Development Isn't About Beans Better JDBC With Groovy Sql My Thoughts on Thoughts on Developer Longevity Manning Deal of the Day: Making Java Groovy ►  February (20) ►  January (21) ►  2010 (156) ►  2009 (158) ►  2008 (185) ►  2007 (57) Labels ActionScript (28) AIR (1) Akka (2) Android (5) AngularJS (1) Annotations (2) . it highlights the new nested Locale.  11.toURL().groovy      def anchorString = '<a href="'   def anchorStringUpper = anchorString. Numerous Swing/AWT‐related changes.substring(startIndex. both of which I discussed in my blog post JDK 7 JMX Platform Management Beans: A First Peek.indexOf(anchorStringUpper) + anchorStringUpper.BasicReason enum implements the CertPathValidatorException. classes. All of the above are representative of changes coming to the Java SDK with Java SE 7. The Locale class documentation mentions "1.indexOf('"'..Category enum.  17.7" sixteen times! The 1. Two new methods have been added to Throwable to support the new try‐with‐resources feature: addSuppressed(Throwable) and getSuppressed().. and Methods.  05. all exceptions and errors can support providing the suppressed exceptions as appropriate.  07. The Javadoc seems to have been updated fairly well to indicate "Since: 1.509 certificate is revoked. but this was easy to write and does the job.getAllPlatformMXBeanInterfaces() method.size()      }         if (startIndex > ‐1)      {         def endIndex = it. AssertionError has a new constructor accepting a cause. JDK 7: Reflection Exception Handling with Reflecti.  09.  13." I threw this together quickly and believe there are several more elegant ways to do this. Classes.  04.7" for features new to JDK 7.  25." The static method forLanguageTag(String) provides an instance of Locale corresponding to the provided String representing the "specified IETF BCP 47 language tag.Reason interface and "enumerates the potential reasons that a certification path of any type may be invalid.  print ? #!/usr/bin/env groovy   // searchJdk7ApiDocsForSince17.  16.  03. The new CertPathValidatorException.  08.html".7 changes to the class are called out in the class's main description. enums. Numerous NIO‐related changes (NIO.contains(anchorStringUpper))      {         startIndex = it. Among other things.contains(anchorString))      {         startIndex = it.add(url)   ►  December (20) ►  November (10) ►  October (41) ►  September (5) ►  August (19) ►  July (15) ►  June (13) ►  May (20) ►  April (17) ▼  March (13) JDK 7: New Interfaces. Applet even gets something in Java 7: Applet..eachLine   {      def startIndex = ‐1      if (it.indexOf(anchorString) + anchorString.7. One way to "search" for new Java 7 features would be to download the source code and search it for "1.isValidateRoot(). One significant method is toLanguageTag() that provides "a well‐formed IETF BCP 47 language tag representing this locale.  24.  06. There is a new reflection exception called WrongMethodTypeException. There are numerous new concurrency support constructs coming to JDK 7 above and beyond some I highlighted above.InvokeDynamicBootstrapError is thrown "to indicate that an invokedynamic instruction" has had some sort of problem (not found or other problem).." The Java Tutorials' Creating a Locale is already updated to reflect using Java 7 features of this class..Builder class and the new nested Locale..toUpperCase()   def urls = new ArrayList<String>()   "http://download.2).7.  02. New JMX features include the PlatformManagedObject interface and the ManagementFactory. The MethodHandle class and related functionality are further described in A glimpse at MethodHandle and its usage. Enums. view plain 01.  18.  20. Because both Exception and Error extend Throwable.com/javase/7/docs/api/allclasses‐frame.Reason interface as a parameter and there is a method to get this reason. and interfaces that contain the string "1. methods.  19. JDK 7: The New Objects Class JDK 7: The Diamond Operator JDK 7: Java Switching on Strings Is Here The New XML Stack in JDK 7 O'Reilly Deal of the Day: 50% Off Ebooks and Japan. there are numerous additional changes." ▼  2011 (214) The new invokedynamic feature requires new support: The new java.  23." The very extensive documentation for this method points out an important caveat: "there is no guarantee that toLanguageTag and forLanguageTag will round‐trip.  14.dyn. endIndex)            urls. startIndex)         if (endIndex > startIndex)         {            def url = it.oracle. However.  15.The new CertificateRevokedException "indicates an X.  12.  21.

  35.  36.  39.html java/applet/Applet.html java/nio/file/attribute/AclEntryType.html javax/lang/model/util/AbstractTypeVisitor6.7" and provides a list of Javadoc files for classes.html java/nio/channels/AsynchronousChannel.  38.html java/nio/channels/AsynchronousByteChannel.  57.html java/nio/channels/AsynchronousChannelGroup.Builder.  46.html java/util/concurrent/locks/AbstractQueuedLongSynchronizer.  59.  52. enums.toURL().html javax/lang/model/util/AbstractElementVisitor7.html java/nio/channels/AsynchronousSocketChannel.7" string. interfaces.7 (${match ? eachUrl : '‐ '})!"   }      println "Javadoc files with 1.each   {      println "\t${it}"   }   Ant (11) AOP (1) Apache Commons (3) Arduino (1) BlazeDS (4) Blogging (8) Book Review (65) C/C++ (2) C# (2) Cassandra (3) Clojure (1) Cloud Computing (6) Contributed (2) Database (11) Dozer (1) Eclipse (6) ECMAScript (1) Firefox (6) Flex (55) General Development (167) GlassFish (9) Gradle (15) Groovy (145) Guava (16) Hazelcast (1) The above Groovy script searches the Javadoc documentation for "1.html javax/swing/plaf/basic/BasicColorChooserUI."   def withJava7 = new ArrayList<String>()   urls.  51.  41.7 text.26.html java/security/AlgorithmConstraints.html javax/swing/plaf/basic/BasicComboBoxUI.  43. and enums that have been marked "Since 1.html javax/sound/sampled/AudioFormat. it can be assumed that these are classes.html java/lang/AutoCloseable.  27.oracle.html java/nio/file/AccessMode.html java/nio/file/attribute/AclEntry. The following Javadoc HTML files were identified by the script as containing the string "1.html java/nio/file/attribute/BasicFileAttributes.  55.html java/nio/channels/AcceptPendingException.html javax/lang/model/util/AbstractTypeVisitor7.  45.7" somewhere within the page's documentation.add(it)         }      }      catch (Exception ex) // catch HTTP problems like 404 or 504.  53.html java/nio/channels/AsynchronousFileChannel. interfaces.toString()}"      }      println "${numUrlsMatching} of ${numUrlsProcessed} match 1.contains("1.7"))         {            numUrlsMatching++            match = true            withJava7.  30.html java/nio/file/attribute/AclEntryFlag.  49. With the exception of a few possible cases in which "1.each   {      def match = false      numUrlsProcessed++      def eachUrl = "http://download.  47.  31.  28.html java/nio/file/attribute/AclEntry.html java/util/concurrent/locks/AbstractQueuedSynchronizer. and methods that include the "1.html java/nio/file/attribute/AclFileAttributeView.  40.  44.  50.html java/nio/channels/AsynchronousServerSocketChannel.  29.Encoding.  54.size()} total URLs to search for 1.7.html java/nio/file/AtomicMoveNotSupportedException.html java/nio/channels/AlreadyBoundException.com/javase/7/docs/api/${it}"      try      {         if (eachUrl.7" string.  48." HTML5 (24) IntelliJ IDEA (7) J2SE 5 (4) Java (General) (297) Java EE 5 (7) Java EE 6 (6) Java EE 7 (7) Java EE 8 (1) javax/lang/model/util/AbstractAnnotationValueVisitor7.html java/nio/file/attribute/AclEntryPermission.  37.  56.html java/nio/file/AccessDeniedException.  33. 4020 files were searched and 304 of those files contained at least once occurrence of the "1.html java/lang/AssertionError.html java/nio/channels/spi/AsynchronousChannelProvider.      {         println "ERROR trying to acces ${eachUrl}: ${ex.html java/nio/file/attribute/AttributeView.7: "   withJava7.  34.text.        }      }   }      def numUrlsProcessed = 0   def numUrlsMatching = 0   println "${urls.  42.html Java SE 10 (1) Java SE 6 (29) Java SE 7 (51) Java SE 8 (44) Java SE 9 (5) JavaFX (49) JavaOne 2010 (55) JavaOne 2011 (39) JavaOne 2012 (36) JavaOne 2013 (1) JavaOne 2014 (1) JavaScript (28) JAX‐RS (10) JAX‐WS (2) JAXB (13) JAXX (1) JBoss (3) JDBC (4) JDeveloper (2) JEdit (1) JFreeChart (11) JMX (51) JPA (8) jQuery (1) JRuby (8) JSF (5) JSON (6) JUnit (7) LaTeX (1) Linux (7) .  58.7" is used for something else.  32. According to the script's output.

html java/nio/channels/Channels.html javax/swing/BorderFactory.html java/util/ConcurrentModificationException.html java/security/cert/CRLReason.html java/lang/Boolean.html java/sql/Connection.html java/sql/CallableStatement.html java/nio/channels/CompletionHandler.html java/io/File.html java/nio/file/FileAlreadyExistsException.html java/lang/Character.html java/sql/Driver.html javax/swing/tree/DefaultTreeCellRenderer.html javax/swing/plaf/basic/BasicScrollBarUI.html java/nio/file/DirectoryIteratorException.html java/nio/file/attribute/FileAttributeView.html java/lang/ClassLoader.html javax/swing/text/DefaultStyledDocument.html java/beans/FeatureDescriptor.html java/util/Collections.html java/lang/Character.html java/util/Calendar.html java/nio/file/attribute/FileAttribute.html javax/swing/plaf/basic/BasicTreeUI.html java/nio/file/DirectoryStream.html java/nio/file/DirectoryNotEmptyException.Filter.html java/util/spi/CurrencyNameProvider.UnicodeBlock.html javax/swing/tree/DefaultTreeSelectionModel.html java/security/CryptoPrimitive.Reason.html java/nio/file/attribute/DosFileAttributes.html java/awt/Cursor.UnicodeScript.html java/util/Currency.html javax/swing/plaf/basic/BasicMenuItemUI.html javax/swing/plaf/basic/BasicFileChooserUI.html java/beans/Expression.html javax/net/ssl/ExtendedSSLSession.html java/nio/channels/DatagramChannel.html javax/sql/CommonDataSource.html java/nio/file/DirectoryStream.html javax/lang/model/util/ElementScanner7.html java/util/zip/DeflaterOutputStream.html javax/print/attribute/standard/DialogTypeSelection.html java/nio/BufferPoolMXBean.html java/security/cert/CertPathValidatorException.html java/sql/DatabaseMetaData.html javax/lang/model/element/ElementKind.net News A beginner’s guide to Java Persistence locking Thou Shalt Not Name Thy Method "Equals" Why 12 Factor Application Patterns.html java/nio/file/Files.html java/awt/EventQueue.html Log4j2 (2) Lucene (1) Maven (1) Mobile Development (3) MySQL (4) NetBeans (67) Noop (1) NoSQL (2) Open Source (11) OpenLaszlo (20) OpenXML4J (3) Oracle (52) OSGi (1) PHP (7) POI (5) Portals (1) PostgreSQL (5) PowerShell (4) properties (4) Publications (28) Puppet (1) Raspberry Pi (2) REST (17) RMOUG (16) Ruby (2) Scala (16) Security (1) Servlets (2) Software Development Management (7) Spring Framework (20) Subversion (1) Swing (1) TestNG (2) Unit Testing (13) Vista (6) VisualVM (9) Web Development (12) WildFly (1) Windows (5) XML (16) XQuery (11) Currently Reading JavaScript Concurrency java.html java/awt/FileDialog.html java/nio/file/attribute/DosFileAttributeView.html javax/lang/model/util/ElementKindVisitor7.html java/util/concurrent/ConcurrentLinkedDeque.html java/util/zip/Deflater.html java/security/cert/CertPathValidatorException. Microservices and CloudFoundry Matter .html java/nio/file/ClosedDirectoryStreamException.html javax/lang/model/util/ElementKindVisitor6.html java/security/cert/Extension.html java/lang/Byte.html java/nio/file/attribute/FileOwnerAttributeView.html javax/lang/model/type/DisjunctiveType.html javax/swing/plaf/FileChooserUI.html java/security/cert/CertPathValidatorException.html java/lang/Character.html java/nio/file/CopyOption.html java/awt/Container.BasicReason.html java/security/cert/CertificateRevokedException.java/nio/file/attribute/BasicFileAttributeView.html java/nio/channels/FileChannel.html java/util/BitSet.html java/nio/channels/FileLock.

html java/lang/Long.2.html java/nio/file/NotDirectoryException.html java/nio/file/NotLinkException.html java/util/zip/GZIPOutputStream.html java/beans/Introspector.html java/net/InetAddress.html java/nio/file/FileSystemLoopException.html java/lang/LinkageError.html java/nio/file/FileVisitResult.html java/awt/GraphicsDevice.html java/awt/font/NumericShaper.html java/nio/channels/IllegalChannelGroupException.html java/nio/file/attribute/FileTime.html java/nio/file/LinkPermission.html java/util/IllformedLocaleException.Category.html java/nio/channels/MembershipKey.html java/util/logging/Logger.WindowTranslucency.html java/nio/file/FileSystems.html java/awt/GraphicsDevice.html java/awt/event/MouseWheelEvent.html java/util/GregorianCalendar.html java/awt/GraphicsConfiguration.html java/util/Objects.html javax/sound/midi/MidiDeviceTransmitter.html java/util/concurrent/ForkJoinTask.html java/util/concurrent/ForkJoinPool.html java/util/Locale.html java/util/concurrent/ForkJoinWorkerThread. Extension Modules Default Constructors (by Mala Gupta.html java/lang/reflect/Modifier.html java/nio/file/OpenOption.html java/lang/Integer.net Articles OpenICOM: A JPA Framework for Integrated Collaboration Environments: Part 2.html java/awt/event/KeyEvent.html java/util/Locale.5 pours on the speed Java finally gets microservices tools GitHub Enterprise is coming to Bluemix Java 9 to address GTK GUI pains on Linux Npm Inc.html javax/swing/JSlider. Author of "OCA Java SE 7 Programmer I Certification Guide") Spring Roo and WebFlow (by Ken Rimple.html java/util/concurrent/LinkedTransferQueue.html java/net/InetSocketAddress.Builder.html javax/swing/event/HyperlinkEvent.html javax/swing/text/html/HTMLFrameHyperlinkEvent.html java/awt/font/NumericShaper.html java/util/spi/LocaleNameProvider.html java/awt/event/InvocationEvent.html javax/swing/JTree.html java/nio/file/NoSuchFileException.html java/nio/file/attribute/FileStoreAttributeView.html java/nio/file/attribute/GroupPrincipal.html java/dyn/InvokeDynamicBootstrapError.java/nio/file/FileStore.html java/nio/file/spi/FileTypeDetector.html javax/swing/text/JTextComponent.html javax/swing/plaf/LayerUI.html javax/swing/JLayer.html java/nio/file/FileSystem.html javax/swing/plaf/nimbus/NimbusLookAndFeel.html javax/swing/JList. Co‐author. Spring Roo in Action) PanelMatic 101 SWELL ‐ An English‐ Like DSL for Swing Testing Oracle Technology Network (OTN) Articles Sponsored: The 3 Week Diet Tech Article: Oracle SOA Suite 12.html java/nio/channels/InterruptedByTimeoutException.html java/nio/file/Path.EmptySelectionModel.html javax/sound/midi/MidiDeviceReceiver.html java/lang/management/ManagementFactory.html java/nio/file/FileSystemException.html java/net/NetworkInterface.1 New Features Sample Chapter: The Definitive Guide To Oracle FDMEE: Software Development Life Cycle Tech Article: Oracle Cloud Integration Sample Chapter: Oracle SOA Suite 12c: Startup and Shutdown JavaWorld Featured Articles GitLab 8.html java/nio/channels/NetworkChannel. explores foundation for JavaScript installer Subscribe to this My Blog Non‐ Technical Blog Posts Observa tions of the Practica l Kind My 20 Favorite X‐Files Episodes 4 weeks ago .html java/nio/file/LinkOption.html java/nio/channels/MulticastChannel.html javax/sound/midi/MetaMessage.Range.html java/nio/file/FileVisitor.html java/net/HttpURLConnection.html java/nio/file/FileVisitOption.html java/util/Locale.html java/nio/file/spi/FileSystemProvider.html javax/lang/model/element/Parameterizable.html Top 10 Easy Performance Optimisations in Java Inconsistent operation widen rules in Java java.

html java/net/ProtocolFamily.html javax/swing/plaf/synth/SynthLabelUI.html javax/net/ssl/SSLParameters.html Similar Technical Blogs Blogging Techstacks CryptoNark 0.html javax/net/ssl/SSLEngine.html java/util/concurrent/RecursiveTask.html java/security/cert/PKIXReason.html java/nio/file/StandardCopyOption.6 Released 1 year ago Michael's Software Thoughts & Ramblings Log4j 2 Fixes Auto Reconfigure Thread Leak 2 years ago Bill Jackson's Software Ruminations Advanced Java "Stump the Chump" Interview Questions Part 3 6 years ago .html java/sql/Statement.html java/nio/file/Paths.html java/beans/PropertyChangeEvent.html javax/swing/plaf/synth/SynthDesktopIconUI.html java/lang/Short.html javax/rmi/ssl/SslRMIServerSocketFactory.html javax/lang/model/element/QualifiedNameable.html java/nio/channels/spi/SelectorProvider.html java/util/logging/PlatformLoggingMXBean.html java/util/Scanner.html javax/swing/plaf/synth/SynthMenuBarUI.html java/nio/file/attribute/PosixFileAttributeView.html javax/lang/model/SourceVersion.html javax/swing/plaf/synth/SynthCheckBoxUI.html java/nio/channels/ShutdownChannelGroupException.html java/net/StandardProtocolFamily.html java/lang/management/PlatformManagedObject.html javax/swing/plaf/synth/SynthInternalFrameUI.html java/nio/file/attribute/PosixFileAttributes.html javax/sound/midi/ShortMessage.html java/nio/channels/ReadPendingException.html javax/net/ssl/SSLServerSocket.html java/sql/ResultSet.html java/net/StandardSocketOption.html javax/sql/rowset/RowSetFactory.html javax/net/ssl/SSLSocket.html java/nio/file/attribute/PosixFilePermission.html java/util/SimpleTimeZone.html java/awt/SecondaryLoop.html java/nio/file/StandardWatchEventKind.html java/nio/file/SecureDirectoryStream.html javax/lang/model/util/SimpleAnnotationValueVisitor7.html javax/swing/plaf/synth/SynthColorChooserUI.Redirect.html java/nio/channels/ServerSocketChannel.html javax/lang/model/util/SimpleElementVisitor7.html javax/swing/plaf/synth/SynthMenuItemUI.html java/nio/file/StandardOpenOption.html javax/swing/plaf/synth/SynthLookAndFeel.html javax/swing/plaf/synth/SynthComboBoxUI.html javax/swing/plaf/synth/SynthFormattedTextFieldUI.html javax/swing/plaf/synth/SynthButtonUI.html java/nio/file/SimpleFileVisitor.html javax/sql/rowset/RowSetProvider.html java/lang/ProcessBuilder.html java/util/concurrent/Phaser.html java/net/SocketOption.html javax/swing/SwingUtilities.html javax/swing/plaf/synth/SynthDesktopPaneUI.html javax/swing/plaf/synth/SynthEditorPaneUI.html java/sql/PseudoColumnUsage.html java/nio/channels/SocketChannel.html javax/swing/plaf/synth/SynthListUI.html javax/swing/plaf/synth/SynthCheckBoxMenuItemUI.html javax/lang/model/util/SimpleTypeVisitor7.html java/nio/file/attribute/PosixFilePermissions.html java/nio/channels/SeekableByteChannel.html java/util/concurrent/RecursiveAction.html javax/swing/border/StrokeBorder.html java/lang/ReflectiveOperationException.html java/util/concurrent/ScheduledThreadPoolExecutor.java/nio/file/PathMatcher.5.html java/lang/ProcessBuilder.html javax/swing/plaf/synth/SynthMenuUI.

html java/nio/channels/WritePendingException.html java/nio/file/WatchKey.html javax/swing/plaf/synth/SynthTextFieldUI. However.html java/util/concurrent/TransferQueue.html java/security/cert/X509CertSelector.lang.javax/swing/plaf/synth/SynthOptionPaneUI.html javax/swing/plaf/synth/SynthPanelUI.html java/beans/XMLEncoder.html javax/swing/plaf/synth/SynthTextAreaUI.7" in its Javadoc documentation (many new constructs in java. client.html javax/swing/plaf/synth/SynthSpinnerUI.html java/beans/Transient.html javax/swing/plaf/synth/SynthScrollPaneUI.html javax/swing/plaf/synth/SynthSliderUI.html java/lang/Throwable.html javax/swing/plaf/synth/SynthRadioButtonMenuItemUI. JMX) to general (new Objects .html java/awt/Window.html java/util/zip/ZipInputStream.html java/net/URLClassLoader.html javax/lang/model/type/TypeKind.html javax/swing/plaf/synth/SynthViewportUI.html java/nio/file/WatchEvent.dyn do not have "1.html javax/swing/plaf/synth/SynthTableHeaderUI.html javax/swing/plaf/synth/SynthSplitPaneUI.html java/util/zip/ZipFile.html java/nio/file/attribute/UserPrincipalNotFoundException.html javax/swing/plaf/synth/SynthTreeUI.html java/nio/file/attribute/UserPrincipal.html javax/sound/midi/SysexMessage.html java/beans/XMLDecoder.html java/awt/Toolkit.html java/util/zip/ZipOutputStream.html java/nio/file/attribute/UserPrincipalLookupService.html java/nio/file/WatchService.html javax/swing/plaf/synth/SynthPasswordFieldUI.html javax/swing/plaf/synth/SynthTextPaneUI.html java/security/cert/X509CRLEntry.html javax/swing/plaf/synth/SynthRadioButtonUI.Type.html javax/swing/plaf/synth/SynthPopupMenuUI.html java/dyn/WrongMethodTypeException.html javax/swing/plaf/synth/SynthTabbedPaneUI.html java/nio/file/WatchEvent.html javax/swing/plaf/synth/SynthToolBarUI.html javax/swing/plaf/synth/SynthRootPaneUI.html javax/lang/model/type/TypeVisitor.Modifier.html javax/swing/plaf/synth/SynthToolTipUI.html java/nio/file/WatchEvent.html javax/swing/plaf/synth/SynthSeparatorUI.html java/awt/Window.html javax/swing/plaf/synth/SynthToggleButtonUI.7" in their documentation.html java/nio/file/Watchable. for example).html javax/swing/plaf/synth/SynthScrollBarUI.html java/util/concurrent/ThreadLocalRandom.html Not everything new to JDK 7 is properly labeled with "1.html javax/swing/plaf/synth/SynthProgressBarUI.html javax/lang/model/util/Types.Kind.html javax/lang/model/util/TypeKindVisitor7.html javax/lang/model/UnknownEntityException.html javax/net/ssl/X509ExtendedTrustManager. the list above is probably fairly close to the set of files with changes significant enough to be identified in the documentation. Conclusion The changes to JDK 7 APIs range from specific (reflection.html javax/swing/plaf/synth/SynthTableUI. concurrency.html java/nio/file/attribute/UserDefinedFileAttributeView.html javax/swing/plaf/synth/SynthUI.html java/util/TimeZone.

While I knew my original approach was "brute force" and had some ideas for improvements in mind. It seems like a great use to show off the power of parallel processing with gpars. Nice use of Groovy :). My pleasure Dustin. nice Groovy script and a great heads up on Java 1..sourceforge. Java 7 Developer Blog has posts with additional in‐depth coverage of JDK features such as try‐with‐ resources and setting up NetBeans 7 with JDK 7. For me the most exciting features are NIO. was using TagSoup to parse the files and I'm glad your example demonstrates that... can't wait to see what comes out of that bytecode instruction April 1.7 changes! Was running a bit slow for me however. Alex has posted twice on JDK 7 topics with focus on JDK 7 concurrency (JSR 166) and NIO. and thanks again for taking the time to share this info.. 2011 at 2:44 PM Christian Ullenboom said. http://javadiff.net/ would be a good idea. I also like your demonstration of Grape's @Grab. April 3...class) and range in degree to which they will impact the typical Java developer. 2011 at 11:12 AM .com/899826 April 2. the idea of using gpars never occurred to me and is an excellent idea. 2011 at 10:47 AM kellyrob said.github.2 (JSR 203). Java SE 7 10 comments: Martijn Verburg said. April 1.. 2011 at 2:01 PM Dustin said. Thanks for pointing out the existence of JDiff.. 2011 at 4:08 AM Dustin said. Indeed. Posted by @DustinMarx at 10:46 PM +2   Recommend this on Google Labels: Groovy. but didn't do.. Thanks for taking the time to improve the script and to leave a comment letting others and me know about it.. 2011 at 8:05 PM kellyrob said.github. Thanks again for posting this enhanced code at https://gist. 2011 at 5:03 AM Dustin said. One of the ideas I was thinking about. so I threw in some GPars goodness to kick it up a notch :) https://gist. Dustin April 3.. The list above helps provide an idea of what types of changes an individual Java developer might look forward to with JDK 7..2 and invokedynamic. Christian..com/899826. I wasn't aware of this handy tool before your post. April 3. Dustin April 2. kellyrob..

. April 5. enums... the newly available Objects class is the obvious ( at least to me ) choice for implementing. I wish the Javadoc team would provide a tool to lead the way on this. Matt. I find myself needing to handle command‐line arguments in Java either for Java‐based applications or for main() function....Matt Doar said. HTML5 Date Picker I recently posted that I had decided to use Opera in my HTML5 demonstrations for RMOUG Training Days 2011 ...tutego. Serializing Java Objects with Non‐Serializable Attributes There are multiple reasons one might want to use custom serialization instead of relying on Java's default serialization. As I stated in that post. Dustin April 5. Nice groovy work! I'm the author of JDiff and getting the complete API diff working was fiddly as I recall. I agree with you that it'd be nice to have an "official" or "standard" tool for doing these types of things. and interfaces being added to JDK 7 that may not get significant coverage in the blogs and .. 2011 at 3:40 AM Post a Comment Links to this post Create a Link Newer Post Home Older Post Popular Posts Checking for Null or Empty or White Space Only String in Java .Objects class that would "hold commonly‐writte.NET Framework 4 introduces a new method on its String class called IsNullOrWhiteSpace that checks whether a provided String is null. One of the mo. Command‐line Parsing with Apache Commons CLI From time to time.. em. Guava's Objects Class: Equals. Thanks for the comment and for all the time and effort invested in JDiff. HashCode... and ToString If you are fortunate enough to be using JDK 7 .. JDK 7: New Interfaces. 2011 at 8:10 PM tutego Blog said. You might like http://www.de/blog/javainsel/2011/07/enumerate‐every‐new‐type‐and‐attribute‐ in‐java‐7‐api‐with‐a‐homebrewed‐doclet/ too......util. and Methods There are numerous new classes.. Enums.. . a bi... Classes. July 28. 2011 at 11:18 AM Dustin said. JDK 7: The New Objects Class It was announced approximately 18 months ago that JDK 7 would include a new java. JDiff is a great idea and something I was glad to learn about. Filtering and Transforming Java Collections with Guava's Collections2 One of the conveniences of Groovy is the ability to easily perform filtering and transformation operations on collections via Groovy's . methods.

. Simple template..Date class (since JDK 1.util.0) and the. Seven Indispensable NetBeans Java Hints I have found NetBeans Java Hints to be extremely useful in Java development . Software Development @DustinMarx Support Wikipedia View my complete profile Affiliations Portions of this blog are syndicated at JavaWorld.. Powered by Blogger.Date/Time Formatting/Parsing.. In this blog post I look at NetBeans Java Hints that I deem i. and Java Code Geeks. . DZone/JavaLobby. Java developers have worked with dates and times via the java. Java 8 Style Since nearly the beginning of Java .