Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes is this bug in windows? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "is this bug in windows?" Watch "is this bug in windows?" New topic
Author

is this bug in windows?

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi Folks,

one interesting thing, i want you to do/experiment in your windows operating system[I am not sure in linux]

1. create simple a java file [eg: class A{}] say A.java

2. compile it in command prompt so, now A.class

3. rename the A.class file to A.java again

4. and finally try to compile the A.java from command prompt

5. and now let me know your experience

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
Not sure what you're getting at. It would result in compilation errors, since it's not a valid source file. What did you think?


Ping & DNS - my free Android networking tools app
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Ulf Dittmer wrote:It would result in compilation errors, since it's not a valid source file. What did you think?


please try this yourself.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

When I try it, it doesn't compile. Which is what I expected. What do you expect to happen?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Paul Sturrock wrote:When I try it, it doesn't compile. Which is what I expected.


what is the error message ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

I get 87 illegal character compiler errors.

Ah wait, you mean the beeping? That's because some bytes, when printed to the console, cause a system beep. That's not a bug, it's a feature. In fact, there is a character created specifically for this: the BEL character, with integer value 7.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

I also get 87 illegal character compiler errors. But I don't understand what is so special in this?


Life is easy because we write the source code.....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41108
    
  45
please try this yourself.

I did; what are you getting at? Maybe you meant to post this under Meaningless Drivel :-)
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Rob Prime wrote:Ah wait, you mean the beeping? That's because some bytes, when printed to the console, cause a system beep. That's not a bug, it's a feature. In fact, there is a character created specifically for this: the BEL character, with integer value 7.


Ohh. yes I meant this only . but executed in 2 machine.one machine was freezed which has 500MB RAM and another machine it is fine like you guys .

so i thought , it is bug . *sorry for my great misunderstanding* .

anyway thanks for the clarification
 
 
subject: is this bug in windows?
 
Similar Threads
using classpath with javac Problem
Question on class files
how to write jar file
How do i compile B.java?
Class path