pascallouisperez / jsonmarshaller

JsonMarshaller is a Java 1.5 library that allows marshalling and unmarshalling of JSON objects to and from entities ("Java classes").
Apache License 2.0
1 stars 0 forks source link

Non-static inner class JsonType throws cryptic exception #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
class FormulaRanking {
   class JsonType extends JsonTypeAdapter<FormulaRanking> {
       JsonType() { ... }
   }
}

What is the expected output? What do you see instead?
Expected: some error indicating that JsonType is a non-static inner class.
Actual: "class ... is missing a no-argument constructor"

I initially thought this was related to access modifiers and tried a few 
variations of package / public / private before noticing that it wasn't a 
static class. The reported error is technically correct, but misleading.

Original issue reported on code.google.com by kevin...@gmail.com on 27 Jul 2010 at 10:04