After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587733 - configure doesn't check for new-enough Java
configure doesn't check for new-enough Java
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: Java bindings
4.1.x
Other Linux
: Normal normal
: ---
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-04 10:40 UTC by Murray Cumming
Modified: 2009-08-19 20:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
config.log (67.40 KB, text/plain)
2009-07-06 10:37 UTC, Murray Cumming
Details

Description Murray Cumming 2009-07-04 10:40:06 UTC
I'm getting this compiler error:

----------
1. ERROR in provider.java (at line 121)
	private HashMap<String,Savepoint> svp_map = new HashMap<String,Savepoint>();
	                ^^^^^^^^^^^^^^^^
Syntax error, parameterized types are only available if source level is 1.5


I guess that configure should have checked for that.
Comment 1 malerba 2009-07-05 12:21:46 UTC
The configure.in script has been modified to check for a javac version >= 1.5, can you check with git master?
Comment 2 Murray Cumming 2009-07-06 10:37:36 UTC
Created attachment 137910 [details]
config.log

Unfortunately I still have the same build error. I have attached config.log in case that helps.
Comment 3 malerba 2009-07-06 12:27:45 UTC
It looks like you're using GCJ, could you attach the result of:
/usr/bin/javac -version
Comment 4 Murray Cumming 2009-07-07 09:48:30 UTC
> could you attach the result of: /usr/bin/javac -version

$ /usr/bin/javac -version

Eclipse Java Compiler 0.894_R34x, 3.4.2 release, Copyright IBM Corp 2000, 2008. All rights reserved.

Comment 5 malerba 2009-07-08 14:25:57 UTC
With the correction in git master, it should now be OK.
Comment 6 Murray Cumming 2009-08-19 20:45:54 UTC
Yes, I have not seen this problem recently. Thanks.