Summary: | "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it" error when building classes with multiple nested anonymous inner classes | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Janis Krumins <ogremage> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | Keywords: | needinfo |
Version: | 3.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Janis Krumins
2006-01-10 16:30:20 EST
a) The file with the inner classes needs to be touched/modified for the bug to exhibit itself upon the auto-rebuild. b) Just repeated it with short file names, sorry about the long version: package test; public class Test { public void b(Runnable runnable) { runnable.run(); } public void a(Runnable runnable) { runnable.run(); } public static void main(String[] args) { new Test().b(new Runnable() { public void run() { new Test().a( new Runnable() { public void run() { System.out.println("Hello world."); } }); } }); } } c) Looks like it exhibits itself after the project was rebuilt using the standard Java 1.5 JDK (invoked from an "ant" script). Do you still get it with 3.2.1 or 3.3 integration builds? Closing as REMIND. Please reopen if you still get it. As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. |