Updates to Java On-Line Compiler

A

Andrew Thompson

I have improved the Java On-Line Compiler
at.. http://www.physci.org/javac.jsp

The java on-line compiler will now help
sort out compatibility problems for 1.1
and 1.3 JVM's. I have added both jars
to the site so we can -bootclasspath
against them.

I would appreciate some testing.
I have not even managed to test
the 1.3 stuff yet..
 
T

Thomas Fritsch

*Sorry* for my previous nonsense post. I hit the send-buttom before I
pasted in my text!


The CardTest example is not compilable with
the settings
-target 1.3
-bootclasspath 1.3

...../CardTest.java:21: cannot resolve symbol
symbol : variable YELLOW
location: class java.awt.Color
addPanel(Color.YELLOW, "First");
^
...../CardTest.java:22: cannot resolve symbol
symbol : variable GREEN
location: class java.awt.Color
addPanel(Color.GREEN, "Second");
^
...../CardTest.java:23: cannot resolve symbol
symbol : variable MAGENTA
location: class java.awt.Color
addPanel(Color.MAGENTA, "Third");
^
...../CardTest.java:24: cannot resolve symbol
symbol : variable CYAN
location: class java.awt.Color
addPanel(Color.CYAN, "Fourth");
^
4 errors

....Thomas

______________________________________________________
Thomas <dot> Fritsch <at> ops <dot> de
 
A

Andrew Thompson

| Thomas Fritsch wrote:
.....
| >> I have not even managed to test
| >> the 1.3 stuff yet..
.....
| The CardTest example is not compilable with
| the settings
| -target 1.3
| -bootclasspath 1.3
|
| ..../CardTest.java:21: cannot resolve symbol
| symbol : variable YELLOW

Yeah. Scratches head. I noticed they were
not working with the 1.1 classes, but hadn't
seen it with 1.3...

[ I tried at home with debugging on.. it is
definitely testing against the 1.3 rt.jar ]

Brings us to the same question as the
undocumented introduction of
BufferedImage in 1.2. When were
the Color constants introduced?

I would be astounded to find the
Color.CONSTANTS were
introduced in 1.4...
 
T

Thomas Fritsch

Andrew said:
...
I would be astounded to find the
Color.CONSTANTS were
introduced in 1.4...
...
Color.YELLOW, Color.GREEN, etc were indeed introduced in 1.4
(but without any "@since" doc-comment),
whereas Color.yellow, etc exist from the early 1.0

Thomas

______________________________________________________
Thomas <dot> Fritsch <at> ops <dot> de
 
A

Andrew Thompson

| Andrew Thompson wrote:
|
| >...
| >I would be astounded to find the
| >Color.CONSTANTS were
| >introduced in 1.4...
| >...
| >
| >
| Color.YELLOW, Color.GREEN, etc were indeed introduced in 1.4
| (but without any "@since" doc-comment),
| whereas Color.yellow, etc exist from the early 1.0

Sounds like the version checker might
come in _very_ handy if these results
are right [ read: 'if I have not made a
monumental logic or coding error'.. ]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,017
Latest member
GreenAcreCBDGummiesReview

Latest Threads

Top