Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Java 1.4 support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gili  
View profile  
 More options Jul 12 2012, 2:10 pm
From: Gili <cow...@bbs.darktech.org>
Date: Thu, 12 Jul 2012 11:10:19 -0700 (PDT)
Local: Thurs, Jul 12 2012 2:10 pm
Subject: Java 1.4 support

Hi,

Out of curiosity, why does JNA still target Java 1.4? I ask because most
other conservative projects have moved on to 1.5 (released over 8 years
ago!) or even 1.6 by now. Aside from the performance and API benefits of
moving to Java 1.5 I wanted to point out that using Java 1.4 causes Android
to issue the following compile-time warnings:

warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.sun.jna.Native$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.

There are a bunch of such warnings for different classes. Any thoughts to
upgrading JNA to a newer Java version?

Thanks,
Gili


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gili  
View profile  
 More options Jul 12 2012, 3:50 pm
From: Gili <cow...@bbs.darktech.org>
Date: Thu, 12 Jul 2012 12:50:30 -0700 (PDT)
Local: Thurs, Jul 12 2012 3:50 pm
Subject: Re: Java 1.4 support

A quick follow-up. It looks like Android only officially supports Java6
(not earlier, nor later): http://developer.android.com/sdk/index.html

I've personally run into problems with the Android SDK using Java7:
http://stackoverflow.com/questions/8538891/bad-class-file-magic-when-...
and with maven-android-plugin using Java5:
http://code.google.com/p/maven-android-plugin/issues/detail?id=225

In any case, this complicates matters even worse for JNA and Android
support. Still waiting to hear from the community. What's your situation?
Do your product(s) depend on Java 1.4?

Gili


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Palmer  
View profile  
 More options Jul 12 2012, 4:53 pm
From: Scott Palmer <swpal...@gmail.com>
Date: Thu, 12 Jul 2012 16:53:49 -0400
Local: Thurs, Jul 12 2012 4:53 pm
Subject: Re: Java 1.4 support

On 2012-07-12, at 3:50 PM, Gili wrote:

> A quick follow-up. It looks like Android only officially supports Java6 (not earlier, nor later): http://developer.android.com/sdk/index.html

> I've personally run into problems with the Android SDK using Java7: http://stackoverflow.com/questions/8538891/bad-class-file-magic-when-... and with maven-android-plugin using Java5: http://code.google.com/p/maven-android-plugin/issues/detail?id=225

> In any case, this complicates matters even worse for JNA and Android support. Still waiting to hear from the community. What's your situation? Do your product(s) depend on Java 1.4?

We just officially switched to requiring Java 7 for our latest product.  We've been Java 6 minimum for many years.  1.4 is ancient history as far as I'm concerned.

Scott


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy Wall  
View profile  
 More options Jul 12 2012, 5:32 pm
From: Timothy Wall <twallj...@java.net>
Date: Thu, 12 Jul 2012 17:32:04 -0400
Local: Thurs, Jul 12 2012 5:32 pm
Subject: Re: Java 1.4 support
I think it can generally be moved to 1.6.  The wince target is a 1.3-1.4 (J2ME) variant, but it's already got some special build tweaks to omit stuff it doesn't like.

The main benefits (other than class file format) of 1.5+ would be applicability of generics to some pointer, structure, and library usage.

On Jul 12, 2012, at 2:10 PM, Gili wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Ahrens  
View profile  
 More options Jul 13 2012, 1:58 pm
From: Matthew Ahrens <m...@mahrens.org>
Date: Fri, 13 Jul 2012 10:58:49 -0700
Local: Fri, Jul 13 2012 1:58 pm
Subject: Re: Java 1.4 support

On Thu, Jul 12, 2012 at 2:32 PM, Timothy Wall <twallj...@java.net> wrote:
> I think it can generally be moved to 1.6.  The wince target is a 1.3-1.4
> (J2ME) variant, but it's already got some special build tweaks to omit
> stuff it doesn't like.

> The main benefits (other than class file format) of 1.5+ would be
> applicability of generics to some pointer, structure, and library usage.

That would be great!  We are using JNA quite a bit at Delphix, with libzfs
and various other Solaris / Illumos libraries.  We'd appreciate the
additional type safety and expressiveness that could come with use of
generics.

--matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »