Skip to content

Instantly share code, notes, and snippets.

View remcobeckers's full-sized avatar

Remco Beckers remcobeckers

  • Xebia
  • Eindhoven
View GitHub Profile

Keybase proof

I hereby claim:

  • I am remcobeckers on github.
  • I am remcobeckers (https://keybase.io/remcobeckers) on keybase.
  • I have a public key ASAhqIrbgJN3hZlOvwOcTqsNCUOX-pAZyrBtviuvmkxMIgo

To claim this, I am signing this object:

import net.bytebuddy.ByteBuddy;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.dynamic.loading.ClassLoadingStrategy;
import net.bytebuddy.dynamic.scaffold.subclass.ConstructorStrategy;
import net.bytebuddy.implementation.MethodDelegation;
import net.bytebuddy.implementation.bind.annotation.Origin;
import net.bytebuddy.implementation.bind.annotation.RuntimeType;
import net.bytebuddy.implementation.bind.annotation.SuperCall;
import net.bytebuddy.implementation.bind.annotation.This;
import net.bytebuddy.matcher.ElementMatcher;
@remcobeckers
remcobeckers / gist:44fb11ee6f292dbcf57b
Last active August 29, 2015 14:12
Constructor with multiple arguments example
scala> case class NotAField(a: Int)(b: Int)
defined class NotAField
scala> NotAField(1)(2)
res0: NotAField = NotAField(1)
scala> res0.b
<console>:11: error: value b is not a member of NotAField
res0.b
^