Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Bug in Eclipse? multiple class definitions in one java file
Bug in Eclipse? multiple class definitions in one java file [message #144844] Tue, 24 February 2004 09:11 Go to next message
Eclipse UserFriend
Originally posted by: mg_news03.gmx.net

Hi,

according to what I just read in the Java Nutshell, it is legal to
define several classes in one java file but only one can be public. All
the other classes defined there are accessable within that package only.

As it seems the syntax highlighting engine of JDT doesn't "know" that,
because types defined in a java file which isn't named after that class
appear as "unresolvable" when used in a class defined in another java file.

Is there a preference which changes this behaviour or are there any
reasons why this behaviour was chosen?

Regards,

MG
Re: Bug in Eclipse? multiple class definitions in one java file [message #144871 is a reply to message #144844] Tue, 24 February 2004 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: mg_news03.gmx.net

Ok, I've found

https://bugs.eclipse.org/bugs/show_bug.cgi?id=32505

So this is basically a performance issue.

Would be nice to have it resolved somehow, although it is bad
programming style to add several class descriptions to one java file.
Previous Topic:E30 M7 JUnit Problem
Next Topic:Debugger "Drop to frame"
Goto Forum:
  


Current Time: Thu Aug 29 20:53:52 GMT 2024

Powered by FUDForum. Page generated in 0.03485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top