This seems kinda hacky since you could recompute the seed func name at
compile time during GenerateJavaScriptAST?
Honestly, the way JClassLiteral works is pretty crappy... ideally you'd
rather just emit exactly what you need during GenerateJavaScriptAST anyway.

2009/3/31 <b...@google.com>

> Reviewers: scottb, rjrjr,
>
> Description:
> This patch changes class literal setup to pass the class's seed function
> into createForClass when a seed function is available for the type.  The
> behavior of Class.getName() in -XdisableClassMetadata mode is changed to
> return "Class$<seedName>" for instantiable types or "Class$<stable
> number>" for all non-instantiable or JSO types.
>
> Please review this at http://gwt-code-reviews.appspot.com/15805
>
> Affected files:
>  dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java
>  dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
>  dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
>  dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java
>  user/super/com/google/gwt/emul/java/lang/Class.java
>  user/test/com/google/gwt/dev/jjs/test/ClassObjectTest.java
>
>
>

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

Reply via email to