dev@shoal.java.net

Re: [Shoal-Dev] Compilation errors with SHOAL_1_1_ABSTRACTING_TRANSPORT branch

From: Bongjae Chang <carryel_at_korea.com>
Date: Mon, 29 Jun 2009 15:51:02 +0900

Hi Shreedhar,

I modified those pieces of code and used the method reflection as your words.

Thank you!

--
Bongjae Chang


----- Original Message -----
From: "Shreedhar Ganapathy" <Shreedhar.Ganapathy_at_Sun.COM>
To: <dev_at_shoal.dev.java.net>
Sent: Monday, June 29, 2009 3:00 PM
Subject: Re: [Shoal-Dev] Compilation errors with SHOAL_1_1_ABSTRACTING_TRANSPORT branch


> Thanks Bongjae. Yes it compiles now.
> You may want to retain those pieces of code but prior to making those
> specific calls, check reflectively for whether the Api exists in the
> runtime jdk. That way, it will work with JDKs that has those
> capabilities and compiler will ignore those during compilation.
>
>
> Bongjae Chang wrote:
>> Hi Shreedhar,
>>
>> Now, I fixed compilation errors and commited the patch.
>>
>> So I think that the branch version can be compiled on JDK5 as well as JDK6 like current Shoal version.
>>
>> If you have any problems when you compile it on your Mac, please let me know again. :)
>>
>> Thanks!
>>
>> --
>> Bongjae Chang
>>
>>
>> ----- Original Message -----
>> From: "Bongjae Chang" <carryel_at_korea.com>
>> To: <dev_at_shoal.dev.java.net>
>> Sent: Saturday, June 27, 2009 11:25 AM
>> Subject: Re: [Shoal-Dev] Compilation errors with SHOAL_1_1_ABSTRACTING_TRANSPORT branch
>>
>>
>>
>>> Hi Shreedhar,
>>>
>>> Thank you for trying to compile it.
>>>
>>> You may meet same errors with JDK 1.5 as well.
>>>
>>> I used new API on JDK 1.6, but maybe your JDK on Mac didn't support it. (I am not sure, and I compiled it with JDK1.6.0_07 on my Windows 2003 successfully).
>>>
>>> So, I think that it is better that dependent APIs on JDK 1.6 should be removed. Then the branch version will be able to be compiled on JDK 1.5 like current Shoal version.
>>>
>>> I will try it.
>>>
>>> Thank you!
>>>
>>> --
>>> Bongjae Chang
>>>
>>>
>>> ----- Original Message -----
>>> From: "Shreedhar Ganapathy" <Shreedhar.Ganapathy_at_Sun.COM>
>>> To: <dev_at_shoal.dev.java.net>
>>> Sent: Saturday, June 27, 2009 6:58 AM
>>> Subject: [Shoal-Dev] Compilation errors with SHOAL_1_1_ABSTRACTING_TRANSPORT branch
>>>
>>>
>>>
>>>> I am trying to build the SHOAL_1_1_ABSTRACTING_TRANSPORT branch
>>>>
>>>> On my Mac, with JDK 1.6.0_13, I see compilation errors for some obvious
>>>> JDK classes.
>>>>
>>>> Any ideas what could be wrong? Trying to wear my developer hat after a
>>>> long time. :)
>>>>
>>>> I first built the shoal trunk on a different directory and that did not
>>>> present any of the following compilation issues.
>>>>
>>>>
>>>> shreedhar-ganapathys-macbook-pro:gms shreed$ javac -version
>>>> javac 1.6.0_13
>>>>
>>>>
>>>> shreedhar-ganapathys-macbook-pro:gms shreed$ ant
>>>> Buildfile: build.xml
>>>>
>>>> clean:
>>>>
>>>> init:
>>>> [mkdir] Created dir: /Users/shreed/shoalgrizzly/shoal/gms/build
>>>> [mkdir] Created dir: /Users/shreed/shoalgrizzly/shoal/gms/dist
>>>>
>>>> compile:
>>>> [javac] Compiling 168 source files to
>>>> /Users/shreed/shoalgrizzly/shoal/gms/build
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/MessageIOException.java:53:
>>>> cannot find symbol
>>>> [javac] symbol : constructor IOException(java.lang.Throwable)
>>>> [javac] location: class java.io.IOException
>>>> [javac] super( t );
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/MessageIOException.java:57:
>>>> cannot find symbol
>>>> [javac] symbol : constructor
>>>> IOException(java.lang.String,java.lang.Throwable)
>>>> [javac] location: class java.io.IOException
>>>> [javac] super( msg, t );
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/BlockingIOMulticastSender.java:110:
>>>> cannot find symbol
>>>> [javac] symbol : method isUp()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface != null && anInterface.isUp() &&
>>>> anInterface.supportsMulticast() )
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/BlockingIOMulticastSender.java:110:
>>>> cannot find symbol
>>>> [javac] symbol : method supportsMulticast()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface != null && anInterface.isUp() &&
>>>> anInterface.supportsMulticast() )
>>>>
>>>> [javac]
>>>> ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java:201:
>>>> cannot find symbol
>>>> [javac] symbol : method isLoopback()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface.isLoopback() ) {
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java:205:
>>>> cannot find symbol
>>>> [javac] symbol : method isUp()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface.isUp() &&
>>>> anInterface.supportsMulticast() ) {
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/NetworkUtility.java:205:
>>>> cannot find symbol
>>>> [javac] symbol : method supportsMulticast()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface.isUp() &&
>>>> anInterface.supportsMulticast() ) {
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/grizzly/MulticastSelectorHandler.java:169:
>>>> cannot find symbol
>>>> [javac] symbol : method isUp()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface != null && anInterface.isUp() &&
>>>> anInterface.supportsMulticast() )
>>>> [javac] ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/grizzly/MulticastSelectorHandler.java:169:
>>>> cannot find symbol
>>>> [javac] symbol : method supportsMulticast()
>>>> [javac] location: class java.net.NetworkInterface
>>>> [javac] if( anInterface != null && anInterface.isUp() &&
>>>> anInterface.supportsMulticast() )
>>>>
>>>> [javac]
>>>> ^
>>>> [javac]
>>>> /Users/shreed/shoalgrizzly/shoal/gms/src/java/com/sun/enterprise/mgmt/transport/jxta/JxtaNetworkManager.java:463:
>>>> cannot find symbol
>>>> [javac] symbol : constructor
>>>> IOException(net.jxta.exception.PeerGroupException)
>>>> [javac] location: class java.io.IOException
>>>> [javac] throw new IOException( e );
>>>> [javac] ^
>>>> [javac] Note: Some input files use or override a deprecated API.
>>>> [javac] Note: Recompile with -Xlint:deprecation for details.
>>>> [javac] 10 errors
>>>>
>>>> BUILD FAILED
>>>> /Users/shreed/shoalgrizzly/shoal/gms/build.xml:99: Compile failed; see
>>>> the compiler error output for details.
>>>>
>>>> Total time: 2 seconds
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_shoal.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_shoal.dev.java.net
>>>>
>>>>
>>>>
>>>>
>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: dev-help_at_shoal.dev.java.net
>
>
>
>