Microsoft KB Archive/818437

= BUG: STRICTFP and VOLATILE Qualifiers Are Not Ignored During Compilation =

Article ID: 818437

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft Visual J# .NET 2003 Standard Edition
 * Microsoft .NET Framework 1.1
 * Microsoft Visual J# .NET 2003 Standard Edition

-



SYMPTOMS
When you use the strictfp qualifier in a Visual J# .NET project, you may receive the following compilation error message:

Expected class, interface or delegate

However, you do not receive any compilation error message or warning message when you use the volatile qualifier. Also, you may not receive any warnings during compilation that these qualifiers are not supported.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Start Visual Studio .NET. On the File menu, point to New, and then click Project. In the New Project dialog box, click Visual J# Projects under Project Types, click Console Application under Templates, and then click OK.  In Solution Explorer, click Class1.jsl. Replace the existing code with following sample code: public strictfp class Class1 {   public volatile int myInt; public Class1 {       myInt = 7; }

public static void main(String[] args) {       Class1 myObj = new Class1; } }  On the Build menu, click Build Solution.

