javac-wrapper: constant evaluator
This commit is contained in:
committed by
Alexander Baratynskiy
parent
4f180e1292
commit
1b0d7ff5be
@@ -0,0 +1,24 @@
|
||||
// FILE: a/x.java
|
||||
package a;
|
||||
|
||||
public interface x {
|
||||
|
||||
double D = Double.MAX_VALUE;
|
||||
double D2 = D - 32.12111;
|
||||
|
||||
float F = Float.MAX_VALUE;
|
||||
float F2 = F - 1231.965f;
|
||||
|
||||
int I = Integer.MAX_VALUE;
|
||||
int I2 = I - 42;
|
||||
|
||||
byte B = Byte.MAX_VALUE;
|
||||
byte B2 = B - 3;
|
||||
|
||||
long L = Long.MAX_VALUE;
|
||||
long L2 = L - 5545342;
|
||||
|
||||
short S = Short.MAX_VALUE;
|
||||
short S2 = S - 5;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user