Skip to content

class_for_name / Class.forName#62

Merged
aviks merged 1 commit intoJuliaInterop:masterfrom
dfdx:class_for_name
Jul 13, 2017
Merged

class_for_name / Class.forName#62
aviks merged 1 commit intoJuliaInterop:masterfrom
dfdx:class_for_name

Conversation

@dfdx
Copy link
Collaborator

@dfdx dfdx commented Jul 12, 2017

Calling Class.forName(name) from JavaCall fails , most likely because default class loader doesn't respect a classpath, however calling Class.forName(name, true, classLoader) works fine. This PR provides a convenient wrapper function class_for_name for it.

@aviks
Copy link
Collaborator

aviks commented Jul 13, 2017

Thanks! Most method names in this package are either camelCase or allruntogether. So the underscrores seems out of place here. Should this be called classforname?

@dfdx dfdx force-pushed the class_for_name branch from e7462b9 to 610f3de Compare July 13, 2017 08:08
@dfdx
Copy link
Collaborator Author

dfdx commented Jul 13, 2017

Initially I thought allruntogether name would be unreadable, but after you've actually written it, it looks fine. Updated the PR.

@aviks aviks merged commit 9717ab3 into JuliaInterop:master Jul 13, 2017
@dfdx dfdx deleted the class_for_name branch September 6, 2017 15:26
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