です。私は、Java 5.そのWAS 6.1ではJavaバージョン5が表示されていますが、実際は1.4
System.getProperty("java.version")
System.getProperty("java.specification.version")
System.getProperty("java.vm.name")
私は
を取得するJSPページの印刷で私なら、私は、Java 4.から移行してきた本当に古いアプリケーションを実行するために私たちのWebSphere Application Serverを構成している
Javaバージョン:1.5.0
java.specification.version:1.5
java.vm.name:IBM J9 VM
しかし、私、私は次の例外を取得List
からList<Object>
にコードを変更するJSPでの場合:
The type ArrayList is not generic; it cannot be parameterized with arguments <Object> JSPG0091E: An error occurred at line: 79 in the file: /jsp/archive/archiveoverview.jsp JSPG0093E: Generated servlet error from file: /jsp/archive/archiveoverview.jsp C:\SDP75\runtimes\base_v61\profiles\was61profile1\temp\CR122599Node01\server1\myifEAR\myif.war\jsp\archive\_archiveoverview.java : 199 : Syntax error, parameterized types are only available if source level is 5.0
どのようにこれをすることができを???
これは役に立ちます - http://stackoverflow.com/questions/2036544/why-websphere-6-1-jdk-1-5-compliant-compiles-my-jsps-as-jdk-1-4 – Perception
Websphere 6.1はJ2EE 1.4コンテナですが、JDK 1.5で動作しています... – mglauche
ありがとうございました。私はちょうどこのスレッドを閉じるためにお勧めします –