Re: help me to solve this problem,binding a String object to a string



On Sun, 29 Jan 2006 15:32:44 +0000, Thomas Hawtin
<usenet@xxxxxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

>
> -target 1.4 -source 1.4 -bootclasspath /usr/java/j2re1.4.2/lib/rt.jar

the catch is, Javac will happily let you use StringBuilder in -target
1.4 code. It does not know that it is a new class. That why you need
the -bootclasspath to restrict it to old classes.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: Why intermediate objects?
    ... >Doesn't javac produce code with StringBuilder if -target is 1.5+? ... StringBuffer was thread safe, but that would ... Prev by Date: ...
    (comp.lang.java.advocacy)
  • Re: java.lang.NoClassDefFoundError
    ... > able to compile the file - Test.java - just fine, with javac, however, ... and much refactoring wearies the body. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: cants compile with javac
    ... BTW when i compile with eclipse and then run "java ... nameOfTheClassIWasCompiling" it works fine, just "javac ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Eclipse java compiler
    ... I ran a few experiments and javac ran faster in all of them. ... call it a thorough investigation but it was fairly convincing. ... Perhaps the bought version of JET performs better. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Compiling Java from Java
    ... > Java Compiler API. ... Good news! ... Description and example code are found in the javac man page: ... Prev by Date: ...
    (comp.lang.java.programmer)