yuikns / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

compilation via maven fails due to generics bug in javac #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following javac error occurs when trying to compile gson using Maven.
(this probably was not caught since Googlers use Eclipse)

[INFO] Compilation failure
/home/jdumay/code/google/gson/trunk/gson/src/main/java/com/google/gson/Gson.java
:[446,23]
type parameters of <T>T cannot be determined; no unique maximal instance
exists for type variable T with upper bounds T,java.lang.Object

And its a bug in javac!
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954

Attached is a patch that works around this problem.

Original issue reported on code.google.com by james.w....@gmail.com on 8 Aug 2009 at 3:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 23 Sep 2009 at 5:47