-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
sparc
-
solaris_2.5.1
-
Not verified
Name: dkC59003 Date: 06/21/98
The bug concerns new class modifiers strictfp and widefp defined by
Proposal for Extension of Java Floating Point Semantics, Revision 1.
JDK 1.2beta4-J compiler does not parse correctly declaration of
a local (declared within a method) class if there is one of the new
keywords strictfp, widefp.
An example and compiler diagnostics follow:
-------------------------------------------------------
class test {
static double m() {
strictfp class Inn {
float i;
}
return 2.0;
}
}
-------------------------------------------------------
/export/ld14/java/dest/jdk1.2b4J/solaris/bin/javac test.java
test.java:3: Missing term.
static double m() {
^
test.java:3: ';' expected.
static double m() {
^
test.java:4: Invalid expression statement.
strictfp class Inn {
^
test.java:4: '}' expected.
strictfp class Inn {
^
test.java:7: Class or interface declaration expected.
return 2.0;
^
5 errors
-------------------------------------------------------
======================================================================
- relates to
-
JDK-4180437 Regression test tools/javac/FloatingPointChanges/Test.java failing
-
- Resolved
-