Re: BCEL How to create a field with a parameterized type?

2022-04-30 Thread Stefan Reich
Forget what I said. I confused the "signature" field in the Type class with the attribute "Signature". No code in BCEL will need to be changed. Unless you want to add a a generator for generic type signatures. So I got things working like this basically: FieldGen fg; fg.addAttribute(new org.a

Re: BCEL How to create a field with a parameterized type?

2022-04-30 Thread Stefan Reich
OK I think I figured it out. There is setSignature in org.apache.bcel.generic.Type which I need to call with my generic field signature (since direct representations of generic types are actually not built into BCEL yet). Not a problem, what's unfortunate is just that setSignature is package-prote

BCEL How to create a field with a parameterized type?

2022-04-30 Thread Stefan Reich
Hi, the title basically says it... I'm trying to create a field with a parameterized type (e.g. List), but I can't find a subclass of Type representing a parameterized type that I could pass to the FieldGen constructor. Thanks, Stefan -- == Gaz.AI ==