Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » "unexpected end of file" build error
"unexpected end of file" build error [message #46452] Wed, 19 February 2003 18:35 Go to next message
Dennis Warren is currently offline Dennis WarrenFriend
Messages: 6
Registered: July 2009
Junior Member
When I'm compiling my project, I get several hundred "unexpected end of
file" build errors. The reason this is coming up is because at the end
of the classes, there is CVS specific information which is commented
out. For some reason, the compiler does not like this information being
there if it isn't trailed with a return character so that there is one
blank line at the end of the document. Here's some explamples:

Doesn't Work(the error will appear on the last line):
===START OF FILE
public class MyClass{



}
//Revision 1.1 Added class to CVS
===END OF FILE

Works Fine: (note the empty line before End of File)
===START OF FILE
public class MyClass{



}
//Revision 1.1 Added class to CVS

===END OF FILE

Any clues on how I can get the compiler to ignore this kind of stuff?

thanks,

-Dennis
Re: "unexpected end of file" build error [message #46565 is a reply to message #46452] Thu, 20 February 2003 09:08 Go to previous messageGo to next message
Dennis Warren is currently offline Dennis WarrenFriend
Messages: 6
Registered: July 2009
Junior Member
Forgot to mention that this only happens in "compiler compliance level" for
jdk 1.4. I need jdk 1.4 compliance for asserts we're using.


"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b30h5s$625$1@rogue.oti.com...
> When I'm compiling my project, I get several hundred "unexpected end of
> file" build errors. The reason this is coming up is because at the end
> of the classes, there is CVS specific information which is commented
> out. For some reason, the compiler does not like this information being
> there if it isn't trailed with a return character so that there is one
> blank line at the end of the document. Here's some explamples:
>
> Doesn't Work(the error will appear on the last line):
> ===START OF FILE
> public class MyClass{
>
>
>
> }
> file://Revision 1.1 Added class to CVS
> ===END OF FILE
>
> Works Fine: (note the empty line before End of File)
> ===START OF FILE
> public class MyClass{
>
>
>
> }
> file://Revision 1.1 Added class to CVS
>
> ===END OF FILE
>
> Any clues on how I can get the compiler to ignore this kind of stuff?
>
> thanks,
>
> -Dennis
>
Re: "unexpected end of file" build error [message #46590 is a reply to message #46565] Thu, 20 February 2003 14:32 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I would post this to eclipse.tools where the compiler committers are much
more likely to address the issue.

Darins

"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b323j0$7tf$1@rogue.oti.com...
> Forgot to mention that this only happens in "compiler compliance level"
for
> jdk 1.4. I need jdk 1.4 compliance for asserts we're using.
>
>
> "Dennis Warren" <notrash98@hotmail.com> wrote in message
> news:b30h5s$625$1@rogue.oti.com...
> > When I'm compiling my project, I get several hundred "unexpected end of
> > file" build errors. The reason this is coming up is because at the end
> > of the classes, there is CVS specific information which is commented
> > out. For some reason, the compiler does not like this information being
> > there if it isn't trailed with a return character so that there is one
> > blank line at the end of the document. Here's some explamples:
> >
> > Doesn't Work(the error will appear on the last line):
> > ===START OF FILE
> > public class MyClass{
> >
> >
> >
> > }
> > file://Revision 1.1 Added class to CVS
> > ===END OF FILE
> >
> > Works Fine: (note the empty line before End of File)
> > ===START OF FILE
> > public class MyClass{
> >
> >
> >
> > }
> > file://Revision 1.1 Added class to CVS
> >
> > ===END OF FILE
> >
> > Any clues on how I can get the compiler to ignore this kind of stuff?
> >
> > thanks,
> >
> > -Dennis
> >
>
>
Re: "unexpected end of file" build error [message #46614 is a reply to message #46590] Thu, 20 February 2003 16:10 Go to previous messageGo to next message
Dennis Warren is currently offline Dennis WarrenFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks!

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:b32n8m$pap$1@rogue.oti.com...
> I would post this to eclipse.tools where the compiler committers are much
> more likely to address the issue.
>
> Darins
>
> "Dennis Warren" <notrash98@hotmail.com> wrote in message
> news:b323j0$7tf$1@rogue.oti.com...
> > Forgot to mention that this only happens in "compiler compliance level"
> for
> > jdk 1.4. I need jdk 1.4 compliance for asserts we're using.
> >
> >
> > "Dennis Warren" <notrash98@hotmail.com> wrote in message
> > news:b30h5s$625$1@rogue.oti.com...
> > > When I'm compiling my project, I get several hundred "unexpected end
of
> > > file" build errors. The reason this is coming up is because at the
end
> > > of the classes, there is CVS specific information which is commented
> > > out. For some reason, the compiler does not like this information
being
> > > there if it isn't trailed with a return character so that there is one
> > > blank line at the end of the document. Here's some explamples:
> > >
> > > Doesn't Work(the error will appear on the last line):
> > > ===START OF FILE
> > > public class MyClass{
> > >
> > >
> > >
> > > }
> > > file://Revision 1.1 Added class to CVS
> > > ===END OF FILE
> > >
> > > Works Fine: (note the empty line before End of File)
> > > ===START OF FILE
> > > public class MyClass{
> > >
> > >
> > >
> > > }
> > > file://Revision 1.1 Added class to CVS
> > >
> > > ===END OF FILE
> > >
> > > Any clues on how I can get the compiler to ignore this kind of stuff?
> > >
> > > thanks,
> > >
> > > -Dennis
> > >
> >
> >
>
>
Re: "unexpected end of file" build error [message #46899 is a reply to message #46452] Mon, 24 February 2003 16:34 Go to previous message
No real name is currently offline No real nameFriend
Messages: 8
Registered: July 2009
Junior Member
I believe Java 1.4 changed the spec to say that a comment can't end with
EOF. So you need a newline at the end of the comment. I don't know if
there's a compiler switch to revert back to the 1.3 style.

"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b30h5s$625$1@rogue.oti.com...
> When I'm compiling my project, I get several hundred "unexpected end of
> file" build errors.
Re: "unexpected end of file" build error [message #590626 is a reply to message #46452] Thu, 20 February 2003 09:08 Go to previous message
Dennis Warren is currently offline Dennis WarrenFriend
Messages: 6
Registered: July 2009
Junior Member
Forgot to mention that this only happens in "compiler compliance level" for
jdk 1.4. I need jdk 1.4 compliance for asserts we're using.


"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b30h5s$625$1@rogue.oti.com...
> When I'm compiling my project, I get several hundred "unexpected end of
> file" build errors. The reason this is coming up is because at the end
> of the classes, there is CVS specific information which is commented
> out. For some reason, the compiler does not like this information being
> there if it isn't trailed with a return character so that there is one
> blank line at the end of the document. Here's some explamples:
>
> Doesn't Work(the error will appear on the last line):
> ===START OF FILE
> public class MyClass{
>
>
>
> }
> file://Revision 1.1 Added class to CVS
> ===END OF FILE
>
> Works Fine: (note the empty line before End of File)
> ===START OF FILE
> public class MyClass{
>
>
>
> }
> file://Revision 1.1 Added class to CVS
>
> ===END OF FILE
>
> Any clues on how I can get the compiler to ignore this kind of stuff?
>
> thanks,
>
> -Dennis
>
Re: "unexpected end of file" build error [message #590638 is a reply to message #46565] Thu, 20 February 2003 14:32 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
I would post this to eclipse.tools where the compiler committers are much
more likely to address the issue.

Darins

"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b323j0$7tf$1@rogue.oti.com...
> Forgot to mention that this only happens in "compiler compliance level"
for
> jdk 1.4. I need jdk 1.4 compliance for asserts we're using.
>
>
> "Dennis Warren" <notrash98@hotmail.com> wrote in message
> news:b30h5s$625$1@rogue.oti.com...
> > When I'm compiling my project, I get several hundred "unexpected end of
> > file" build errors. The reason this is coming up is because at the end
> > of the classes, there is CVS specific information which is commented
> > out. For some reason, the compiler does not like this information being
> > there if it isn't trailed with a return character so that there is one
> > blank line at the end of the document. Here's some explamples:
> >
> > Doesn't Work(the error will appear on the last line):
> > ===START OF FILE
> > public class MyClass{
> >
> >
> >
> > }
> > file://Revision 1.1 Added class to CVS
> > ===END OF FILE
> >
> > Works Fine: (note the empty line before End of File)
> > ===START OF FILE
> > public class MyClass{
> >
> >
> >
> > }
> > file://Revision 1.1 Added class to CVS
> >
> > ===END OF FILE
> >
> > Any clues on how I can get the compiler to ignore this kind of stuff?
> >
> > thanks,
> >
> > -Dennis
> >
>
>
Re: "unexpected end of file" build error [message #590647 is a reply to message #46590] Thu, 20 February 2003 16:10 Go to previous message
Dennis Warren is currently offline Dennis WarrenFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks!

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:b32n8m$pap$1@rogue.oti.com...
> I would post this to eclipse.tools where the compiler committers are much
> more likely to address the issue.
>
> Darins
>
> "Dennis Warren" <notrash98@hotmail.com> wrote in message
> news:b323j0$7tf$1@rogue.oti.com...
> > Forgot to mention that this only happens in "compiler compliance level"
> for
> > jdk 1.4. I need jdk 1.4 compliance for asserts we're using.
> >
> >
> > "Dennis Warren" <notrash98@hotmail.com> wrote in message
> > news:b30h5s$625$1@rogue.oti.com...
> > > When I'm compiling my project, I get several hundred "unexpected end
of
> > > file" build errors. The reason this is coming up is because at the
end
> > > of the classes, there is CVS specific information which is commented
> > > out. For some reason, the compiler does not like this information
being
> > > there if it isn't trailed with a return character so that there is one
> > > blank line at the end of the document. Here's some explamples:
> > >
> > > Doesn't Work(the error will appear on the last line):
> > > ===START OF FILE
> > > public class MyClass{
> > >
> > >
> > >
> > > }
> > > file://Revision 1.1 Added class to CVS
> > > ===END OF FILE
> > >
> > > Works Fine: (note the empty line before End of File)
> > > ===START OF FILE
> > > public class MyClass{
> > >
> > >
> > >
> > > }
> > > file://Revision 1.1 Added class to CVS
> > >
> > > ===END OF FILE
> > >
> > > Any clues on how I can get the compiler to ignore this kind of stuff?
> > >
> > > thanks,
> > >
> > > -Dennis
> > >
> >
> >
>
>
Re: "unexpected end of file" build error [message #590740 is a reply to message #46452] Mon, 24 February 2003 16:34 Go to previous message
No real name is currently offline No real nameFriend
Messages: 8
Registered: July 2009
Junior Member
I believe Java 1.4 changed the spec to say that a comment can't end with
EOF. So you need a newline at the end of the comment. I don't know if
there's a compiler switch to revert back to the 1.3 style.

"Dennis Warren" <notrash98@hotmail.com> wrote in message
news:b30h5s$625$1@rogue.oti.com...
> When I'm compiling my project, I get several hundred "unexpected end of
> file" build errors.
Previous Topic:how to set up Eclipse & JBoss to hotswap
Next Topic:how to build modified Java files only
Goto Forum:
  


Current Time: Thu Dec 26 13:43:06 GMT 2024

Powered by FUDForum. Page generated in 0.03323 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top