[
https://issues.apache.org/jira/browse/SLING-3405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13907155#comment-13907155
]
Bertrand Delacretaz commented on SLING-3405:
--------------------------------------------
It looks like it's the org.eclipse.jdt.core compiler that's at fault, here's
what I tried, using org.eclipse.jdt.core-3.7.1.jar obtained from Maven Central
(md5=7e414469cec096cf93272ab2528c840e) :
{code}
$ cat A.java
import java.lang.CharSequence;
import java.util.Arrays;
public class A {
public static Class a = Arrays.class;
public static Class cs = CharSequence.class;
}
$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
$ java -jar org.eclipse.jdt.core-3.7.1.jar A.java
$ # no errors
$ # change JDK settings...
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b129)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b69, mixed mode)
$ java -jar org.eclipse.jdt.core-3.7.1.jar A.java
----------
1. ERROR in A.java (at line 1)
import java.lang.CharSequence;
^^^^^^^^^^^^^^^^^^^^^^
The import java.lang.CharSequence cannot be resolved
----------
2. ERROR in A.java (at line 2)
import java.util.Arrays;
^^^^^^^^^^^^^^^^
The import java.util.Arrays cannot be resolved
----------
3. ERROR in A.java (at line 5)
public static Class a = Arrays.class;
^^^^^^
Arrays cannot be resolved to a type
----------
4. ERROR in A.java (at line 6)
public static Class cs = CharSequence.class;
^^^^^^^^^^^^
CharSequence cannot be resolved to a type
----------
4 problems (4 errors)$
{code}
> SLING2094Test fails with java 8: JSP compiler does not find java.util.Arrays
> -----------------------------------------------------------------------------
>
> Key: SLING-3405
> URL: https://issues.apache.org/jira/browse/SLING-3405
> Project: Sling
> Issue Type: Bug
> Components: Scripting, Testing
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Attachments: jasper-upgrade.patch
>
>
> Running the launchpad/integration-tests SLING2094Test fails due to a
> compilation error for the test script [1]: "Unable to compile class for JSP,
> the import java.util.Arrays cannot be resolved".
> [1]
> https://svn.apache.org/repos/asf/sling/trunk/launchpad/integration-tests/src/main/resources/integration-test/issues/sling2094/sling2094.jsp
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)