On 06/22/2011 02:51 PM, Cédric Beust ♔ wrote:
Does this work? It looks like the compiler should be able to optimize
this.
Funny, eh? Frankly, I was unaware of the inlining problem (or I forgot
about it). After reading the stuff, I'd say the same as you, that the
compiler should optimize out anyway, but it indeed works. I've tried
splitting a single project into three modules, and replacing R as I said
in my earlier post, and with that trick it works - javac 1.6.0_24 and
this Maven configuration:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<debug>true</debug>
<optimize>true</optimize>
<source>1.5</source>
<target>1.5</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<fork>true</fork>
<compilerArgument>-Xlint:all</compilerArgument>
</configuration>
</plugin>
So, optimizations are in.
But how long will it work?
--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
java.net/blog/fabriziogiudici - www.tidalwave.it/people
[email protected]
--
You received this message because you are subscribed to the Google Groups "The Java
Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.