[Mulgara-dev] Java 1.7
Paul Gearon
gearon at ieee.org
Mon May 14 13:23:20 UTC 2012
(Sorry, the original message wasn't sent to the list. It's included below).
I didn't get time to write about this over the weekend, but I got the
build going on Friday night, and it's checked in. It still passes on
Java 1.6, but it still had a few issues with 1.7, though it manages to
build and run the tests.
My problems were associated with Ant being at 1.7.0. Upgrading to
1.8.3 fixed most of it, though there are some new warnings that show
up as a result:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
This is known, but it's not a big deal.
I also saw errors trying to open Jar files (some kind of Zip
exception) when tests for descriptors were being run. I have no idea
what that means yet.
Anyway, try grabbing the latest from subversion and see what that does for you.
Paul
On Fri, May 11, 2012 at 1:47 PM, Paul Gearon <gearon at ieee.org> wrote:
> Actually, I have to wait while our version management system at work
> is switched around, so I thought I'd look at this now.
>
> It looks like your builds are getting further along than mine. For
> some reason the first compilation step I attempt (compiling the config
> classes that are generated by Castor) fails for me with:
> javac: target release 1.6 conflicts with default source release 1.7
>
> I think it has to do with the Ant javac step, probably because ant 1.7
> doesn't recognize JDK 1.7. So I'm trying to update ant to 1.8 at the
> moment. Hmmm, maybe this will take longer than I thought.
>
> Paul
>
> On Fri, May 11, 2012 at 12:30 PM, Benjamin Hysell <BenH at viewpointusa.com> wrote:
>> Awesome Paul, thanks for the quick explanation. No worries about this weekend, I too have a mother's day commitment, although this one will be my first :-)
>>
>> -ben
>>
>> -----Original Message-----
>> From: mulgara-dev-bounces at mulgara.org [mailto:mulgara-dev-bounces at mulgara.org] On Behalf Of Paul Gearon
>> Sent: Friday, May 11, 2012 12:24 PM
>> To: Mulgara Developers
>> Subject: Re: [Mulgara-dev] Java 1.7
>>
>> Ah, we saw a similar problem moving from JDK 1.5 to JDK 1.6. The ResultSet interface has 2 new methods in Java 1.7. I believe this is just legacy code, so I don't know if MemoryResultSet even matters any more. I could take it out, but to be safe, I'll just add in some stub methods so that it meets the interface.
>>
>> The warnings around the cleaner are because there's some code in there to help the garbage collector to pick up memory mappings that are no longer in use (since each mapping takes up address space - which is a particular problem in 32 bit systems. They also prevent files from being truncated). The use of these methods is deep voodoo, and interacts heavily with both the specification of the JVM and it's implementation. We'll leave them there as long as possible (and figure out the new implementation of the JVM if these methods ever go away).
>> Ignoring those warnings is fine.
>>
>> I'll just update the MemoryResultSet. I'll also try to find time to install Java 1.7 this weekend, to try it for myself. No promises though, since it's Mother's Day on Sunday, so I have commitments. :-)
>>
>> Paul
>>
>> On Fri, May 11, 2012 at 11:38 AM, Benjamin Hysell <BenH at viewpointusa.com> wrote:
>>> I was able to compile under 1.6, so I think I have everything setup properly to do a compile, but there still may be some user error on my part. Screen dump from my 1.7 compile:
>>>
>>> [javacc] Java Compiler Compiler Version 4.0 (Parser Generator)
>>> [javacc] (type "javacc" with no arguments for help)
>>> [javacc] Reading from file
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\java\
>>> org\mulgara\util\conversion\html\HTMLParser.jj . . .
>>> [javacc] File "TokenMgrError.java" does not exist. Will create one.
>>> [javacc] File "ParseException.java" does not exist. Will create one.
>>> [javacc] File "Token.java" does not exist. Will create one.
>>> [javacc] File "SimpleCharStream.java" does not exist. Will create one.
>>> [javacc] Parser generated successfully.
>>> [javac] Compiling 97 source files to
>>> C:\Jobs\Workspace\Mulgara-Trunk\obj\jar
>>> \util\classes
>>> [javac] warning: [options] bootstrap class path not set in
>>> conjunction with -source 1.5
>>> [javac]
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\java\org\mulgara\util\i
>>> o\MappingUtil.java:28: warning: Cleaner is internal proprietary API
>>> and may be r emoved in a future release
>>> [javac] import sun.misc.Cleaner;
>>> [javac] ^
>>> [javac]
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\java\org\mulgara\util\M
>>> emoryResultSet.java:65: error: MemoryResultSet is not abstract and
>>> does not over ride abstract method <T>getObject(String,Class<T>) in
>>> ResultSet
>>> [javac] public class MemoryResultSet extends
>>> AbstractMulgaraResultSet
>>> [javac] ^
>>> [javac] where T is a type-variable:
>>> [javac] T extends Object declared in method
>>> <T>getObject(String,Class<T>
>>> )
>>> [javac]
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\java\org\mulgara\util\i
>>> o\MappingUtil.java:146: warning: Cleaner is internal proprietary API
>>> and may be removed in a future release
>>> [javac] Cleaner cleaner =
>>> (Cleaner)getCleanerMethod.invoke(buffe
>>> r, new Object[0]);
>>> [javac] ^
>>> [javac]
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\java\org\mulgara\util\i
>>> o\MappingUtil.java:146: warning: Cleaner is internal proprietary API
>>> and may be removed in a future release
>>> [javac] Cleaner cleaner =
>>> (Cleaner)getCleanerMethod.invoke(buffe
>>> r, new Object[0]);
>>> [javac] ^
>>> [javac] Note:
>>> C:\Jobs\Workspace\Mulgara-Trunk\obj\jar\util\java\org\mulgara\
>>> util\conversion\html\HTMLParser.java uses unchecked or unsafe operations.
>>> [javac] Note: Recompile with -Xlint:unchecked for details.
>>> [javac] 1 error
>>> [javac] 4 warnings
>>>
>>> BUILD FAILED
>>> C:\Jobs\Workspace\Mulgara-Trunk\build.xml:325: The following error
>>> occurred whil e executing this line:
>>> C:\Jobs\Workspace\Mulgara-Trunk\src\jar\util\build.xml:69: Compile
>>> failed; see t he compiler error output for details.
>>>
>>> Total time: 45 seconds
>>>
>>> -----Original Message-----
>>> From: mulgara-dev-bounces at mulgara.org
>>> [mailto:mulgara-dev-bounces at mulgara.org] On Behalf Of Paul Gearon
>>> Sent: Friday, May 11, 2012 11:28 AM
>>> To: Mulgara Developers
>>> Subject: Re: [Mulgara-dev] Java 1.7
>>>
>>> Interesting question.
>>>
>>> No, I haven't tried it. I use a Mac these days, so I tend to stick to whatever version Apple is touting at the time (currently 1.6.0_31). I know there's a package for Java 1.7 on Mac, so I should give it a go.
>>>
>>> What sort of errors are coming up?
>>>
>>> Paul
>>>
>>> On Fri, May 11, 2012 at 11:08 AM, Benjamin Hysell <BenH at viewpointusa.com> wrote:
>>>> Has anyone tried to compile/run against Java 1.7? I pulled it down
>>>> and gave it a shot, but it seemed pretty unhappy trying to compile
>>>> the trunk out of svn, but wasn't sure if it was compiled if the
>>>> output could be run against 1.7, or if anyone had any thoughts on the matter.
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>> This E-Mail and any attachments thereto may contain confidential,
>>>> privileged and ITAR controlled information. It is intended solely for
>>>> the recipient(s) indicated. Any review, use, or distribution by
>>>> anyone other than the intended recipient(s) is strictly prohibited.
>>>> If you have received this E-Mail in error or are not the intended
>>>> recipient, please notify the sender and delete all copies
>>>> immediately.
>>>>
>>>> _______________________________________________
>>>> Mulgara-dev mailing list
>>>> Mulgara-dev at mulgara.org
>>>> http://lists.mulgara.org/mailman/listinfo/mulgara-dev
>>>>
>>> _______________________________________________
>>> Mulgara-dev mailing list
>>> Mulgara-dev at mulgara.org
>>> http://lists.mulgara.org/mailman/listinfo/mulgara-dev
>>>
>>> This E-Mail and any attachments thereto may contain confidential, privileged and ITAR controlled information. It is intended solely for the recipient(s) indicated. Any review, use, or distribution by anyone other than the intended recipient(s) is strictly prohibited. If you have received this E-Mail in error or are not the intended recipient, please notify the sender and delete all copies immediately.
>>> _______________________________________________
>>> Mulgara-dev mailing list
>>> Mulgara-dev at mulgara.org
>>> http://lists.mulgara.org/mailman/listinfo/mulgara-dev
>> _______________________________________________
>> Mulgara-dev mailing list
>> Mulgara-dev at mulgara.org
>> http://lists.mulgara.org/mailman/listinfo/mulgara-dev
More information about the Mulgara-dev
mailing list