David,

That doesn't work for return types. If one of the arguments changed that would work provided both methods were there. But adding a method also breaks extenders of the interface (assuming the API allows this interface to be extended).

Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: [EMAIL PROTECTED]



David M Williams <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

05/15/2006 03:30 PM

Please respond to
"General discussion of project-wide or architectural issues." <[email protected]>

To
"General discussion of project-wide or architectural issues." <[email protected]>
cc
Subject
Re: [wtp-dev] java.lang.NoSuchMethodError:        org.eclipse.wst.common.frameworks.datamodel.IDataModel.getDefaultOperation()Lorg/eclipse/wst/common/frameworks/datamodel/IDataModelOperation;






Sounds like a case of source compatibility, but not binary compatibility.
You should be able to leave in the old method, as deprecated, that would just delegate to the more specific one.
That would then maintain binary compatibility too.





Jason A Sholl/Raleigh/[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

05/15/2006 03:20 PM

Please respond to
"General discussion of project-wide or architectural issues." <[email protected]>

To
"General discussion of project-wide or architectural issues." <[email protected]>
cc
[email protected], [EMAIL PROTECTED]
Subject
Re: [wtp-dev] java.lang.NoSuchMethodError:        org.eclipse.wst.common.frameworks.datamodel.IDataModel.getDefaultOperation()Lorg/eclipse/wst/common/frameworks/datamodel/IDataModelOperation;








I did change this back in March, but am not sure why this is broken.  The change was to return an
IDataModelPausibleOperation instead of IDataModelOperation, however, IDataModelPausibleOperation extends IDataModelOperation..  Why would that cause breakage?

Thank you,

Jason A. Sholl
[EMAIL PROTECTED]
919-543-0011 (t/l 441-0011)


Arthur Ryman <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

05/15/2006 03:07 PM

Please respond to
"General discussion of project-wide or architectural issues." <[email protected]>


To
[email protected]
cc
Subject
[wtp-dev]         java.lang.NoSuchMethodError: org.eclipse.wst.common.frameworks.datamodel.IDataModel.getDefaultOperation()Lorg/eclipse/wst/common/frameworks/datamodel/IDataModelOperation;










Did someone delete a method from this interface? This was reported at Geronimo. I opened a bug to track it [1]


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=141850


Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: [EMAIL PROTECTED]
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to