Reviewers: Lex,

Description:
It appears JDT has a bug where it will pass you a null scope while
visiting the expression of an empty switch statement. See:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3936

It turns out, however, that TypeRefVisitor was only using the scope
chain to compute the containing CUD on the fly.  Since this visitor
always traverses entire CUDs, we can work around the JDT scope issue by
just requiring the CUD to be set up front.


Please review this at http://gwt-code-reviews.appspot.com/58801

Affected files:
    
dev/core/src/com/google/gwt/dev/javac/BinaryTypeReferenceRestrictionsChecker.java
   dev/core/src/com/google/gwt/dev/javac/CompilationUnit.java
   dev/core/src/com/google/gwt/dev/jdt/TypeRefVisitor.java



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to