Fully process annotation types.
Binary annotations never become TypeDeclarations, so this short-circuit code is unnecessarily preventing us from fully processing annotation types. This is bad, because it's perfectly legal to have a concrete class implement an annotation type.
http://gwt-code-reviews.appspot.com/1340801/show
Review by: robertvawter@google.com
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9664 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
index 1557dc4..2b5dba1 100644
--- a/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
+++ b/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
@@ -451,14 +451,6 @@
* output JavaScript.
*/
public void processType(TypeDeclaration x) {
- if (x.binding.isAnnotationType()) {
- // Do not process completely. Use tryGet for binary-only annotations
- currentClass = (JDeclaredType) typeMap.tryGet(x.binding);
- if (currentClass != null) {
- processHasAnnotations(currentClass, x.annotations);
- }
- return;
- }
currentClass = (JDeclaredType) typeMap.get(x.binding);
processHasAnnotations(currentClass, x.annotations);
try {