We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc06358 commit f88027aCopy full SHA for f88027a
1 file changed
src/main/velocity/org/bridj/PointerIO.java
@@ -153,7 +153,14 @@ public static <P> PointerIO<P> getInstance(Type type) {
153
if (type == null)
154
return null;
155
156
- PointerIO io = ios.get(type);
+ PointerIO io = null;
157
+
158
+ if( type instanceof ResolvedType ) {
159
+ io = ios.get(((ResolvedType) type).getErasedType());
160
+ }
161
+ if( io == null ) {
162
+ io = ios.get(type);
163
164
if (io == null) {
165
final Class<?> cl = Utils.getClass(type);
166
if (cl != null) {
0 commit comments