openjdk

"Simplified Varargs Method Invocation" already implemented in the current OpenJDK 7?

Is "Simplified Varargs Method Invocation" from http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000217.html already implemented in Java 7? Today I read in www.sdtimes.com/INTEGRATION_WATCH_JAVA_7_LOOKING_GOOD/By_ANDREW_BINSTOCK/About_JAVA/34288 about that, but I never found a release note of the JDK 1.7. You have an original qu...

Are Open JDK and JDK7 the same thing?

Are Open JDK and JDK7 the same thing? ...

Accessing global variable in multithreaded Tomcat server

Edit: I've figured out the constructor for the singleton is getting called multiple times so it appears the classes are getting loaded more than once by separate class loaders. How can I make a global singleton in Tomcat? I've been googling, but no luck so far. I have a singleton object that I construct like thus: private static volati...

producing pixel-identical images of text between Sun Java and OpenJDK

My release script produces images of the version number to save me the trouble of manually going into the MoinMoin wiki software and changing it by hand for each release. Unfortunately, since the fonts look a little different on each platform's JVM, the result is ugly. I solved the the font inconsistency by using Lucide Sans (comes with...

Is com.sun.org.apache same as org.apache package?

I mean, can I use the com.sun.org.apache (all subpackages) classes as I use they from org.apache (in any Apache lib)? Will the OpenJDK maintain this package up to date with apache updates? And the JDK7 will maintain this package? Where can I find information about that? ...

Do NetBeans and Eclipse (including most of extensions) run on OpenJDK without original Sun JRE/JDK?

Can I install just OpenJDK without proprietary Sun JRE/JDK and use NetBeans and Eclipse without significant disadvantages? ...

Java Virtual Machines (JVM) and their performance comparison...

I was wondering if there somebody knows if there are some benchmarks which compare the following jvms. sun jvm vs. openjdk jvm vs. rockit jvm vs. j9 jvm vs. apache harmony. Which one is has the best performance? ...

Circle approximations using Bezier curves.

Hello. I have 2 questions about bezier curves, and using them to approximate portions of circles. Given the unit circle arc (1,0)->(cos(a),sin(a)) where 0 < a < pi/2, will it result in a good approximation of this arc to find the bezier curve's control points p1, p2 by solving the equations imposed by the requirements B(1/3) = (cos(a/3...

reason for methods not being compiled in Hotspot JVM

There are flags available that provide log information on methods that have been compiled. Where is the information on methods that didn't get compiled and why they didn't get compiled? Being able to see how the hotspot compiler makes its decisions and the reasons for it not compiling certain methods would give me a better understandin...

Java command lastModified() not working in Clojure

I am trying to get the last modified time from a file in Clojure, by executing a Java command. By using java.io.File.lastModified I am supposed to be able to get the UNIX-time, this does not work by execution of the script or in the REPL. My code is: (java.io.File.lastModified "/home/lol/lolness.txt") and my error is: java....

Arbitrary JVM Behaviour

Imagine a setup of 6-7 servers all identical with identical java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-36.b18.fc11-i386) OpenJDK Server VM (build 14.0-b16, mixed mode) each running a program (memory and CPU intensive) for hours even days, completing successfully many times (getting statistical data that ...

bezier path widening

Hello. I have a bezier curve B with points S, C1, C2, E, and a positive number w representing width. Is there a way of quickly computing the control points of two bezier curves B1, B2 such that the stuff between B1 and B2 is the widened path represented by B? More formally: compute the control points of good Bezier approximations to B1...

Building openjdk from eclipse (or any other IDE)

To any openjdk developers out there: I've been working on openjdk lately, and so far I've just been using vim to edit code (and I'm too ashamed to speak of how I've been debugging). Starting a build only to have it fail after a minute because of a misspelled variable or something like that is very annoying. Even worse is when it compil...

Java: How do I override a method of a class dynamically (class is eventually NOT in classpath)?

How do I call a method of a class dynamically + conditionally? (Class is eventually not in classpath) Let's say, I need the class NimbusLookAndFeel, but on some systems it's not available (i.e. OpenJDK-6). So I must be able to: Get to know it that class is available (at runtime), If it's not the case, skip the whole thing. How do I m...

Java: JFrame.setLocationRelativeTo(null) not centering the window on Ubuntu 10.04 / gnome 2.30.2 with OpenJDK 1.6.0_18.

Sample code: JFrame jFrame = new JFrame("Test"); jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); jFrame.setLocationRelativeTo(null); jFrame.setSize(600, 600); jFrame.pack(); // jFrame.setLocationRelativeTo(null); // same results jFrame.setVisible(true); Is this the OpenJDK's fault? I recall hearing...

Fonts on OpenJDK vs. Sun JDK 1.6 [Linux Platform]

I noticed that the Fonts on OpenJDK vs. Sun JDK look different. Java JDK has a better font set that accompanies it. Does anyone know what package the 'font' is and how I can have it on OpenJDK installations? Thanks ...

Pure java implementation of the java.lang.Math class

I just downloaded the openjdk source and came to the realization that nearly all of the java.lang.Math class was implemented in native c/c++ code. I was wondering if there were any implementations that were fully written in java. ...

RMI Binding Issue (from Windows RMI Server to Ubuntu RMI Registry)

Hello, I have an RMI Server which correctly binds to an RMI Registry when running on localhost (to demonstrate that things are setup correctly). The code which does this is: private void exposeTickHistoryRemoteProvider(TickHistoryRemoteInterface aTickHistoryServer) { if (System.getSecurityManager() == null) { Secur...