javac update
Mark Reinhold
mr at sun.com
Fri Nov 6 21:30:11 PST 2009
> Date: Fri, 06 Nov 2009 19:51:14 -0800
> From: jonathan.gibbons at sun.com
> I've managed to merge my langtools repo for "compiling langtools against jdk7
> stubs" with a "Jigsaw langtools". Slight hiccup: Mark has been using the
> diamond operator in the new Jigsaw code, which confused my stub generator for a
> while.
Oops -- give a hacker a cool new language feature, and he'll go use it.
> Can someone give me a brief recipe on setting up a simple module library,
> sufficient for testing the upcoming new -L switch in the compiler?
#! /bin/bash -e
BIN=../../build/bin
rm -rf src modules mlib
mkdir src modules
mkdir -p src/hi/hi
cat >src/hi/module-info.java <<EOF
module hi @ 0.1 {
class hi.There;
}
EOF
cat >src/hi/hi/There.java <<EOF
package hi;
public class There {
public static void main(String[] args) {
System.out.format("Hi there!%n");
}
}
EOF
$BIN/javac -d modules -modulepath modules $(find src -name '*.java')
$BIN/jmod -L mlib create
$BIN/jmod -L mlib install modules hi
$BIN/java -L mlib -m hi
- Mark
More information about the jigsaw-dev
mailing list