Support for Visual J++ 6.0
The Microsoft extensions in Visual J++ 6.0 that are listed in this topic are fully supported in Visual J#.
To locate reference information for the extensions, see the Visual J++ 6.0 documentation or the Microsoft SDK for Java in the MSDN online library (https://msdn.microsoft.com/library/default.asp?url=/library/en-us/vjcore98/html/vjovrdocumentationmap.asp).
J/Direct (for making calls into native DLLs):
@dll.import
@dll.struct
@dll.structmap
Java-language/COM, for example:
@com.class
@com.interface
@com.method
@com.parameter
@com.register
Conditional compilation:
#if, #elif, #endif, #define
#warning, #error
@conditional
Used to mark methods whose calls can be conditionally removed from the generated code.
Note
The @conditional feature works only if the attributed function and the caller are part of the same compilation unit. The recommended technique for using conditional compilation with Visual J# is to use the .NET Framework class ConditionalAttribute.
Delegate and multicast delegate support:
com.ms.lang.Delegate and com.ms.lang.MulticastDelegate classes
delegate and multicast keywords
Other @ directives:
@security
@hidden
@deprecated
The Visual J# compiler does not provide the following features that are specific to Java-language bytecodes in the Visual J++ 6.0 compiler:
Ability to import class information from Java-language bytecodes (.class files).
Ability to generate .class files from Java-language sources.
Support for CLASSPATH for resolving referenced classes at compile time; use the /reference (Import Metadata) compiler option instead.