Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [jdt-core-dev] Concern about removal of unused import preferences

Craig,

I confirm that javac will reject invalid imports, and I Marco said there is
no way to change this behavior with javac. So if your code compiles with
javac, it should compile with Eclipse/JDT (unless we have a bug of course :
-)

The reason for this option was to ease the transition for VA/Java users.
The VA/Jave compiler wrongly accepted invalid imports. However we realized
later that reporting an invalid import as a warning or ignoring it was
against the Java language specification. So this is why this option is now
removed.

Jerome



|---------+------------------------------>
|         |           "Setera, Craig"    |
|         |           <csetera@xxxxxxxx> |
|         |           Sent by:           |
|         |           jdt-core-dev-admin@|
|         |           eclipse.org        |
|         |                              |
|         |                              |
|         |           10/22/2003 06:28 PM|
|         |           Please respond to  |
|         |           jdt-core-dev       |
|         |                              |
|---------+------------------------------>
  >-----------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                       |
  |       To:       <jdt-core-dev@xxxxxxxxxxx>                                                                            |
  |       cc:                                                                                                             |
  |       Subject:  RE: [jdt-core-dev] Concern about removal of unused import preferences                                 |
  |                                                                                                                       |
  >-----------------------------------------------------------------------------------------------------------------------|




Marco,

I see what you are getting at, but I can't even be guaranteed there are no
invalid imports in this code.  The joys of dealing with code from somewhere
else.  I guess my only concern is that Eclipse can compile anything that
javac can compile.  If javac can't compile the same statements, then we
should be fine.

Thanks,
Craig

-----Original Message-----
From: Marco Qualizza [mailto:mqualizza@xxxxxxxxxxxxx]
Sent: Wednesday, October 22, 2003 11:23 AM
To: Setera, Craig
Subject: Re: [jdt-core-dev] Concern about removal of unused import
preferences


I blinked at this one too for a second, Craig, but quickly focused on
"INVALID".  Not unused, invalid.  :-)

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev







Back to the top