[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-456) Fix compilation on JDK 6

Radoslav Husar (JIRA) issues at jboss.org
Wed Jul 1 18:55:02 EDT 2015


    [ https://issues.jboss.org/browse/MODCLUSTER-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085604#comment-13085604 ] 

Radoslav Husar edited comment on MODCLUSTER-456 at 7/1/15 6:54 PM:
-------------------------------------------------------------------

Regression was caused by this commit:

https://github.com/modcluster/mod_cluster/commit/864a6fae6acb8ca39ecccb0ba4f4ab4feb4f739a

Nevertheless, we now support Tomcat 8 which wont work with plain JDK6 anyway.

{noformat}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project mod_cluster-container-tomcat8: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process
[ERROR] java.lang.UnsupportedClassVersionError: org/apache/catalina/connector/Connector : Unsupported major.minor version 51.0
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[ERROR] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[ERROR] at java.lang.Class.getDeclaredMethods0(Native Method)
[ERROR] at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
[ERROR] at java.lang.Class.getDeclaredMethods(Class.java:1793)
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.checkforTestAnnotatedMethod(JUnit4TestChecker.java:91)
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.lookForTestAnnotatedMethods(JUnit4TestChecker.java:80)
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.isValidJUnit4Test(JUnit4TestChecker.java:72)
[ERROR] at org.apache.maven.surefire.common.junit4.JUnit4TestChecker.accept(JUnit4TestChecker.java:52)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:97)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:206)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:103)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] -> [Help 2]
{noformat}


was (Author: rhusar):
Regression was caused by this commit:

https://github.com/modcluster/mod_cluster/commit/864a6fae6acb8ca39ecccb0ba4f4ab4feb4f739a

Nevertheless, we now support Tomcat 8 which wont compile with JDK6 anyway.

> Fix compilation on JDK 6
> ------------------------
>
>                 Key: MODCLUSTER-456
>                 URL: https://issues.jboss.org/browse/MODCLUSTER-456
>             Project: mod_cluster
>          Issue Type: Bug
>          Components: Core & Container Integration (Java)
>    Affects Versions: 1.3.1.Final
>            Reporter: Radoslav Husar
>            Assignee: Radoslav Husar
>              Labels: build
>             Fix For: 1.3.2.Alpha1
>
>
> {code}[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mod_cluster-core: Compilation failure
> [INFO] [ERROR] /home/rhusar/git/mod_cluster/core/src/main/java/org/jboss/modcluster/config/impl/ModClusterConfig.java:[88,43] getHostString() is not public in java.net.InetSocketAddress; cannot be accessed from outside package
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the mod_cluster-issues mailing list