directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <aok...@bellsouth.net>
Subject Re: compile error
Date Wed, 01 Dec 2004 03:40:12 GMT
Mark Swanson wrote:

>Hello,
>
>I found a compile error with Java 5. StringBuffer implements Appendable, and 
>this affects StringBuffer.append(char) as it now throws IOException - which 
>breaks the code as shown below.
>
>The docs state that append(char) is really an append(String.toString(char)) 
>under the hood. So changing all occurences from 'x' to "x" don't have a 
>performance penalty and will work in Java 1.4 and Java 1.5.
>
>eve:generate:
>
>
>    [echo] Compiling 
>to /mnt/hda3/mswanson/src/eve/jndi-provider/target/classes
>warning couldn't find aspectjrt.jar on classpath, checked:
>
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:308

>error Unhandled exception type IOException
>buf.append( '(' );
>^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:317

>error Unhandled exception type IOException
>buf.append( ',' );
>
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:321

>error Unhandled exception type IOException
>buf.append( ')' );
>^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmDatabase.java:1038

>error Unhandled exception type IOException
>val.append( ']' );
>^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmTable.java:1062

>error Unhandled exception type IOException
>buf.append( '\'' );
>^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmTable.java:1072

>error Unhandled exception type IOException
>buf.append( '\'' );
>^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:681

>error The type AbstractStringBuilder is not visible
>buf.append( "base: " ).append( base ).append( '\n' );
>^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:682

>error The type AbstractStringBuilder is not visible
>buf.append( "scope: " ).append( scope ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:683

>error The type AbstractStringBuilder is not visible
>buf.append( "limit: " ).append( limit ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:684

>error The type AbstractStringBuilder is not visible
>buf.append( "total: " ).append( count ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:685

>error The type AbstractStringBuilder is not visible
>buf.append( "filter:\n" ).append( filter ).append( '\n' );
>^^^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/EntryNode.java:198

>error The method append(CharSequence) in the type Appendable is not 
>applicable for the arguments (BigInteger)
>buf.append( '(' ).append( id ).append( ") " );
>
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/EntryNode.java:209

>error The type AbstractStringBuilder is not visible
>buf.append( " [" ).append( children.size() ).append( ']' );
>^^^^^
>MessageHolder:  (1 warning)  (13 error)
>[error   0]: error at buf.append( '(' );
>^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:308:0

>Unhandled exception type IOException
>[error   1]: error at buf.append( ',' );
>
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:317:0

>Unhandled exception type IOException
>[error   2]: error at buf.append( ')' );
>^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/jndi/InvocationMethodEnum.java:321:0

>Unhandled exception type IOException
>[error   3]: error at val.append( ']' );
>^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmDatabase.java:1038:0

>Unhandled exception type IOException
>[error   4]: error at buf.append( '\'' );
>^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmTable.java:1062:0

>Unhandled exception type IOException
>[error   5]: error at buf.append( '\'' );
>^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/jdbm/JdbmTable.java:1072:0

>Unhandled exception type IOException
>[error   6]: error at buf.append( "base: " ).append( base ).append( '\n' );
>^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:681:0

>The type AbstractStringBuilder is not visible
>[error   7]: error at buf.append( "scope: " ).append( scope ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:682:0

>The type AbstractStringBuilder is not visible
>[error   8]: error at buf.append( "limit: " ).append( limit ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:683:0

>The type AbstractStringBuilder is not visible
>[error   9]: error at buf.append( "total: " ).append( count ).append( '\n' );
>^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:684:0

>The type AbstractStringBuilder is not visible
>[error  10]: error at buf.append( "filter:
>\n" ).append( filter ).append( '\n' );
>^^^^^^^^^^^^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/MainFrame.java:685:0

>The type AbstractStringBuilder is not visible
>[error  11]: error at buf.append( '(' ).append( id ).append( ") " );
>
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/EntryNode.java:198:0

>The method append(CharSequence) in the type Appendable is not applicable for 
>the arguments (BigInteger)
>[error  12]: error at 
>buf.append( " [" ).append( children.size() ).append( ']' );
>^^^^^
>/mnt/hda3/mswanson/src/eve/jndi-provider/src/java/org/apache/eve/db/gui/EntryNode.java:209:0

>The type AbstractStringBuilder is not visible
>
>BUILD FAILED
>File...... /home/mswanson/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
>Element... maven:reactor
>Line...... 217
>Column.... 9
>Unable to obtain goal [java:compile] 
>-- /home/mswanson/.maven/cache/maven-aspectj-plugin-3.1.1/plugin.jelly:58:46: 
><ant:iajc> 13 errors
>Total time: 1 minutes 4 seconds
>Finished at: Tue Nov 30 22:18:15 EST 2004
>
>
>  
>
If you provide a patch I will gladly apply if for you ASAP!

 - Alex



Mime
View raw message