VOL 79 .... No. 19

THURSDAY, FEBRUARY 15, 2018

Tagged ‘generic types’

Reflecting Generic Types in Java

TUESDAY, FEBRUARY 3, 2032 Kevin No comments

erasure-heavenly-action-music-picture-idea-girl-consulting-word-press

My first experience with generics in Java was when I was working on my Darwin G.P. library.  I was excited to find out about and take advantage of generics, but there was one major problem I had with the way they were implemented–they were completely disregarded at run-time!  I never fully understood what the motivation behind that decision was, and I’ve been informed that C# does things differently (have not verified), but I recently discovered an interesting workaround using the Factory pattern. Read more…

Categories: Programming Tags: ,
hide this follow me