You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Ate Douma <at...@douma.nu> on 2007/04/04 19:07:19 UTC
jackrabbit-core no longer compilable with JDK 1.4
https://issues.apache.org/jira/browse/JCR-804
http://svn.apache.org/viewvc?view=rev&revision=520841
introduced JDK 5.0 language features.
Error messages when trying to compile with JDK 1.4 (in Eclipse):
No enclosing instance of type RangeQuery is accessible. Must qualify the allocation with an enclosing instance of type RangeQuery (e.g. x.new A() where x is
an instance of RangeQuery). jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/RangeQuery.java, line 189
No enclosing instance of type WildcardQuery is accessible. Must qualify the allocation with an enclosing instance of type WildcardQuery (e.g. x.new A() where
x is an instance of WildcardQuery). jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/WildcardQuery.java, line 163
Should I create a JIRA issue for this or is JDK 1.4 compliance no longer a requirement for Jackrabbit?
Regards,
Ate
Re: jackrabbit-core no longer compilable with JDK 1.4
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 4/4/07, Ate Douma <at...@douma.nu> wrote:
> https://issues.apache.org/jira/browse/JCR-804
> http://svn.apache.org/viewvc?view=rev&revision=520841
>
> introduced JDK 5.0 language features.
> [...]
> Should I create a JIRA issue for this or is JDK 1.4 compliance no longer
> a requirement for Jackrabbit?
I looked at it some while ago (I got the same Eclipse errors), but
didn't investigate it deeper since at least Sun javac 1.4.2 compiles
the class withough problems. AFAIK such inner class structures should
be supported already in Java 1.4, but I haven't looked up the detailed
requirements from the Java specs.
In any case it's certainly an inconvenience, so filing a bug report or
at least an improvement request would be good.
BR,
Jukka Zitting