Bytecoder icon indicating copy to clipboard operation
Bytecoder copied to clipboard

Error when "stackifying" methods from external google library

Open TuckWa opened this issue 2 years ago • 0 comments

I have some code using google's guava library, and Bytecoder dies when stackifying everything:

... [INFO] Compiling com.google.common.collect.ImmutableSet$CachingAsList. [DEBUG] Method com.google.common.collect.ImmutableSet$CachingAsList. successfully stackified [INFO] Compiling com.google.common.collect.ImmutableSet$CachingAsList.iterator [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.380 s [INFO] Finished at: 2022-06-15T10:06:53-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.mirkosertic.bytecoder:bytecoder-mavenplugin:0-SNAPSHOT:compile (default) on project domino-acf-policies: Error running bytecoder: General error while processing com.google.common.collect.ImmutableSet$CachingAsList.iterator: Cannot find method iterator -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.mirkosertic.bytecoder:bytecoder-mavenplugin:0-SNAPSHOT:compile (default) on project domino-acf-policies: Error running bytecoder

You can see the ImmutableSet here: https://github.com/google/guava/blob/master/guava/src/com/google/common/collect/ImmutableSet.java

Shouldn't iterator() be inherited in this class? I'm not sure why it wouldn't be found.

TuckWa avatar Jun 15 '22 17:06 TuckWa