Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for autoboxing #3

Merged
merged 1 commit into from
Nov 25, 2013
Merged

Support for autoboxing #3

merged 1 commit into from
Nov 25, 2013

Conversation

TuomasKiviaho
Copy link
Contributor

  • Updated to 4.2 version of ASM.
  • Preliminary support for autoboxing.

I encountered a weird NPE from type.getInternalName() while using primitives so my initial reaction was to raise the version to 4.2 which of course did not fix the issue. Further digging around revealed that autoboxing requires bytecode level support and that GeneratorAdapter will be a way around the bug(?)

There is a GeneratorAdapter (at least in 4.2 version) that has unbox/box methods for autoboxing implementation. I replaced couple of lines at SyntheticMethod to get the new tests working and my own use case resolved but I assume that a more robust solution would be needed.

Preliminary support for autoboxing.
kohsuke added a commit that referenced this pull request Nov 25, 2013
@kohsuke kohsuke merged commit 675c241 into jenkinsci:master Nov 25, 2013
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.

None yet

2 participants