Mantis - Resin
Viewing Issue Advanced Details
2016 feature always 09-19-07 04:48 10-02-07 07:23
stbu  
ferg  
normal  
closed 3.1.3  
fixed  
none    
none 3.1.3  
0002016: <javac compiler="eclipse" args="-source 1.6"/> doesn't work
When I change the compiler settings in resin.conf to

  <javac compiler="javac" args="-source 1.6"/>
or
  <javac compiler="internal" args="-source 1.6"/>

both works as expected.

However,
  <javac compiler="eclipse" args="-source 1.6"/>
produces the following exception:

500 Servlet Exception
source level should be comprised in between '1.3' and '1.5' (or '5' or
'5.0'): 1.6
com.caucho.java.JavaCompileException: source level should be comprised
in between '1.3' and '1.5' (or '5' or '5.0'): 1.6
    at com.caucho.java.EclipseCompiler.executeInt(EclipseCompiler.java:210)
    at com.caucho.java.EclipseCompiler.compileInt(EclipseCompiler.java:84)
    at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:98)
    at java.lang.Thread.run(Thread.java:619)


I have searched a bit in eclipse documentations and found:

Eclipse 3.1.2 documentation:
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm [^]
...
Which options are available?
...
-source 1.3|1.4|1.5|5|5.0

=> This seams to be what's currently included in Resin-3.1 branch.


Eclipse 3.2.1 documentation:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm [^]
...
Which options are available?
...
-source 1.3|1.4|1.5|5|5.0|1.6|6|6.0

=> This would already offer "-source 1.6" option.


Eclipse 3.3 documentation:
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm [^]
...
Which options are available?
...
-source 1.1 to 1.7 or (5, 5.0, etc)

=> This would even offer "-source 1.7" option.


Would you mind to upgrade the eclipse-compiler.jar included in Resin Distribution to the one of Eclipse 3.2 or 3.3?
My Environment: resin-pro-3.1.s070917, Windows XP, Java 6

There are no notes attached to this issue.