New APIs in Java 27 - javaalmanac.io
GitHub
The Java Version Almanac
javaalmanac.io
Feedback on this page?
The Java Version Almanac
JDK Releases
Java 27
New APIs in Java 27
Comparing Java 27 (27-ea+30-2302-open)<br>with Java 26 (26.0.1+8-tem).
Element<br>Modification
java.base
java.lang.classfile.instruction
IncrementInstruction
of(Opcode, int, int)
added
java.lang.classfile
ClassFile
JAVA_27_VERSION
added
java.lang.foreign
MemorySegment
copy(String, Charset, int, MemorySegment, long,...
added
getString(long, Charset, long)
added
SegmentAllocator
allocateFrom(String, Charset, int, int)
added
java.lang.reflect
Executable
toGenericString()
- abstract
Modifier
classModifiers()
+ deprecated
constructorModifiers()
+ deprecated
fieldModifiers()
+ deprecated
interfaceModifiers()
+ deprecated
methodModifiers()
+ deprecated
parameterModifiers()
+ deprecated
toString(int)
+ deprecated
ClassFileFormatVersion
RELEASE_27
added
java.lang
Math
acosh(double)
added
asinh(double)
added
atanh(double)
added
StrictMath
acosh(double)
added
asinh(double)
added
atanh(double)
added
String
encodedLength(Charset)
added
LazyConstant
isInitialized()
removed preview
orElse(Object)
removed preview
java.math
BigDecimal
rootn(int, MathContext)
added
java.security.cert
X509CRL
- implements DEREncodable<br>+ implements BinaryEncodable
X509Certificate
- implements DEREncodable<br>+ implements BinaryEncodable
java.security.spec
PKCS8EncodedKeySpec
- implements DEREncodable<br>+ implements BinaryEncodable
X509EncodedKeySpec
- implements DEREncodable<br>+ implements BinaryEncodable
java.security
KeyPair
- implements DEREncodable<br>+ implements BinaryEncodable
KeyStoreSpi
engineGetCreationInstant(String)
added
KeyStore
getCreationInstant(String)
added
PEMDecoder
decode(InputStream)
added preview
decode(InputStream)
removed preview
decode(InputStream, Class)
added preview
decode(InputStream, Class)
removed preview
decode(String)
added preview
decode(String)
removed preview
decode(String, Class)
added preview
decode(String, Class)
removed preview
withFactoriesOf(Provider)
added preview
withFactory(Provider)
removed preview
PEMEncoder
encode(BinaryEncodable)
added preview
encode(DEREncodable)
removed preview
encodeToString(BinaryEncodable)
added preview
encodeToString(DEREncodable)
removed preview
PEM
- extends Record<br>- implements DEREncodable<br>+ extends Object<br>+ implements BinaryEncodable
PEM(String, byte[])
added preview
PEM(String, byte[], byte[])
added preview
content()
added preview
content()
removed preview
decode()
- final
equals(Object)
removed preview
hashCode()
removed preview
toString()
- final
AsymmetricKey
- implements DEREncodable<br>+ implements BinaryEncodable
BinaryEncodable
added preview
DEREncodable
removed preview
java.time.format
DateTimeFormatterPatternProvider
added
java.util.concurrent
StructuredTaskScope.CancelledByTimeoutException
added preview
StructuredTaskScope.FailedException
removed preview
StructuredTaskScope.TimeoutException
removed preview
ThreadPoolExecutor
finalize()
removed
StructuredTaskScope.Joiner
allSuccessfulOrThrow(Function)
added preview
anySuccessfulOrThrow(Function)
added preview
awaitAll()
removed preview
awaitAllSuccessfulOrThrow(Function)
added preview
onTimeout()
removed preview
timeout()
added preview
StructuredTaskScope
join()
+ throws Throwable
open(UnaryOperator)
added preview
java.util
EnumSet
spliterator()
added
Locale
getDisplayCountry()
- final
getDisplayLanguage()
- final
getDisplayName()
- final
getDisplayVariant()
- final
Set
ofLazy(Set, Predicate)
added preview
javax.crypto
CryptoException
added preview
EncryptedPrivateKeyInfo
- implements DEREncodable<br>+ implements BinaryEncodable
encrypt(BinaryEncodable, Key, String,...
added preview
encrypt(BinaryEncodable, char[])
added preview
encrypt(BinaryEncodable, char[], String,...
added preview
encrypt(DEREncodable, Key, String,...
removed preview
encrypt(DEREncodable, char[])
removed preview
encrypt(DEREncodable, char[], String,...
removed preview
getKey(Key)
added preview
getKey(Key, Provider)
removed preview
getKeyPair(Key)
added preview
getKeyPair(Key, Provider)
removed preview
java.compiler
javax.lang.model
SourceVersion
RELEASE_27
added
java.desktop
java.awt.geom
Arc2D
getBounds()
added
javax.swing
JEditorPane.JEditorPaneAccessibleHypertextSupport
changedUpdate(DocumentEvent)
added
insertUpdate(DocumentEvent)
added
removeUpdate(DocumentEvent)
added
Data Source
This report is based on simple comparison of all public and<br>protected APIs of the Java SE packages of JDK builds<br>27-ea+30-2302-open and 26.0.1+8-tem.<br>It does not make statements about<br>compatibility.
For the latest Java versions the corresponding CSRs<br>(Compatibility & Specification Review)<br>are linked<br>for a quick reference to find out about the reasoning of the...