1. ERROR in /Users/mg/Documents/Grails/GGTS3.6.2/TestJ2Objc/src/main/java/com/example/Starter.java (at line 0)
package com.example;
^
Internal compiler error: java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.filterKeys(Lcom/google/common/collect/SetMultimap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/SetMultimap; at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:225)
----------
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.filterKeys(Lcom/google/common/collect/SetMultimap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/SetMultimap;
at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:225)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)
at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)
at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:820)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:434)
at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4099)
at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1689)
at com.google.devtools.j2objc.TranslationProcessor.processAnnotations(TranslationProcessor.java:175)
at com.google.devtools.j2objc.TranslationProcessor.processFiles(TranslationProcessor.java:118)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:197)
--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1. ERROR in /Users/mg/Documents/Grails/GGTS3.6.2/TestJ2Objc/src/main/java/com/example/Starter.java (at line 0)
package com.example;
^
Internal compiler error: java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.filterKeys(Lcom/google/common/collect/SetMultimap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/SetMultimap; at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:225)
----------
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.filterKeys(Lcom/google/common/collect/SetMultimap;Lcom/google/common/base/Predicate;)Lcom/google/common/collect/SetMultimap;
at com.google.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:225)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)
at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)
at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)
at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:820)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:434)
at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4099)
at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1689)
at com.google.devtools.j2objc.TranslationProcessor.processAnnotations(TranslationProcessor.java:175)
at com.google.devtools.j2objc.TranslationProcessor.processFiles(TranslationProcessor.java:118)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:197)
ApplicationModule$$ProvideTesterFactory.java
Dagger_ApplicationComponent.java
The source files are:
-----------------
package com.example;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@Module
public class ApplicationModule {
@Provides
@Singleton
Tester provideTester() {
return new TesterImpl();
}
}
----------------
and
-----------------
package com.example;
import javax.inject.Singleton;
import dagger.Component;
@Component(modules = {ApplicationModule.class})
@Singleton
public interface ApplicationComponent {
Tester getTester();
}
Then I just skipped the annotation process and translated the files with j2objc:
j2objc --no-package-directories -use-arc -d build/classes -sourcepath src/main/java:build/source/apt src/main/java/com/example/Tester.java src/main/java/com/example/TesterImpl.java src/main/java/com/example/SomeClassB.java src/main/java/com/example/ApplicationModule.java src/main/java/com/example/ApplicationComponent.java src/main/java/com/example/Starter.java build/source/apt/com/example/Dagger_ApplicationComponent.java 'build/source/apt/com/example/ApplicationModule$$ProvideTesterFactory.java' -classpath lib/javax.inject-1.jar:lib/dagger-2.0-SNAPSHOT.jar
The result is that 8 files have been translated. As seen in the following screenshot:
When I do the same with the javac command I get 10 .class files generated:
Javac generated Dagger_ApplicationComponent$1.class and Dagger_ApplicationComponent$Builder.class . Did I make anything wrong here?
--