You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2007/04/09 10:51:32 UTC

[jira] Created: (JCR-835) Java 1.4 compile error in Eclipse

Java 1.4 compile error in Eclipse
---------------------------------

                 Key: JCR-835
                 URL: https://issues.apache.org/jira/browse/JCR-835
             Project: Jackrabbit
          Issue Type: Bug
         Environment: Eclipse
            Reporter: Jukka Zitting
         Assigned To: Jukka Zitting
            Priority: Minor
             Fix For: 1.3


As reported by Ate Douma in JCR-804, the revision 520841 introduced code that causes the Eclipse compiler to fail in Java 1.4 compliance mode. However, the same code compiles with the Sun JDK 1.4.

The problem is a enclosing class reference that an anonymous innner class instantiated in the constructor of a named inner class contains. Apparently (and understandably), in Eclipse 1.4 complier the instance references are not yet available when evaluating the super() arguments in the constructor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-835) Java 1.4 compile error in Eclipse

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-835.
-------------------------------

    Resolution: Fixed

Fixed in revision 526677 by replacing the ScorerFactory interface with an abstract
createScorer() factory method. The solutions are functionally equivalent, but this one
avoids the anonymous inner factory instances that were causing trouble to Eclipse.

> Java 1.4 compile error in Eclipse
> ---------------------------------
>
>                 Key: JCR-835
>                 URL: https://issues.apache.org/jira/browse/JCR-835
>             Project: Jackrabbit
>          Issue Type: Bug
>         Environment: Eclipse
>            Reporter: Jukka Zitting
>         Assigned To: Jukka Zitting
>            Priority: Minor
>             Fix For: 1.3
>
>
> As reported by Ate Douma in JCR-804, the revision 520841 introduced code that causes the Eclipse compiler to fail in Java 1.4 compliance mode. However, the same code compiles with the Sun JDK 1.4.
> The problem is a enclosing class reference that an anonymous innner class instantiated in the constructor of a named inner class contains. Apparently (and understandably), in Eclipse 1.4 complier the instance references are not yet available when evaluating the super() arguments in the constructor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.