BUG: STRICTFP and VOLATILE Qualifiers Are Not Ignored During Compilation (818437)



The information in this article applies to:

  • Microsoft Visual J# .NET (2002)
  • Microsoft .NET Framework 1.1
  • Microsoft Visual J# .NET (2003)

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.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start Visual Studio .NET.
  2. On the File menu, point to New, and then click Project.
  3. In the New Project dialog box, click Visual J# Projects under Project Types, click Console Application under Templates, and then click OK.
  4. 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();
    	}
    }
  5. On the Build menu, click Build Solution.

REFERENCES

For more information about Visual J# .NET, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:1/19/2004
Keywords:kbpending kbCompiler kberrmsg kbJava kbbug KB818437 kbAudDeveloper