Issue Details (XML | Word | Printable)

Key: DIRMINA-153
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Alex Karasulu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Using JDK 1.5 API in TextLineCodecFactory and associated classes

Created: 28/Dec/05 05:30 AM   Updated: 03/Jan/06 05:32 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: JDK 1.4

Resolution Date: 03/Jan/06 05:32 PM


 Description  « Hide
As I was trying to move MINA to m2 I thought I'd try to compile with 1.4 once I moved what I thought was the only 1.5 API dependent classes into a separate project (SSLFilter et. al). I got the following build errors due to defaultCharset() only being present in JDK 1.5 of java.nio.charset.Charset:

[akarasulu@newton org.apache.mina]$ mvn clean install
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building MINA
[INFO] task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/akarasulu/projects/directory/trunk/org.apache.mina/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 111 source files to /home/akarasulu/projects/directory/trunk/org.apache.mina/target/classes
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------------------------
[INFO] Compilation failure

/home/akarasulu/projects/directory/trunk/org.apache.mina/src/main/java/org/apache/mina/filter/codec/textline/TextLineCodecFactory.java:[46,21] cannot resolve symbol
symbol : method defaultCharset ()
location: class java.nio.charset.Charset

/home/akarasulu/projects/directory/trunk/org.apache.mina/src/main/java/org/apache/mina/filter/codec/textline/TextLineEncoder.java:[47,21] cannot resolve symbol
symbol : method defaultCharset ()
location: class java.nio.charset.Charset

/home/akarasulu/projects/directory/trunk/org.apache.mina/src/main/java/org/apache/mina/filter/codec/textline/TextLineEncoder.java:[52,21] cannot resolve symbol
symbol : method defaultCharset ()
location: class java.nio.charset.Charset

/home/akarasulu/projects/directory/trunk/org.apache.mina/src/main/java/org/apache/mina/filter/codec/textline/TextLineDecoder.java:[52,21] cannot resolve symbol
symbol : method defaultCharset ()
location: class java.nio.charset.Charset

/home/akarasulu/projects/directory/trunk/org.apache.mina/src/main/java/org/apache/mina/filter/BlacklistFilter.java:[90,18] cannot resolve symbol
symbol : constructor IllegalArgumentException (java.lang.String,java.lang.ArrayStoreException)
location: class java.lang.IllegalArgumentException


[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Dec 27 15:20:41 EST 2005
[INFO] Final Memory: 3M/16M
[INFO] ----------------------------------------------------------------------------

  

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu added a comment - 03/Jan/06 05:32 PM
COmpleted when I added m2 profiles.

Alex Karasulu made changes - 03/Jan/06 05:32 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]