Some Java Historiography
javaalmanac.io

New APIs in Java 5

Comparing Java 5 (build 1.5.0_22-oracle) with Java 1.4 (build 1.4.2_30-oracle).

Element Modification
java.awt.color
ICC_Profile
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
java.awt.datatransfer
Clipboard
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
java.awt.dnd
DragSource
  • added
DropTargetDragEvent
  • added
java.awt.event
InvocationEvent
  • added
KeyEvent
  • added
  • added
  • added
java.awt.image
AffineTransformOp
  • added
  • + implements Transparency
  • added
  • added
  • + implements Transparency
  • added
  • added
java.awt.peer
ComponentPeer
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
setBounds(int, int, int, int)
  • removed
  • added
ContainerPeer
  • added
  • added
  • added
FramePeer
  • added
  • added
MenuComponentPeer
  • added
  • added
TextComponentPeer
  • added
WindowPeer
  • added
  • added
  • added
java.awt
BorderLayout
  • added
  • added
  • added
Component
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Container.AccessibleAWTContainer
  • added
Container
  • added
  • added
  • added
  • added
  • added
Dialog
dispose()
  • removed
DisplayMode
  • added
FileDialog
  • added
  • added
  • added
Font
  • added
  • added
  • added
GraphicsConfiguration
  • added
  • added
GraphicsEnvironment
  • added
  • added
HeadlessException
  • added
Image
  • added
  • added
  • added
  • added
Insets
  • added
  • added
  • added
TextComponent
  • added
Toolkit
  • added
Window
  • added
  • added
  • added
  • added
  • added
java.beans
  • added
IndexedPropertyDescriptor
  • added
PropertyChangeSupport
  • added
  • added
  • added
PropertyDescriptor
  • added
  • added
PropertyEditorSupport
  • added
  • added
XMLDecoder
  • added
java.io
CharArrayWriter
  • added
  • added
  • added
File
compareTo(Object)
  • removed
  • + implements Closeable
  • + implements Flushable
  • + implements Closeable
  • + implements Closeable
  • + implements Appendable
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
PrintWriter
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
PushbackInputStream
  • added
  • added
  • + implements Closeable
  • + implements Readable
  • + implements Closeable
  • added
StringWriter
  • added
  • added
  • added
  • + implements Flushable
  • + implements Closeable
  • + implements Appendable
  • added
  • added
  • added
  • added
  • added
ObjectStreamConstants
  • added
  • added
  • added
  • added
  • added
java.lang.reflect
  • + implements AnnotatedElement
  • added
  • added
  • added
  • added
  • + implements GenericDeclaration
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Field
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • + implements GenericDeclaration
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Member
  • added
  • added
  • added
  • added
  • added
java.lang
  • added
  • added
  • added
  • + implements Comparable
  • added
  • added
Byte
  • added
compareTo(Object)
  • removed
  • added
Character.UnicodeBlock
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Character
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
ClassLoader
  • added
  • + implements AnnotatedElement
  • + implements GenericDeclaration
  • + implements Type
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Double
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
Float
  • added
compareTo(Object)
  • removed
  • added
  • added
IllegalArgumentException
  • added
  • added
IllegalStateException
  • added
  • added
Integer
  • added
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Long
  • added
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Math
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • + implements AnnotatedElement
  • added
  • added
  • added
  • added
  • added
SecurityException
  • added
  • added
Short
  • added
compareTo(Object)
  • removed
  • added
  • added
StackTraceElement
  • added
StrictMath
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • - extends Object
  • + extends AbstractStringBuilder
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
String
  • added
  • added
  • added
  • added
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
System
  • added
  • added
  • added
  • added
  • + implements Thread.UncaughtExceptionHandler
ThreadLocal
  • added
Thread
clone()
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
UnsupportedOperationException
  • added
  • added
  • added
  • added
  • added
  • added
  • added
java.math
BigDecimal
ONE
  • added
TEN
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
BigInteger
TEN
  • added
compareTo(Object)
  • removed
  • added
  • added
  • added
java.net
Authenticator
  • added
  • added
  • added
  • added
  • added
  • added
  • added
HttpURLConnection
  • added
  • added
  • added
  • added
Inet6Address
  • added
  • added
  • added
  • added
InetAddress
  • added
  • added
InetSocketAddress
  • added
  • added
  • added
  • added
  • added
ServerSocket
  • added
SocketImpl
  • added
Socket
  • added
  • added
URI
compareTo(Object)
  • removed
  • added
URLConnection
  • added
  • added
  • added
  • added
URLStreamHandler
  • added
URL
  • added
  • added
  • added
  • added
java.nio.channels.spi
SelectorProvider
  • added
