[Mulgara-dev] Java 1.7

Paul Gearon gearon at ieee.org
Fri May 11 16:23:50 UTC 2012


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


More information about the Mulgara-dev mailing list