Home » Language IDEs » Java Development Tools (JDT) » Eclipse compiles, javac doesn’t
Eclipse compiles, javac doesn’t [message #236092] |
Wed, 20 September 2006 11:51  |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
Hi, I recently posted the following message to eclipse.newcomer, but
Daniel Megert suggested to state the question here (I think). S here it
goes:
I have a rather complicated project with a lot of generics. I struggled
hard to get rid of all warnings and error messages in Eclipse. Now, if
I try to compile the same project from the command line, I get a whole
bunch of error messages, mostly concerning generics (and quite a few ‘No
such symbol’ errors). Is there a way to tell Eclipse it should use the
javac compiler, or to have it use the same rules/strictness?
Thanks,
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236109 is a reply to message #236092] |
Wed, 20 September 2006 12:44   |
Eclipse User |
|
|
|
Originally posted by: eclipse4.rizzoweb.com
Hendrik Maryns wrote:
> Hi, I recently posted the following message to eclipse.newcomer, but
> Daniel Megert suggested to state the question here (I think). S here it
> goes:
>
> I have a rather complicated project with a lot of generics. I struggled
> hard to get rid of all warnings and error messages in Eclipse. Now, if
> I try to compile the same project from the command line, I get a whole
> bunch of error messages, mostly concerning generics (and quite a few ‘No
> such symbol’ errors). Is there a way to tell Eclipse it should use the
> javac compiler, or to have it use the same rules/strictness?
No, Eclipse can not use javac (for good reason).
Eclipse is a spec-compliant compiler, so if you find some cases where it
does not meet the spec, you should report the details as a bug against
Eclipse JDT.
Having said that, I suspect you are simply not using javac correctly.
Perhaps your system has more than one JDK installed and your
command-line compile is inadvertently using a pre-1.5 version? OR do you
have a system CLASSPATH setting that could be causing conflicts with javac?
What is the javac command-line you are trying? What, if anything, is
your system CLASSPATH? What is the result of "java -version"?
--
Hope this helps,
Eric
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236117 is a reply to message #236109] |
Wed, 20 September 2006 13:00   |
Eclipse User |
|
|
|
Eric Rizzo wrote:
> Hendrik Maryns wrote:
>
>> Hi, I recently posted the following message to eclipse.newcomer, but
>> Daniel Megert suggested to state the question here (I think). S here
>> it goes:
>>
>> I have a rather complicated project with a lot of generics. I
>> struggled hard to get rid of all warnings and error messages in
>> Eclipse. Now, if I try to compile the same project from the command
>> line, I get a whole bunch of error messages, mostly concerning
>> generics (and quite a few ‘No such symbol’ errors). Is there a way
>> to tell Eclipse it should use the javac compiler, or to have it use
>> the same rules/strictness?
>
>
> No, Eclipse can not use javac (for good reason).
It can if you are willing to loose all the additional features. Simply
register an Ant task using javac as builder instead of the 'Java
Builder' (see 'Builders' project property page).
Dani
> Eclipse is a spec-compliant compiler, so if you find some cases where
> it does not meet the spec, you should report the details as a bug
> against Eclipse JDT.
> Having said that, I suspect you are simply not using javac correctly.
> Perhaps your system has more than one JDK installed and your
> command-line compile is inadvertently using a pre-1.5 version? OR do
> you have a system CLASSPATH setting that could be causing conflicts
> with javac?
> What is the javac command-line you are trying? What, if anything, is
> your system CLASSPATH? What is the result of "java -version"?
>
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236178 is a reply to message #236117] |
Thu, 21 September 2006 06:18   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
Daniel Megert schreef:
> Eric Rizzo wrote:
>
>> Hendrik Maryns wrote:
>>
>>> Hi, I recently posted the following message to eclipse.newcomer, but
>>> Daniel Megert suggested to state the question here (I think). S here
>>> it goes:
>>>
>>> I have a rather complicated project with a lot of generics. I
>>> struggled hard to get rid of all warnings and error messages in
>>> Eclipse. Now, if I try to compile the same project from the command
>>> line, I get a whole bunch of error messages, mostly concerning
>>> generics (and quite a few ‘No such symbol’ errors). Is there a way
>>> to tell Eclipse it should use the javac compiler, or to have it use
>>> the same rules/strictness?
>>
>>
>> No, Eclipse can not use javac (for good reason).
>
> It can if you are willing to loose all the additional features. Simply
> register an Ant task using javac as builder instead of the 'Java
> Builder' (see 'Builders' project property page).
OK, this works, but isn’t really helpful, as the errors reported by
javac are not shown in the source. So no, I am not willing to loose all
the additional features...
>> Eclipse is a spec-compliant compiler, so if you find some cases where
>> it does not meet the spec, you should report the details as a bug
>> against Eclipse JDT.
I don’t want to be provocative, but I vaguely remember a thread in
comp.lang.java.(help|programmer) where somebody claimed that his
experience was that whenever eclipse and javac differ in meaning, javac
is right, following the experts. Ah, I found it:
http://groups.google.com/groups?as_umsgid=eeosou$6mm$1@news2 .kornet.net
>> Having said that, I suspect you are simply not using javac correctly.
>> Perhaps your system has more than one JDK installed and your
>> command-line compile is inadvertently using a pre-1.5 version?
Certainly not:
hendrik@lichtenstein:~/workspace/Jakarta> javac -version
javac 1.5.0_07
I tried with the ibm javac too:
hendrik@lichtenstein:~/workspace/Jakarta>
/usr/local/ibm-java2-x86_64-50/bin/javac -version
javac 1.5.0
It gives more or less the same errors.
>> OR do
>> you have a system CLASSPATH setting that could be causing conflicts
>> with javac?
env | grep CLASSPATH returns nothing
>> What is the javac command-line you are trying? What, if anything, is
>> your system CLASSPATH? What is the result of "java -version"?
I used a supplied build file with ant, but it comes down to this, which
give the same errors:
hendrik@lichtenstein:~/workspace/Jakarta>
/usr/local/ibm-java2-x86_64-50/bin/javac -Xlint:-deprecation -classpath
/home/hendrik/Java/Jakarta\ Commons\
Collections/commons-collections-generic-3.2-src/src/java
org/apache/commons/collections/*.java
(at will, remove /usr/local/ibm-java2-x86_64-50/bin)
And then:
org/apache/commons/collections/ClosureUtils.java:196: cannot find symbol
symbol : method
getInstance(org.apache.commons.collections.Closure<capture of ? super
I>,org.apache.commons.collections.Closure<capture of ? super I>)
location: class org.apache.commons.collections.functors.ChainedClosure
return ChainedClosure.getInstance(closure1, closure2);
^
and so on. (I am sure the method is there, btw.)
It fails with 20 errors. There are generics involved in all of them.
I guess I’ll have to go error-hunting without Eclipse’s useful features
now...
H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
|
|
| |
Re: Eclipse compiles, javac doesn’t [message #236239 is a reply to message #236184] |
Fri, 22 September 2006 05:53   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Philippe Mulet schreef:
> Hendrik,
>
> The message on comp.lang.java.programmer is standard FUD. If you go back
> there, you will see that this is a javac bug which got identified
> ( http://groups.google.com/group/comp.lang.java.programmer/bro wse_thread/thread/faca2633a3adeef4/ce48585945d47a0f?#ce48585 945d47a0f).
Ok, I didn’t see that follow-up before.
> As for using the Javac from IBM JDK, it is simply Sun Javac again. So it
> should behave the same.
I doubt it is the same javac, they give slightly different output messages:
hendrik@lichtenstein:~/workspace/Jakarta>
/usr/local/ibm-java2-x86_64-50/bin/javac -Xlint:-deprecation -classpath
/home/hendrik/Java/Jakarta\ Commons\
Collections/commons-collections-generic-3.2-src/src/java
org/apache/commons/collections/*.java >& ibm
hendrik@lichtenstein:~/workspace/Jakarta> javac -Xlint:-deprecation
- -classpath /home/hendrik/Java/Jakarta\ Commons\
Collections/commons-collections-generic-3.2-src/src/java
org/apache/commons/collections/*.java >& javac
hendrik@lichtenstein:~/workspace/Jakarta> diff -u javac ibm --- javac
2006-09-22 11:51:43.000000000 +0200
+++ ibm 2006-09-22 11:51:30.000000000 +0200
@@ -94,7 +94,7 @@
location: class
org.apache.commons.collections.functors.InstantiateFactory<T >
return new InstantiateFactory<T>(
^
- -Note: Some input files use or override a deprecated API.
+Note: * uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Now if you find specifics, please enter a bug report against
> Eclipse/JDT/Core, and we will check it. If you found a compiler bug,
> then we will fix it; don't worry.
Well, it is not so easy to isolate the problem, some hints would be
welcome on how to do that.
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFE7KIe+7xMGD3itQRAn3CAJ90LvE+HxDnJ8JKRd8rl9BAvR3E8QCf R8Ku
gp6UQ+Pxo+1X5Q3CwmTVYbk=
=5uEh
-----END PGP SIGNATURE-----
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236245 is a reply to message #236239] |
Fri, 22 September 2006 06:47   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
This is a multi-part message in MIME format.
--------------030509060207060909010708
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hendrik Maryns schreef:
> Philippe Mulet schreef:
>> Now if you find specifics, please enter a bug report against
>> Eclipse/JDT/Core, and we will check it. If you found a compiler bug,
>> then we will fix it; don't worry.
>
> Well, it is not so easy to isolate the problem, some hints would be
> welcome on how to do that.
I slimmed it down to three classes, focusing on the first error I get.
The class ClosureUtils invokes ChainedClosure.getInstance(Closure<?
super I> closure1, Closure<? super I> closure2). Eclipse says this is
ok, javac gives:
hendrik@lichtenstein:~/workspace/test Java> javac -classpath
/home/hendrik/workspace/test\ Java/ collections/ClosureUtils.java
collections/ClosureUtils.java:8: <I>getInstance(collections.Closure<?
super I>,collections.Closure<? super I>) in
collections.functors.ChainedClosure cannot be applied to
(collections.Closure<capture of ? super I>,collections.Closure<capture
of ? super I>)
return ChainedClosure.getInstance(closure1, closure2);
^
1 error
I attach the three files, they should be put in a package ‘closure’.
Can I deliver it as a bug report like this, or is it still too complicated?
Thanks, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFE789e+7xMGD3itQRAqNlAJ4/kM0gAE26V0TfOw607pKTKe20FgCd FA7Z
c5LHsAM3IKPBKkWOr+A70M4=
=CrWn
-----END PGP SIGNATURE-----
--------------030509060207060909010708
Content-Type: text/x-java;
name="ChainedClosure.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ChainedClosure.java"
package closure;
import java.io.Serializable;
public class ChainedClosure<I> implements Closure<I>, Serializable {
private final Closure<? super I>[] iClosures;
@SuppressWarnings("unchecked")
public static <I> Closure<I> getInstance(Closure<? super I> closure1, Closure<? super I> closure2) {
if (closure1 == null || closure2 == null) {
throw new IllegalArgumentException("Closures must not be null");
}
Closure<I>[] closures = new Closure[] { closure1, closure2 };
return new ChainedClosure<I>(closures);
}
public ChainedClosure(Closure<? super I>[] closures) {
super();
iClosures = closures;
}
public void execute(I input) {
for (int i = 0; i < iClosures.length; i++) {
iClosures[i].execute(input);
}
}
}
--------------030509060207060909010708
Content-Type: text/x-java;
name="Closure.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Closure.java"
package closure;
public interface Closure<I> {
public void execute(I input);
}
--------------030509060207060909010708
Content-Type: text/x-java;
name="ClosureUtils.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ClosureUtils.java"
package closure;
public class ClosureUtils {
public static <I> Closure<I> chainedClosure(Closure<? super I> closure1, Closure<? super I> closure2) {
return ChainedClosure.getInstance(closure1, closure2);
}
}
--------------030509060207060909010708--
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236314 is a reply to message #236245] |
Mon, 25 September 2006 03:41   |
Eclipse User |
|
|
|
Hendrik Maryns wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hendrik Maryns schreef:
>
>
>>Philippe Mulet schreef:
>>
>>
>>>Now if you find specifics, please enter a bug report against
>>>Eclipse/JDT/Core, and we will check it. If you found a compiler bug,
>>>then we will fix it; don't worry.
>>>
>>>
>>Well, it is not so easy to isolate the problem, some hints would be
>>welcome on how to do that.
>>
>>
>
>I slimmed it down to three classes, focusing on the first error I get.
>The class ClosureUtils invokes ChainedClosure.getInstance(Closure<?
>super I> closure1, Closure<? super I> closure2). Eclipse says this is
>ok, javac gives:
>
>hendrik@lichtenstein:~/workspace/test Java> javac -classpath
>/home/hendrik/workspace/test\ Java/ collections/ClosureUtils.java
>collections/ClosureUtils.java:8: <I>getInstance(collections.Closure<?
>super I>,collections.Closure<? super I>) in
>collections.functors.ChainedClosure cannot be applied to
>(collections.Closure<capture of ? super I>,collections.Closure<capture
>of ? super I>)
> return ChainedClosure.getInstance(closure1, closure2);
> ^
>1 error
>
>I attach the three files, they should be put in a package ‘closure’.
>
>Can I deliver it as a bug report like this, or is it still too complicated?
>
>
As Philippe already wrote: please file a bug report.
Dani
>Thanks, H.
>- --
>Hendrik Maryns
>http://tcl.sfs.uni-tuebingen.de/~hendrik/
>==================
>http://aouw.org
>Ask smart questions, get good answers:
>http://www.catb.org/~esr/faqs/smart-questions.html
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFFE789e+7xMGD3itQRAqNlAJ4/kM0gAE26V0TfOw607pKTKe20FgCd FA7Z
>c5LHsAM3IKPBKkWOr+A70M4=
>=CrWn
>-----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------ ------------
>
>package closure;
>
>import java.io.Serializable;
>
>
>public class ChainedClosure<I> implements Closure<I>, Serializable {
>
> private final Closure<? super I>[] iClosures;
>
> @SuppressWarnings("unchecked")
> public static <I> Closure<I> getInstance(Closure<? super I> closure1, Closure<? super I> closure2) {
> if (closure1 == null || closure2 == null) {
> throw new IllegalArgumentException("Closures must not be null");
> }
> Closure<I>[] closures = new Closure[] { closure1, closure2 };
> return new ChainedClosure<I>(closures);
> }
>
> public ChainedClosure(Closure<? super I>[] closures) {
> super();
> iClosures = closures;
> }
>
> public void execute(I input) {
> for (int i = 0; i < iClosures.length; i++) {
> iClosures[i].execute(input);
> }
> }
>
>}
>
>
> ------------------------------------------------------------ ------------
>
>package closure;
>
>public interface Closure<I> {
>
> public void execute(I input);
>
>}
>
>
> ------------------------------------------------------------ ------------
>
>package closure;
>
>public class ClosureUtils {
>
> public static <I> Closure<I> chainedClosure(Closure<? super I> closure1, Closure<? super I> closure2) {
> return ChainedClosure.getInstance(closure1, closure2);
> }
>
>}
>
>
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236321 is a reply to message #236245] |
Mon, 25 September 2006 04:00   |
Eclipse User |
|
|
|
Please go there to enter a bug report:
https://bugs.eclipse.org/bugs/enter_bug.cgi
and select Eclipse/JDT/Core component.
Thanks.
Hendrik Maryns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hendrik Maryns schreef:
>> Philippe Mulet schreef:
>>> Now if you find specifics, please enter a bug report against
>>> Eclipse/JDT/Core, and we will check it. If you found a compiler bug,
>>> then we will fix it; don't worry.
>> Well, it is not so easy to isolate the problem, some hints would be
>> welcome on how to do that.
>
> I slimmed it down to three classes, focusing on the first error I get.
> The class ClosureUtils invokes ChainedClosure.getInstance(Closure<?
> super I> closure1, Closure<? super I> closure2). Eclipse says this is
> ok, javac gives:
>
> hendrik@lichtenstein:~/workspace/test Java> javac -classpath
> /home/hendrik/workspace/test\ Java/ collections/ClosureUtils.java
> collections/ClosureUtils.java:8: <I>getInstance(collections.Closure<?
> super I>,collections.Closure<? super I>) in
> collections.functors.ChainedClosure cannot be applied to
> (collections.Closure<capture of ? super I>,collections.Closure<capture
> of ? super I>)
> return ChainedClosure.getInstance(closure1, closure2);
> ^
> 1 error
>
> I attach the three files, they should be put in a package ‘closure’.
>
> Can I deliver it as a bug report like this, or is it still too complicated?
>
> Thanks, H.
> - --
> Hendrik Maryns
> http://tcl.sfs.uni-tuebingen.de/~hendrik/
> ==================
> http://aouw.org
> Ask smart questions, get good answers:
> http://www.catb.org/~esr/faqs/smart-questions.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFFE789e+7xMGD3itQRAqNlAJ4/kM0gAE26V0TfOw607pKTKe20FgCd FA7Z
> c5LHsAM3IKPBKkWOr+A70M4=
> =CrWn
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------ ------------
>
> package closure;
>
> import java.io.Serializable;
>
>
> public class ChainedClosure<I> implements Closure<I>, Serializable {
>
> private final Closure<? super I>[] iClosures;
>
> @SuppressWarnings("unchecked")
> public static <I> Closure<I> getInstance(Closure<? super I> closure1, Closure<? super I> closure2) {
> if (closure1 == null || closure2 == null) {
> throw new IllegalArgumentException("Closures must not be null");
> }
> Closure<I>[] closures = new Closure[] { closure1, closure2 };
> return new ChainedClosure<I>(closures);
> }
>
> public ChainedClosure(Closure<? super I>[] closures) {
> super();
> iClosures = closures;
> }
>
> public void execute(I input) {
> for (int i = 0; i < iClosures.length; i++) {
> iClosures[i].execute(input);
> }
> }
>
> }
>
>
> ------------------------------------------------------------ ------------
>
> package closure;
>
> public interface Closure<I> {
>
> public void execute(I input);
>
> }
>
>
> ------------------------------------------------------------ ------------
>
> package closure;
>
> public class ClosureUtils {
>
> public static <I> Closure<I> chainedClosure(Closure<? super I> closure1, Closure<? super I> closure2) {
> return ChainedClosure.getInstance(closure1, closure2);
> }
>
> }
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236328 is a reply to message #236239] |
Mon, 25 September 2006 04:04   |
Eclipse User |
|
|
|
Probably just different versions of the same implementation (different
points in time), try "javac -version".
Hendrik Maryns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Philippe Mulet schreef:
>> Hendrik,
>>
>> The message on comp.lang.java.programmer is standard FUD. If you go back
>> there, you will see that this is a javac bug which got identified
>> ( http://groups.google.com/group/comp.lang.java.programmer/bro wse_thread/thread/faca2633a3adeef4/ce48585945d47a0f?#ce48585 945d47a0f).
>
> Ok, I didn’t see that follow-up before.
>
>> As for using the Javac from IBM JDK, it is simply Sun Javac again. So it
>> should behave the same.
>
> I doubt it is the same javac, they give slightly different output messages:
>
> hendrik@lichtenstein:~/workspace/Jakarta>
> /usr/local/ibm-java2-x86_64-50/bin/javac -Xlint:-deprecation -classpath
> /home/hendrik/Java/Jakarta\ Commons\
> Collections/commons-collections-generic-3.2-src/src/java
> org/apache/commons/collections/*.java >& ibm
>
> hendrik@lichtenstein:~/workspace/Jakarta> javac -Xlint:-deprecation
> - -classpath /home/hendrik/Java/Jakarta\ Commons\
> Collections/commons-collections-generic-3.2-src/src/java
> org/apache/commons/collections/*.java >& javac
>
> hendrik@lichtenstein:~/workspace/Jakarta> diff -u javac ibm --- javac
> 2006-09-22 11:51:43.000000000 +0200
> +++ ibm 2006-09-22 11:51:30.000000000 +0200
> @@ -94,7 +94,7 @@
> location: class
> org.apache.commons.collections.functors.InstantiateFactory<T >
> return new InstantiateFactory<T>(
> ^
> - -Note: Some input files use or override a deprecated API.
> +Note: * uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
>
>> Now if you find specifics, please enter a bug report against
>> Eclipse/JDT/Core, and we will check it. If you found a compiler bug,
>> then we will fix it; don't worry.
>
> Well, it is not so easy to isolate the problem, some hints would be
> welcome on how to do that.
>
> H.
> - --
> Hendrik Maryns
> http://tcl.sfs.uni-tuebingen.de/~hendrik/
> ==================
> http://aouw.org
> Ask smart questions, get good answers:
> http://www.catb.org/~esr/faqs/smart-questions.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFFE7KIe+7xMGD3itQRAn3CAJ90LvE+HxDnJ8JKRd8rl9BAvR3E8QCf R8Ku
> gp6UQ+Pxo+1X5Q3CwmTVYbk=
> =5uEh
> -----END PGP SIGNATURE-----
|
|
| |
Re: Eclipse compiles, javac doesn’t [message #236369 is a reply to message #236349] |
Mon, 25 September 2006 13:02   |
Eclipse User |
|
|
|
FYI
158519 is another instance of the issue mentionned above on the Google
forums, and this is the same bug in Javac
@see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954
158531 is also a known issue in Javac and the JLS
@see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6369605
Note that we have already open issues for these, where we are watching
at the outcome of the Javac bugs to adjust our semantics. For the first
defect, our behavior is the expected one. One the second one, the spec
has to be addressed, and then we will adjust. We believe our current
behavior to be close to the final result (i.e. the code should be
accepted in the end, as we accept it today). But we need to wait until
the spec issue got resolved.
Hendrik Maryns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Philippe Mulet schreef:
>> Please go there to enter a bug report:
>> https://bugs.eclipse.org/bugs/enter_bug.cgi
>>
>> and select Eclipse/JDT/Core component.
>
> I just wanted to be sure you agreed on the (not so minimal) code to
> supply for the bug report.
>
> Anyway, here they are: bug 158531 and bug 158519. Should I make them
> depending on each other?
>
> Cheers, H.
> - --
> Hendrik Maryns
> http://tcl.sfs.uni-tuebingen.de/~hendrik/
> ==================
> http://aouw.org
> Ask smart questions, get good answers:
> http://www.catb.org/~esr/faqs/smart-questions.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFFF6w3e+7xMGD3itQRAsLRAJ94zyRSrSI0EKebZw/d2WwRrVVZVwCe IDji
> 8pIn1+ZjfFrAE34qIacBjHY=
> =bA/V
> -----END PGP SIGNATURE-----
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236402 is a reply to message #236369] |
Tue, 26 September 2006 03:37   |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Philippe Mulet schreef:
> FYI
> 158519 is another instance of the issue mentionned above on the Google
> forums, and this is the same bug in Javac
> @see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954
> 158531 is also a known issue in Javac and the JLS
> @see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6369605
That’s what I thought, that these bugs existed already.
> Note that we have already open issues for these, where we are watching
> at the outcome of the Javac bugs to adjust our semantics. For the first
> defect, our behavior is the expected one. One the second one, the spec
> has to be addressed, and then we will adjust. We believe our current
> behavior to be close to the final result (i.e. the code should be
> accepted in the end, as we accept it today). But we need to wait until
> the spec issue got resolved.
I do agree that Eclipse’s behaviour seems/feels correct, but it is
inconvenient, because I want to make an ant task to compile it outside of E.
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD4DBQFFGNjKe+7xMGD3itQRApPTAJ9DLttpaTvOKTKuRZvtRqpPjGEscgCY yRN/
T1ylN221husjZCJ5viLiFA==
=HhSf
-----END PGP SIGNATURE-----
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236415 is a reply to message #236402] |
Tue, 26 September 2006 05:29   |
Eclipse User |
|
|
|
This one is simpler <g>... you can use the Eclipse Java compiler
standalone, and it comes with an Ant Javac task adapter (either use
directly the JDT/Core plugin JAR org.eclipse.jdt.core_xxx.jar from your
Eclipse install, or grab a smaller subset conveniently packaged as
ecj.jar which contains the batch compiler and an Ant javac task adapter).
You can get ecj.jar directly from the Eclipse download page
e.g. for standalone batch compiler matching 3.2 version
http://download.eclipse.org/eclipse/downloads/drops/R-3.2-20 0606291905/download.php?dropFile=ecj.jar
Each time a new build is made available, a new version of ecj.jar is
posted as well.
For instruction on how to use the batch compiler either on command line
or through an Ant task, please read:
http://help.eclipse.org/help32/topic/org.eclipse.jdt.doc.isv /guide/jdt_api_compile.htm
Hope this helps, and feel free to ping us in case you do not succeed.
FYI - Eclipse drops are constructed using this very Ant adapter, so it
should work for you as well.
Hendrik Maryns wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Philippe Mulet schreef:
>> FYI
>> 158519 is another instance of the issue mentionned above on the Google
>> forums, and this is the same bug in Javac
>> @see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954
>> 158531 is also a known issue in Javac and the JLS
>> @see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6369605
>
> That’s what I thought, that these bugs existed already.
>
>> Note that we have already open issues for these, where we are watching
>> at the outcome of the Javac bugs to adjust our semantics. For the first
>> defect, our behavior is the expected one. One the second one, the spec
>> has to be addressed, and then we will adjust. We believe our current
>> behavior to be close to the final result (i.e. the code should be
>> accepted in the end, as we accept it today). But we need to wait until
>> the spec issue got resolved.
>
> I do agree that Eclipse’s behaviour seems/feels correct, but it is
> inconvenient, because I want to make an ant task to compile it outside of E.
>
> H.
> - --
> Hendrik Maryns
> http://tcl.sfs.uni-tuebingen.de/~hendrik/
> ==================
> http://aouw.org
> Ask smart questions, get good answers:
> http://www.catb.org/~esr/faqs/smart-questions.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD4DBQFFGNjKe+7xMGD3itQRApPTAJ9DLttpaTvOKTKuRZvtRqpPjGEscgCY yRN/
> T1ylN221husjZCJ5viLiFA==
> =HhSf
> -----END PGP SIGNATURE-----
|
|
|
Re: Eclipse compiles, javac doesn’t [message #236421 is a reply to message #236415] |
Tue, 26 September 2006 06:38  |
Eclipse User |
|
|
|
Originally posted by: hendrik_maryns.despammed.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Philippe Mulet schreef:
> This one is simpler <g>... you can use the Eclipse Java compiler
> standalone, and it comes with an Ant Javac task adapter (either use
> directly the JDT/Core plugin JAR org.eclipse.jdt.core_xxx.jar from your
> Eclipse install, or grab a smaller subset conveniently packaged as
> ecj.jar which contains the batch compiler and an Ant javac task adapter).
Thanks for the pointers, but as this isn’t my project, this is no
option. I am only a contributer. I will consider it for later projects
though.
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFFGQMJe+7xMGD3itQRAmZnAJ91fzwIEpA4JF7beYemQB8FM+nQfwCf Zqjg
UjnBsGpDFSRD3C3Gbra3QVc=
=iyDd
-----END PGP SIGNATURE-----
|
|
|
Goto Forum:
Current Time: Sat Sep 13 19:49:07 EDT 2025
Powered by FUDForum. Page generated in 0.05689 seconds
|