Community
Participate
Working Groups
HEAD Error for a duplicate type declaration sometimes has a wrong source range. Steps: - copy this cu text and paste to a source folder: package xy; public class Try {} class Bug {} - copy this cu text and paste to the same source folder: package xy; class Bug { int field; int field2; int field3; } => source range is somewhere between field and field2 in Bug.java => expected: source range on one of the class declaration names
Cannot reproduce with I20060330-0010. Would you ming trying to reproduce with this build and let me know if you can do it. Closign as WORKSFORME. Reopen if you get it again.
Closing.
Can still reproduce with I20060331-2000, though steps are somewhat timing-dependent...: - new workspace - create new Java project "P" (all defaults) - in Package Explorer, paste first CU text into project P - wait for autobuild to finish - paste second CU text into project P It only seems to be happening if class Bug already exists as secondary type and then Bug.java is added and incrementally compiled.
I tried again and I cannot reproduce. I'll try to see how this could be related to a timing issue.
I tried to reproduce. Unsuccessfully.
Also can't reproduce any more. Worksforme.