Release Notes
  In this topic

* Using new Java Language Features in Visual J++ 1.1

* JDK 1.1 Compatibility

* Compatibility with code written for previous releases of Visual J++

 

Release Notes   Release Notes
JVC   Introduction

 


About the Microsoft Visual J++ Compiler

The following notes apply to the Microsoft Visual J++ Compiler, pre-released in the Microsoft SDK for Java. Information listed here is subject to change in the next major release of the product.

Note This version of the compiler supports @dll tags for Microsoft® J/Direct™. It also supports @com tags for Java/COM integration. For more information see the Microsoft SDK for Java.


Using new Java Language Features in Visual J++ 1.1

This release of the Java compiler supports the new language features specified in Sun's JDK 1.1, including: inner classes, anonymous classes, instance initializers, anonymous array expressions, class literals, blank finals and final locals, and the @deprecated tag.

It is possible to use these new language features with Visual J++ 1.1. You may do this by replacing the compiler file in Visual J++ with three files from the Microsoft SDK for Java. First, save a copy of the compiler (jvc.exe) from your existing Visual J++ installation. Next, copy jvc.exe, msjvc.dll, and jps.dll into your Visual J++ directory. Projects will then build using the new compiler.

JDK 1.1 Compatibility

This release of JVC is compatible with the language enhancements specified in Sun's JDK 1.1.

Compatibility with code written for previous releases of Visual J++

Due to more strict error and security checking in this release of the compiler, some illegal code that compiled without errors using Visual J++ 1.x may now (correctly) fail to compile. One common cause is more careful checking of class member access across package boundaries. Section 3.6.7 of the Java Language Specification contains an example of this scenario.

Here is an example of a typical error message for this type of code:

error J0204: Cannot access protected member 'x' in class 'Point' via a qualifier of type 'Point3d'


Top © 1998 Microsoft Corporation. All rights reserved. Terms of use.