Results 1 to 2 of 2

Thread: java exception mapping generates invalid code

  1. #1
    vukicevic is offline Registered User
    Name: Vladimir Vukicevic
    Organization: DUG
    Project: DUG Insight
    Join Date
    May 2003
    Location
    San Francisco
    Posts
    35

    java exception mapping generates invalid code

    With Ice 3.4.2, the following slice fragment:

    exception BaseException { };
    exception SpecificException extends BaseException {
    int id;
    };

    generates invalid java; no constructors are created for BaseException, but SpecificException has constructors that looks like:

    SpecificException(int id, Throwable cause) {
    super(cause);
    ...
    }

    SpecificException(Throwable cause) {
    super(cause);
    }

    The superclass (BaseException) has no constructor that takes Throwable, so this doesn't compile -- BaseException's superclass /does/ have such a constructor, but super() only looks for the immediate superclass. The bug here seems to be that no-member exceptions still need to have a constructor that takes Throwable generated.
    vladimir@pobox.com

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Definitely looks like a bug. Thanks for reporting this.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mapping Exception
    By ganzuoni in forum Comments
    Replies: 4
    Last Post: 08-06-2010, 11:28 AM
  2. StringConverter generates unknown C++ exception
    By xorax in forum Help Center
    Replies: 1
    Last Post: 07-01-2010, 01:06 PM
  3. Replies: 0
    Last Post: 05-04-2009, 07:19 PM
  4. Replies: 3
    Last Post: 03-02-2009, 02:28 AM
  5. socket exception: Invalid argument
    By xorax in forum Help Center
    Replies: 2
    Last Post: 10-24-2007, 04:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •