Menu

#49 Generated methods differ only by their return type

closed-fixed
nobody
None
5
2004-11-10
2004-03-20
No

Hi,

AutoProxy has a bug generating header for Writer. I
have attached the autogenerated Writer.h; notice that

::jace::proxy::java::io::Writer append(
::jace::proxy::types::JChar p0 );

and

::jace::proxy::java::lang::Appendable append(
::jace::proxy::types::JChar p0 );

differ only by their return type.

Discussion

  • Gili Tzabari

    Gili Tzabari - 2004-03-20

    Invalid proxy generated by AutoProxy

     
  • Gili Tzabari

    Gili Tzabari - 2004-03-20

    Logged In: YES
    user_id=80628

    This issue is JDK 1.5 specific; if you using JDK 1.4.1 the
    problem does not occur.

    I would like to point out this issue is critical. Unless it
    is fixed it is impossible to use JACE under JDK 1.5.

     
  • Toby Reyelts

    Toby Reyelts - 2004-03-20

    Logged In: YES
    user_id=149785

    Hi Gili,

    Yes, this is a bug. It is the result of the way JDK1.5 handles
    methods with covariant return types. You should be able to
    fix this by add the following lines of code:

    // Skip the method if it is a BRIDGE method
    if ( ( flagSet.getValue() & 0x0040 ) != 0 ) {
    return true;
    }

    to ProxyGenerator.shouldBeSkipped:1893. You can also just
    temporarily comment out one of the methods.

    This will be fixed in the next release of Jace.

    God bless,
    -Toby Reyelts

     
  • Gili Tzabari

    Gili Tzabari - 2004-11-10
    • status: open --> closed-fixed
     
  • Gili Tzabari

    Gili Tzabari - 2004-11-10

    Logged In: YES
    user_id=80628

    Fixed in JACE 1.2

     

Log in to post a comment.