Community
Participate
Working Groups
Created attachment 265613 [details] Sample eclipse project I've attached a sample project to reproduce the issue. Basically, Test<T> inherits from LibType<T>. Test belongs to the source files to compile. LibType is in a library on classpath, but references TypeMissingFromClasspath, which is not the classpath when Test is compiled. Things that seem to trigger the bug: - LibType has to be generic - Test must define a constructor with a parameter Reproduced with ecj 4.7M3. Compiles with javac.
Essentially, no guarantees are made that compilation with an incomplete classpath will succeed. A typical scenario is overload resolution, where all compilers need even types that are not referenced in any way by the current source file. I agree, however, that in this particular example it would be *nice* if ecj avoids touching TypeMissingFromClasspath.