Bug 135401 - [compiler] Inner Inner class confuses the compiler
Summary: [compiler] Inner Inner class confuses the compiler
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-04-06 17:11 EDT by Misko Hevery CLA
Modified: 2009-08-30 02:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Misko Hevery CLA 2006-04-06 17:11:04 EDT
I get this error:
The type com.abc.HtmlPowerTable$Column.Property cannot be resolved. It is indirectly referenced from required .class files

Well the problem is that inner inner class is defined like this:
com.abc.HtmlPowerTable$Column$Property (notice the second $$ not $.)

package com.abc;
class HtmlPowerTable{
  class Column{
    class Property{
    }
  }
}

This is an intermittent error. Whenever it happens forcing a recompile will cause it usually to go away. I was never able to reproduce it on a simple test case. It is almost as if the compiler has some cache and when it overflows (on a large project) the cache miss causes the class to be reloaded with a wrong name.

Sorry I can't seem to be able to provide an example which will fail on a small project or consistently. :-(
Comment 1 Olivier Thomann CLA 2006-04-17 23:22:14 EDT
Bug 136508 might be a duplicate of this one.
Comment 2 Olivier Thomann CLA 2006-04-25 00:19:32 EDT
Fixed typo in the title.
Comment 3 Philipe Mulet CLA 2006-04-26 18:41:34 EDT
Please attempt to reproduce in latest nightly build, as suspicion is that it is a dup of bug 136508 which just got fixed.

If symptoms persist, then pls reopen.
Comment 4 Denis Roy CLA 2009-08-30 02:04:52 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.