mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
Uniform language feature error messages
This commit is contained in:
+26
-10
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/// assignment compatible types
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
@@ -23,9 +39,9 @@ public class a {
|
||||
int i14 = 020000000000;
|
||||
int i15 = <error descr="Integer number too large">0xf044332211</error>;
|
||||
int octale = 017777777777; // negative
|
||||
int bi1 = <error descr="Binary literals are only supported in JDK 7 or higher">0b0010</error>;
|
||||
int bi2 = <error descr="Binary literals are only supported in JDK 7 or higher">0B0010</error>;
|
||||
int bi3 = <error descr="Underscores in literals are only supported in JDK 7 or higher">1_2</error>;
|
||||
int bi1 = <error descr="Binary literals are not supported at this language level">0b0010</error>;
|
||||
int bi2 = <error descr="Binary literals are not supported at this language level">0B0010</error>;
|
||||
int bi3 = <error descr="Underscores in literals are not supported at this language level">1_2</error>;
|
||||
|
||||
long l1 = -<error descr="Long number too large">9223372036854775809L</error>;
|
||||
long l2 = <error descr="Long number too large">9223372036854775808L</error>;
|
||||
@@ -39,20 +55,20 @@ public class a {
|
||||
long l10 = 0x8000000000000000L;
|
||||
long octalValue = 01777777777777777777600L;
|
||||
long octalValua = 01777777777777777777777L;
|
||||
long bl1 = <error descr="Binary literals are only supported in JDK 7 or higher">0b0010l</error>;
|
||||
long bl2 = <error descr="Binary literals are only supported in JDK 7 or higher">0B0010L</error>;
|
||||
long bl3 = <error descr="Underscores in literals are only supported in JDK 7 or higher">10_24L</error>;
|
||||
long bl1 = <error descr="Binary literals are not supported at this language level">0b0010l</error>;
|
||||
long bl2 = <error descr="Binary literals are not supported at this language level">0B0010L</error>;
|
||||
long bl3 = <error descr="Underscores in literals are not supported at this language level">10_24L</error>;
|
||||
|
||||
float f1= <error descr="Floating point number too small">1e-46f</error>;
|
||||
float f2 = <error descr="Floating point number too large">1e39f</error>;
|
||||
float f3 = 0E1F;
|
||||
float f4 = <error descr="Hexadecimal floating point literals are only supported in JDK 5 or higher">0xabc.defP2f</error>;
|
||||
float bf1 = <error descr="Underscores in literals are only supported in JDK 7 or higher">3.141_592f</error>;
|
||||
float f4 = <error descr="Hexadecimal floating point literals are not supported at this language level">0xabc.defP2f</error>;
|
||||
float bf1 = <error descr="Underscores in literals are not supported at this language level">3.141_592f</error>;
|
||||
|
||||
double dd1 = <error descr="Floating point number too small">1e-324</error>;
|
||||
double dd2 = <error descr="Floating point number too large">1e309</error>;
|
||||
double dd3 = 0E1;
|
||||
double dd4 = <error descr="Hexadecimal floating point literals are only supported in JDK 5 or higher">0x1.fffffffffffffP1023</error>;
|
||||
double dd4 = <error descr="Hexadecimal floating point literals are not supported at this language level">0x1.fffffffffffffP1023</error>;
|
||||
double d1 = <error descr="Malformed floating point literal">1.E</error>;
|
||||
double d2 = <error descr="Malformed floating point literal">1.e</error>;
|
||||
double d3 = <error descr="Malformed floating point literal">1.E+</error>;
|
||||
@@ -64,6 +80,6 @@ public class a {
|
||||
double d9 = <error descr="Malformed floating point literal">1e-d</error>;
|
||||
double d10 = <error descr="Malformed floating point literal">1e-F</error>;
|
||||
double d11 = <error descr="Malformed floating point literal">1e-f</error>;
|
||||
double d12 = <error descr="Underscores in literals are only supported in JDK 7 or higher">3.141_592_653_589_793d</error>;
|
||||
double d12 = <error descr="Underscores in literals are not supported at this language level">3.141_592_653_589_793d</error>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user