Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-25-2004
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 896
Patch for slice2cpp and slice2java

For Ice version 1.3.0 and earlier, the slice2cpp and slice2java compilers sometimes generate incorrect code for operations with multiple exceptions in an exception specification, if one exception in the specification is a base of one or more other exceptions in the same exception specification. For example:
Code:
exception Base {};
exception Derived extends Base {};

interface Foo {
    void op() throws Base, Derived;
};
The problem appears only if the exceptions in an exception specification are related by inheritance.

Attached is a patch for both C++ and Java. (Releases later than version 1.3.0 don't need this patch.)

Cheers,

Michi.
Attached Files
File Type: txt diffs.txt (4.1 KB, 278 views)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch to slice2java to make it generate Java 1.5 enums mefoster Patches 1 06-30-2006 02:32 PM
Patch for slice2cpp posible bug xdm Bug Reports 1 05-14-2006 09:13 AM
Patch for slice2cpp, release 3.0.1 michi Patches 0 03-01-2006 08:57 PM
Patch for slice2cpp, release 1.5.1 michi Patches 2 10-29-2004 07:04 PM
Patch for slice2java, v1.5.1 michi Patches 0 08-19-2004 05:53 PM


All times are GMT -4. The time now is 01:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.