langtools/src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationProxyMaker.java
equal
deleted
inserted
replaced
250 /** |
250 /** |
251 * Sets "value" to an ExceptionProxy indicating a type mismatch. |
251 * Sets "value" to an ExceptionProxy indicating a type mismatch. |
252 */ |
252 */ |
253 private void typeMismatch(final Method method, final Attribute attr) { |
253 private void typeMismatch(final Method method, final Attribute attr) { |
254 value = new ExceptionProxy() { |
254 value = new ExceptionProxy() { |
|
255 private static final long serialVersionUID = 8473323277815075163L; |
255 public String toString() { |
256 public String toString() { |
256 return "<error>"; // eg: @Anno(value=<error>) |
257 return "<error>"; // eg: @Anno(value=<error>) |
257 } |
258 } |
258 protected RuntimeException generateException() { |
259 protected RuntimeException generateException() { |
259 return new AnnotationTypeMismatchException(method, |
260 return new AnnotationTypeMismatchException(method, |
268 * ExceptionProxy for MirroredTypeException. |
269 * ExceptionProxy for MirroredTypeException. |
269 * The toString, hashCode, and equals methods foward to the underlying |
270 * The toString, hashCode, and equals methods foward to the underlying |
270 * type. |
271 * type. |
271 */ |
272 */ |
272 private static class MirroredTypeExceptionProxy extends ExceptionProxy { |
273 private static class MirroredTypeExceptionProxy extends ExceptionProxy { |
|
274 private static final long serialVersionUID = 6662035281599933545L; |
273 |
275 |
274 private MirroredTypeException ex; |
276 private MirroredTypeException ex; |
275 |
277 |
276 MirroredTypeExceptionProxy(TypeMirror t) { |
278 MirroredTypeExceptionProxy(TypeMirror t) { |
277 // It would be safer if we could construct the exception in |
279 // It would be safer if we could construct the exception in |
309 * ExceptionProxy for MirroredTypesException. |
311 * ExceptionProxy for MirroredTypesException. |
310 * The toString, hashCode, and equals methods foward to the underlying |
312 * The toString, hashCode, and equals methods foward to the underlying |
311 * types. |
313 * types. |
312 */ |
314 */ |
313 private static class MirroredTypesExceptionProxy extends ExceptionProxy { |
315 private static class MirroredTypesExceptionProxy extends ExceptionProxy { |
|
316 private static final long serialVersionUID = -6670822532616693951L; |
314 |
317 |
315 private MirroredTypesException ex; |
318 private MirroredTypesException ex; |
316 |
319 |
317 MirroredTypesExceptionProxy(Collection<TypeMirror> ts) { |
320 MirroredTypesExceptionProxy(Collection<TypeMirror> ts) { |
318 // It would be safer if we could construct the exception in |
321 // It would be safer if we could construct the exception in |