Hi all, I'm still having trouble getting super-source to work. Right now, I'm trying to come up with the simplest, most reduced example that uses super-source, because the more complicated examples I have been working from have failed to work. To this end, I have started with an empty workspace, and created a new example GWT project. I then created a new GWT Java project, created a new source folder src/gwt, and created a new package java.io. In the package, I created OutputStreamReader.java. To keep things as simple as possible, I actually copy-pasted the minimal source code from the GWT implementation:
http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/user/super/com/google/gwt/emul/java/io/OutputStream.java&q=Emulation.gwt.xml%20package:http://google-web-toolkit\.googlecode\.com I created a minimal, top-level module in src/gwt called TestSuper.gwt.xml, which contains only a single empty super-source tag. Finally, I added the super-source project to the example project's build path, and added a line to the example project module to inherit the super-source project's module. To recap, my projects have the following structure: test/ src/ foo.bar.test/ Test.gwt.xml foo.bar.test.client/ foo.bar.test.server/ testsuper/ src/gwt/ TestSuper.gwt.xml java.io/ OutputStream.java When I try to run the example project in hosted mode, I get about 300 lines of errors. Here are the first few: [ERROR] Errors in 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-dev-linux.jar!/com/google/gwt/dev/jjs/impl/Pruner.java' [ERROR] Line 1041: The method subList(int, int) is undefined for the type List<JExpression> [ERROR] Errors in 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/junit/JUnitShell.java' [ERROR] Line 42: The import junit cannot be resolved [ERROR] Line 42: The import junit cannot be resolved [ERROR] Line 44: The import junit cannot be resolved [ERROR] Line 49: The import java.util.regex cannot be resolved [ERROR] Line 50: The import java.util.regex cannot be resolved [ERROR] Line 92: TestCase cannot be resolved to a type [ERROR] Line 288: The type JUnitShell.JUnitStrategy must implement the inherited abstract method JUnitShell.Strategy.processResult(TestCase, JUnitResult) [ERROR] Line 297: TestCase cannot be resolved to a type [ERROR] Line 344: TestCase cannot be resolved to a type ... [ERROR] Errors in 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-dev-linux.jar!/com/google/gwt/dev/ApplicationCreator.java' [ERROR] Line 27: The method exit(int) is undefined for the type System And it continues like. All errors originate in the GWT SDK. When I attempt to compile it, I get a lot of warnings, and finally a NPE. [WARN] jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/event/dom/client/DomEvent.java [WARN] Compilation unit 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/event/dom/client/HasMouseOutHandlers.java' is removed due to invalid reference(s): [WARN] jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/event/shared/HasHandlers.java [WARN] Compilation unit 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/i18n/client/impl/plurals/DefaultRule_ln.java' is removed due to invalid reference(s): [WARN] jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/i18n/client/PluralRule.java [WARN] Compilation unit 'jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/i18n/client/impl/plurals/DefaultRule_en.java' is removed due to invalid reference(s): [WARN] jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/i18n/client/PluralRule.java ... Refreshing TypeOracle Processing types in compilation unit: jar:file:/home/jacob/apps/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-linux-1.6.4/gwt-dev-linux.jar!/com/google/gwt/dev/js/ast/JsSourceInfo.java Found type 'JsSourceInfo' [WARN] Unable to resolve type: java.lang.Object binding: org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding [ERROR] Unexpected java.lang.NullPointerException at com.google.gwt.core.ext.typeinfo.JRealClassType.setSuperclass(JRealClassType.java:402) at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration(TypeOracleMediator.java:1407) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:389) at com.google.gwt.dev.javac.TypeOracleMediator.refresh(TypeOracleMediator.java:417) at com.google.gwt.dev.javac.CompilationState.refresh(CompilationState.java:179) at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:264) at com.google.gwt.dev.Precompile.precompile(Precompile.java:283) at com.google.gwt.dev.Compiler.run(Compiler.java:170) at com.google.gwt.dev.Compiler$1.run(Compiler.java:124) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:84) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:78) at com.google.gwt.dev.Compiler.main(Compiler.java:131) It is clear that my understanding of super-source is still insufficient to construct even a reduced sample. Could anyone tell me what it is I am doing that is causing my reduced example to fail to compile? Please let me know. Thanks, Jake --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
