Hi!

> Does anyone know of any other reason they wouldn't be allowed, or is it
> just a bug in the verifier(s)?

This problem is SUN RI 1.3.1 verifier BUG.

There is a problem in the following files when RI 1.3.1 source was
downloaded and examined.
j2ee/j2ee13/src/tools/com/sun/enterprise/tools/verifier/tests/ejb/RmiIIOPUtils.java

In the specification, the EJBHome object permits the String field.
However, the verifier checks it in the 495line of the above-mentioned
file by the following codes.

if ((isValidRmiIDLPrimitiveType(RMIIIOPField)) ||
 (RMIIIOPField.getType().equals("java.lang.String"))) {

Because getType() returns Class class, it never becomes the same
"Java.lang.String" of java.lang.String class.  For this, it is sure to
make an error of virifier.It is necessary to correct this line as
follows.

 (RMIIIOPField.getType().getName().equals("java.lang.String"))) {

--
Takuya Ono

Andrew Stevens <[EMAIL PROTECTED]> writes:
> On Wed, 2003-02-19 at 16:09, Hani Suleiman wrote:
>> xdoclet generated home classes fail the j2ee verifier, this is due to 
>> xdoclet generating JNDI_NAME and COMP_NAME in the home class. It'd be 
>> nice if there were some setting whereby these names are not generated 
>> in the home class, but in the util class (if utilobject is specified), 
>> so xdoclet generated code could pass the verifier. Thoughts?
>
> The same thing came up recently to do with the SunONE module and its
> verifier (see XDT-16), which is no great surprise really considering
> it's based on the RI.  However, digging around a bit for that, I found
> in the Sun RMI FAQ at
> http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#staticinit
> that you *are* allowed to have static fields in an RMI interface, so it
> ought to be okay for the home interface to contain these.
>
> Does anyone know of any other reason they wouldn't be allowed, or is it
> just a bug in the verifier(s)?
>
>
> Andrew.


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to