Gavin King

Results 1281 comments of Gavin King

I mean, consider, for example: - The case where an associated object is already available in the PC. Are you really going to force me to return an uninitialized proxy...

I mean, if we restrict things the way you suggest, consider what would be implied by section 3.7.5.1. It tells my that _by default_ I'm supposed to fetch _just the...

> Define in the JPA spec that in case an entity manager is using JDBC to execute SQL statements, any thrown `SQLException`s MUST be returned DIRECTLY by `PersistenceException.getCause()`. I have...

> I had thought of that, and indeed it seems very nice... I'd be interested in @gavinking's opinion though. I suspect there's a very good reason not to have done...

Note that I guess I kinda slightly oversimplified the situation with JPA, since actually there are some constraints on what you can do with different types of expressions, but they...

@bjansen I was trying to figure this one out and perhaps the answer is to use `psi.accept(PsiTypeVisitor)` to get the qualifying type? WDYT?

Yeah that one. Oh I thought maybe it visits the constituent types of a type expression.

Note that what is interesting about inner interfaces is that they are actually compiled to *toplevel interfaces*.

So the bug here is the following: `AnnotationMirror.getValue()` returns a `TypeMirror` in the case where the annotation member is of type `java.lang.Class`. Now, in, for example, the `ReflectionModelLoader`, the `TypeMirror`...