geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sachin Patel (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMODEVTOOLS-31) Latest plugin source fails to compile
Date Mon, 09 Jan 2006 15:02:37 GMT
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-31?page=comments#action_12362210
] 

Sachin Patel commented on GERONIMODEVTOOLS-31:
----------------------------------------------

Geronimo contains assert's all over the place.  I wonder why it compiles ok.

> Latest plugin source fails to compile
> -------------------------------------
>
>          Key: GERONIMODEVTOOLS-31
>          URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-31
>      Project: Geronimo-Devtools
>         Type: Bug
>   Components: eclipse-plugin
>  Environment: WinXP and 1.4.2 JDK
>     Reporter: Donald Woods
>     Assignee: Sachin Patel
>     Priority: Blocker

>
> Using the following level of source -
>    Revision: 367038 Date: 11:10:12 AM, Sunday, January 08, 2006
> +----------------------------------------
> | Executing jar:install org.apache.geronimo.ui
> | Memory: 112M/128M
> +----------------------------------------
> ==========================================================
>   NOTE: Targetting JVM 1.4, classes
>   will not run on earlier JVMs
> ==========================================================
>           
>     [javac] Compiling 57 source files to E:\Working\wombat101\devtools\modules\eclipse-plugin\plugins\org.apache.geronimo.ui\target\classes
> E:\Working\devtools\modules\eclipse-plugin\plugins\org.apache.geronimo.ui\src\org\apache\geronimo\ui\sections\AbstractTableSection.java:111:
warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
> 		assert getTableEntryObjectType() != null
>                 ^
> E:\Working\devtools\modules\eclipse-plugin\plugins\org.apache.geronimo.ui\src\org\apache\geronimo\ui\sections\AbstractTableSection.java:111:
';' expected
> 		assert getTableEntryObjectType() != null
>                                               ^
> 1 error
> 1 warning
> The Sun Programming With Assertions doc -
>    http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html#compiling
> mentions a compile-time option is needed -
>     In order for the javac compiler to accept code containing assertions, you must use
the -source 1.4 command-line option as in this example:
>       javac -source 1.4 MyClass.java 
>     This flag is necessary so as not to cause source compatibility problems.
> Not sure if this is related to Eclipse compiles....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message