java.nio.channels
  • + implements Closeable
java.nio.charset
Charset
  • added
compareTo(Object)
  • removed
  • added
java.nio
ByteBuffer
  • added
compareTo(Object)
  • removed
  • + implements Readable
  • + implements Appendable
  • added
  • added
  • added
  • added
compareTo(Object)
  • removed
  • added
DoubleBuffer
  • added
compareTo(Object)
  • removed
FloatBuffer
  • added
compareTo(Object)
  • removed
IntBuffer
  • added
compareTo(Object)
  • removed
LongBuffer
  • added
compareTo(Object)
  • removed
ShortBuffer
compareTo(Object)
  • removed
  • added
java.rmi.server
  • added
java.security.cert
CRLException
  • added
  • added
CertPathBuilderException
getCause()
  • removed
getMessage()
  • removed
printStackTrace()
  • removed
printStackTrace(PrintStream)
  • removed
printStackTrace(PrintWriter)
  • removed
toString()
  • removed
CertPathValidatorException
getCause()
  • removed
getMessage()
  • removed
printStackTrace()
  • removed
printStackTrace(PrintStream)
  • removed
printStackTrace(PrintWriter)
  • removed
toString()
  • removed
CertStoreException
getCause()
  • removed
getMessage()
  • removed
printStackTrace()
  • removed
printStackTrace(PrintStream)
  • removed
printStackTrace(PrintWriter)
  • removed
toString()
  • removed
CertificateEncodingException
  • added
  • added
CertificateException
  • added
  • added
CertificateParsingException
  • added
  • added
TrustAnchor
  • added
  • added
X509CRLEntry
  • added
X509CRLSelector
  • added
  • added
  • added
X509CRL
  • added
X509CertSelector
  • added
  • added
  • added
  • added
java.security.interfaces
  • added
  • added
  • added
RSAMultiPrimePrivateCrtKey
  • added
RSAPrivateCrtKey
  • added
RSAPrivateKey
  • added
RSAPublicKey
  • added
java.security.spec
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
InvalidKeySpecException
  • added
  • added
  • added
PSSParameterSpec
  • added
  • added
  • added
  • added
  • added
  • added
  • added
java.security
  • added
  • added
CodeSource
  • added
  • added
DigestException
  • added
  • added
GeneralSecurityException
  • added
  • added
InvalidAlgorithmParameterException
  • added
  • added
InvalidKeyException
  • added
  • added
KeyException
  • added
  • added
KeyManagementException
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
KeyStoreException
  • added
  • added
KeyStoreSpi
  • added
  • added
  • added
  • added
  • added
KeyStore
  • added
  • added
  • added
  • added
  • added
MessageDigestSpi
  • added
MessageDigest
  • added
NoSuchAlgorithmException
  • added
  • added
  • added
ProviderException
  • added
  • added
Provider
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
SecureClassLoader
  • added
SecureRandom
  • added
SignatureException
  • added
  • added
SignatureSpi
  • added
Signature
  • added
  • added
  • added
UnresolvedPermission
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
java.sql
Timestamp
  • added
compareTo(Object)
  • removed
java.text
BreakIterator
  • added
  • added
  • added
CharSet.Enumeration
  • removed
CollationKey
compareTo(Object)
  • removed
DecimalFormat
  • added
  • added
  • added
  • added
  • added
  • added
  • added
DictionaryBasedBreakIterator.Builder
  • removed
RuleBasedBreakIterator.Builder
  • removed
  • added
  • added
  • added
java.util.jar
JarEntry
  • added
  • added
  • added
  • added
java.util.logging
LogManager
  • added
  • added
  • added
java.util.regex
  • + implements MatchResult
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Pattern
  • added
  • added
  • added
  • added
java.util.zip
Deflater
  • added
  • added
InflaterInputStream
  • added
  • added
  • added
Inflater
  • added
  • added
java.util
  • added
ArrayList
  • added
Arrays
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • + implements Comparable
  • added
Collections
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Date
compareTo(Object)
  • removed
  • added
  • added
  • added
  • added
  • added
  • added
  • added
GregorianCalendar
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • + implements Map
  • + implements Queue
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
Properties
  • added
  • added
  • added
  • added
Timer
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • + implements Iterable
  • added
  • added
javax.accessibility
  • added
AccessibleContext
  • added
  • added
  • added
AccessibleRelation
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
AccessibleRole
  • added
  • added
  • added
  • added
  • added
  • added
AccessibleState
  • added
  • added
  • added
  • added
AccessibleAction
  • added
  • added
  • added
  • added
  • added
  • added
javax.crypto.interfaces
DHPrivateKey
  • added
