Bug 15555 – [Reg 2.070.0-b1] Hidden error cause by Throwable.message

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-11T13:45:00Z
Last change time
2016-01-17T18:31:01Z
Assigned to
nobody
Creator
doob

Comments

Comment #0 by doob — 2016-01-11T13:45:50Z
Compiling Tango with DMD 2.070.0-b1 causes the following error: tango/text/xml/SaxParser.d(808,8): Error: class tango.text.xml.SaxParser.SAXException use of object.Throwable.message() is hidden by SAXException; use 'alias message = Throwable.message;' to introduce base class overload set The error is due to the new method "message" in Throwable, which is causing a conflict with an already existing method in a subclass [1]. PR that added the new method [2]. [1] https://github.com/SiegeLord/Tango-D2/blob/d2port/tango/text/xml/SaxParser.d#L861 [2] https://github.com/D-Programming-Language/druntime/pull/1445#issuecomment-170530377
Comment #1 by code — 2016-01-17T18:31:01Z
We've reverted the addition of message for now, up to discuss a better design. This doesn't mean we won't be introducing a message method in a later release.