Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #945

Using javac 7 to compile java 6 code

From Knute Johnson <september@knutejohnson.com>
Newsgroups comp.lang.java.help
Subject Using javac 7 to compile java 6 code
Date 2011-08-16 12:15 -0700
Organization A noiseless patient Spider
Message-ID <j2efk6$us7$1@dont-email.me> (permalink)

Show all headers | View raw


I've got some currently running code that is using 1.6 runtimes and I 
won't be able to upgrade them right away.  I want to use the new 
compiler for new work and I tried using the -target and -source options 
but I've run into a snag.  JList is now JList<E> and the compiler issues 
a warning even with -source set to 1.6.  Is that to be expected or what? 
  I don't think using the type specification with JList would compile 
with a 1.6 compiler.  Do I just need to ignore the warning and press on? 
  And JComboBox too I found.

Thanks,

-- 

Knute Johnson

Back to comp.lang.java.help | Previous | NextNext in thread | Find similar


Thread

Using javac 7 to compile java 6 code Knute Johnson <september@knutejohnson.com> - 2011-08-16 12:15 -0700
  Re: Using javac 7 to compile java 6 code markspace <-@.> - 2011-08-16 12:52 -0700
    Re: Using javac 7 to compile java 6 code Knute Johnson <september@knutejohnson.com> - 2011-08-16 13:20 -0700

csiph-web