DHPublicKey
  • added
PBEKey
  • added
javax.crypto.spec
  • added
  • added
  • added
javax.crypto
CipherSpi
  • added
  • added
Cipher
  • - throws IllegalStateException
  • added
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
  • added
  • added
  • - throws IllegalStateException
  • - throws IllegalStateException
  • added
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
  • - throws IllegalStateException
EncryptedPrivateKeyInfo
  • added
  • added
  • added
MacSpi
  • added
Mac
  • added
SecretKey
  • added
javax.imageio.metadata
IIOMetadataNode
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
javax.imageio
ImageTypeSpecifier
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
  • added
javax.naming.ldap
  • added
  • added
  • added
  • added
  • added
Rdn
  • added
  • added
  • added
  • added
javax.naming
NameClassPair
  • added
  • added
  • + implements Comparable
  • added
javax.net.ssl
  • added
HandshakeCompletedEvent
  • added
  • added
HttpsURLConnection
  • - throws IOException
  • added
  • added
  • added
SSLContextSpi
  • added
  • added
SSLContext
  • added
  • added
  • added
  • added
SSLException
  • added
  • added
SSLSocket
  • - throws UnknownHostException
  • - throws UnknownHostException
  • added
  • added
  • added
SSLSession
  • added
  • added
  • added
  • added
  • added
  • added
javax.print.attribute.standard
JobStateReasons
  • added
add(Object)
  • removed
MediaSize.Other
  • added
PrinterStateReasons
put(Object, Object)
  • removed
  • added
javax.rmi.CORBA
  • added
  • added
javax.security.auth.login
  • added
  • - extends LoginException
  • + extends AccountException
  • added
  • added
  • added
  • - extends LoginException
  • + extends CredentialException
  • added
LoginContext
  • added
  • added
javax.sound.midi
MidiFileFormat
  • added
  • added
  • added
MidiSystem
  • added
Track
events
  • removed
MidiDevice
  • added
  • added
Sequencer
  • added
  • added
  • added
  • added
  • added
  • added
  • added
javax.sound.sampled
AudioFileFormat
  • added
  • added
  • added
AudioFormat
  • added
  • added
  • added
AudioSystem
  • added
  • added
  • added
  • added
  • added
  • added
ReverbType
  • added
DataLine
  • added
  • added
  • added
  • added
javax.swing.event
SwingPropertyChangeSupport
addPropertyChangeListener(PropertyChangeListener)
  • removed
