Bug 214725 - [batch][compiler][options] JDT and javac differ re. the use of . as a default sourcepath
Summary: [batch][compiler][options] JDT and javac differ re. the use of . as a default...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on: 97332
Blocks:
  Show dependency tree
 
Reported: 2008-01-09 05:01 EST by Maxime Daniel CLA
Modified: 2022-11-03 15:56 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 Maxime Daniel CLA 2008-01-09 05:01:54 EST
I20080108-1320

Setup : one class X refers to another class Y, both in default package. Both X.java and Y.java are in the same directory. Go to that directory and compile X.java, further specifying a -d directory that is different from the former one. javac (from 1.3 to 7) will compile OK. JDT will complain that it cannot find type Y. Adding and explicit '-sourcepath .' option gets JDT to compile.

Not that critical since the workaround is ez. However, except we have a good reason to keep that discrepancy, we'd better get rid of it.

(Prepared associated test cases BatchCompilerTest#18* in the course of wip on bug 97332, will release them separately.)
Comment 1 Maxime Daniel CLA 2008-01-09 09:52:25 EST
Further remark: javac -cp dummy.jar X.java won't compile either (except if dummy.jar defines Y). Which implies that the default mechanism only kicks in when no classpath is specified at all.
Comment 2 Maxime Daniel CLA 2008-01-11 03:57:31 EST
Will wait until bug 97332 is released.
Comment 3 Maxime Daniel CLA 2008-01-11 04:01:19 EST
Will wait on bug 211588 release, sorry.
Comment 4 Maxime Daniel CLA 2008-01-15 02:49:44 EST
Definitely, 97332. Could fix this one separately, but this would induce work duplication and merge issues, which I'd rather avoid.
Comment 5 Eclipse Genie CLA 2020-07-27 12:08:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2022-11-03 15:56:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.