Transpiled version (5279L) is out of date.
sO invokeConstructorWithWidening(Constructor m, O... args) ctex { try { Class<?>[] types = m.getParameterTypes(); int n = types.length; O[] args2 = new[n]; for i to n: args2[i] = convertPrimitiveIfNecessary(args[i], types[i]); ret m.newInstance(args2); } catch (IllegalArgumentException e) { throw new IllegalArgumentException(e.getMessage() + " - was calling: " + m + ", args: " + joinWithSpace(classNames(args))); } }
Began life as a copy of #1034748
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034784 |
| Snippet name: | invokeConstructorWithWidening |
| Eternal ID of this version: | #1034784/6 |
| Text MD5: | f0ac4540118132e8a41935f53c48a4e9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-29 19:40:37 |
| Source code size: | 466 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 409 / 564 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |