jdk-24/test/langtools/tools/javac/FloatingPointChanges/BadConstructorModifiers.java
Joe Darcy 0ae4ceb413 8244146: javac changes for JEP 306
8266399: Core libs update for JEP 306

Reviewed-by: sadayapalam, bpb, naoto
2021-06-01 21:59:39 +00:00

16 lines
487 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4153038 4785453 8244146
* @summary strictfp may not be used with constructors
* @author David Stoutamire (dps)
*
* @compile/fail/ref=BadConstructorModifiers.out -XDrawDiagnostics --release 16 BadConstructorModifiers.java
* @compile/fail/ref=BadConstructorModifiers.out -XDrawDiagnostics -Xlint:-strictfp BadConstructorModifiers.java
*/
public class BadConstructorModifiers {
strictfp BadConstructorModifiers (double abra) { }
}