Skip to content

Conversation

@summer-alice
Copy link
Contributor

This adds the ClassNotFoundException class.

As sort of mentioned in #103, when trying to implement a new constructor for the Image class, I encountered a cyclic dependency error.

I have a local fix complete, this is just the beginning of it.

This also drops support for Tango in the file.

@jacob-carlborg
Copy link
Member

It sounds like ClassNotFoundException might be thrown when a class is dynamically loaded in Java. Is that applicable on D? How will this exception be used in D?

@summer-alice
Copy link
Contributor Author

summer-alice commented Jun 28, 2021

It sounds like ClassNotFoundException might be thrown when a class is dynamically loaded in Java. Is that applicable on D?

Yea that's about it. In D, the same is achieved with Object.factory, however, the return from that is null if the class can't be found (instead of the exception).

How will this exception be used in D?

My intention for adding this was so it can be used by the implementation of Class.forName. This just allows the DWT code to be consistent with SWT. (e.g. FileFormat (lines 33-38 & 70-87).)

@jacob-carlborg jacob-carlborg merged commit 6036b45 into d-widget-toolkit:4.7 Jul 4, 2021
@jacob-carlborg
Copy link
Member

Thanks.

@summer-alice
Copy link
Contributor Author

Thanks.

Thank you.

@summer-alice summer-alice deleted the add_classNotFoundException branch July 6, 2021 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants