Hi,

I use JOnAS 1.6.1 and I tried to create a Bean with a get method, that
returns an Integer. GenIC exits with an error without a message. GenIC
with -nocompile and a manual compilation of the Stub shows, that the Stub
causes a cast exception. The stub contains an extra .intValue() which
causes the exception.

The generated stub looks like this:


public java.lang.Integer getPropertyXY
  throws java.rmi.RemoteException {
    try {
        Object $result = ref.invoke(this,
                $method_getScoreClass_7, null, (long) 7);
        return ((java.lang.Integer) $result).intValue();
    } catch (RuntimeException e) {
        ....


and it should not contain the .intValue() !!

The same problem occurrs with Float, Double, ...

Changing the return type to Number, if get no error, but I would like to
use Integer...

To me this seems to be a bug in GenIC, or do you have an idea which
could be the source of the problem?

Kind regards,
Kristina
 
__________________________________________________ 
Kristina Straub         harSYS GmbH 
                        Kranstr. 8      
                        70499   Stuttgart, Germany
                        phone   +49 711 838981 10
                        fax     +49 711 838981 29
                        email   [EMAIL PROTECTED]






----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to