addPropertyChangeListener(String,...
  • removed
firePropertyChange(PropertyChangeEvent)
  • removed
firePropertyChange(String, Object, Object)
  • removed
getPropertyChangeListeners()
  • removed
getPropertyChangeListeners(String)
  • removed
hasListeners(String)
  • removed
removePropertyChangeListener(PropertyChangeListene...
  • removed
removePropertyChangeListener(String,...
  • removed
javax.swing.plaf.basic
BasicColorChooserUI
  • added
BasicComboPopup
  • added
BasicDesktopIconUI
  • added
BasicDesktopPaneUI
  • added
  • added
  • added
BasicEditorPaneUI
  • added
  • added
BasicListUI
getMaximumSize(JComponent)
  • removed
getMinimumSize(JComponent)
  • removed
BasicLookAndFeel
  • added
  • added
BasicMenuBarUI
getPreferredSize(JComponent)
  • removed
BasicOptionPaneUI
getMaximumSize(JComponent)
  • removed
getMinimumSize(JComponent)
  • removed
BasicPopupMenuUI
getMaximumSize(JComponent)
  • removed
getMinimumSize(JComponent)
  • removed
getPreferredSize(JComponent)
  • removed
BasicProgressBarUI
  • added
  • added
BasicScrollBarUI.TrackListener
  • added
BasicScrollBarUI
getMinimumSize(JComponent)
  • removed
  • added
  • added
  • added
BasicScrollPaneUI
getMinimumSize(JComponent)
  • removed
getPreferredSize(JComponent)
  • removed
BasicSliderUI
  • added
BasicSpinnerUI
  • added
  • added
  • added
BasicSplitPaneDivider.MouseHandler
  • added
  • added
BasicSplitPaneDivider
  • added
  • added
BasicTabbedPaneUI
  • added
  • added
getPreferredSize(JComponent)
  • removed
  • added
  • added
BasicTextAreaUI
  • added
  • added
  • added
BasicToolBarSeparatorUI
getMaximumSize(JComponent)
  • removed
getMinimumSize(JComponent)
  • removed
BasicToolBarUI
getMaximumSize(JComponent)
  • removed
getMinimumSize(JComponent)
  • removed
getPreferredSize(JComponent)
  • removed
  • added
BasicTreeUI
  • added
  • added
javax.swing.plaf.metal
MetalButtonUI
  • added
MetalComboBoxUI
  • added
  • added
MetalFileChooserUI.FileRenderer
getListCellRendererComponent(JList, Object, int,...
  • removed
MetalFileChooserUI.SingleClickListener
mouseClicked(MouseEvent)
  • removed
MetalLookAndFeel
  • added
  • added
  • added
  • added
MetalToggleButtonUI
  • added
  • added
MetalToolBarUI
  • added
  • added
  • added
javax.swing.table
DefaultTableCellRenderer
  • added
  • added
javax.swing.text.html
  • added
HTMLEditorKit
  • added
  • added
InlineView
  • added
  • added
  • added
  • added
javax.swing.text
DefaultCaret
  • added
  • added
  • added
  • added
  • added
  • added
FlowView
  • added
LabelView
  • added
StyleConstants.CharacterConstants
Background
  • removed
BidiLevel
  • removed
Bold
  • removed
ComponentAttribute
  • removed
Family
  • removed
Foreground
  • removed
IconAttribute
  • removed
Italic
  • removed
Size
  • removed
StrikeThrough
  • removed
Subscript
  • removed
Superscript
  • removed
Underline
  • removed
StyleConstants.ColorConstants
Background
  • removed
Foreground
  • removed
StyleConstants.FontConstants
Bold
  • removed
Family
  • removed
Italic
  • removed
Size
  • removed
StyleConstants.ParagraphConstants
Alignment
  • removed
FirstLineIndent
  • removed
LeftIndent
  • removed
LineSpacing
  • removed
Orientation
  • removed
RightIndent
  • removed
SpaceAbove
  • removed
SpaceBelow
  • removed
TabSet
  • removed
StyleConstants
  • added
  • added
TabSet
  • added
  • added
javax.swing.tree
DefaultTreeCellRenderer
  • added
  • added
javax.swing
AbstractButton
  • added
  • added
DefaultListCellRenderer
  • added
  • added
  • added
DefaultListSelectionModel
  • added
JComboBox.AccessibleJComboBox
  • added
JComponent
addPropertyChangeListener(PropertyChangeListener)
  • removed
addPropertyChangeListener(String,...
  • removed
firePropertyChange(String, Object, Object)
  • removed
firePropertyChange(String, byte, byte)
  • removed
firePropertyChange(String, double, double)
  • removed
firePropertyChange(String, float, float)
  • removed
firePropertyChange(String, long, long)
  • removed
firePropertyChange(String, short, short)
  • removed
  • added
  • added
  • added
  • added
getPropertyChangeListeners()
  • removed
getPropertyChangeListeners(String)
  • removed
isMaximumSizeSet()
  • removed
isMinimumSizeSet()
  • removed
isPreferredSizeSet()
  • removed
  • added
removePropertyChangeListener(PropertyChangeListene...
  • removed
removePropertyChangeListener(String,...
  • removed
  • added
  • added
  • added
JEditorPane
  • added
  • added
JFrame
  • added
JLayeredPane
  • added
JList.AccessibleJList.AccessibleJListChild
  • added
  • + implements PropertyChangeListener
  • added
JPopupMenu
  • added
  • added
  • added
JRootPane.AccessibleJRootPane
  • added
  • added
  • + implements PropertyChangeListener
  • added
  • added
  • + implements Accessible
  • added
JTable.AccessibleJTable
  • added
JTable
  • added
  • added
  • added
  • added
  • added
LookAndFeel
  • added
  • added
  • added
  • added
  • + implements Accessible
  • added
  • added
SpringLayout.Constraints
  • added
Spring
  • added
  • added
  • added
TransferHandler
  • + throws IllegalStateException
  • added
  • added
  • added
javax.xml.parsers
DocumentBuilderFactory
  • added
  • added
  • added
  • - throws FactoryConfigurationError
  • added
  • added
  • added
DocumentBuilder
  • added
  • added
  • added
SAXParserFactory
  • added
  • added
  • - throws FactoryConfigurationError
  • added
  • added
SAXParser
  • added
  • added
  • added
javax.xml.transform.dom
DOMResult
  • added
  • added
  • added
  • added
javax.xml.transform
TransformerFactory
  • - throws IllegalArgumentException
  • - throws IllegalArgumentException
  • - throws IllegalArgumentException
  • added
Transformer
  • added
  • - throws IllegalArgumentException
  • added
  • added
  • added
Data Source

This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 1.5.0_22-oracle and 1.4.2_30-oracle. It does not make statements about compatibility.

More detailed API comparisons based on the japicmp tool can be found here.