"unexpected end of file" build error [message #46452] |
Wed, 19 February 2003 13:35  |
Eclipse User |
|
|
|
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 #590626 is a reply to message #46452] |
Thu, 20 February 2003 04:08  |
Eclipse User |
|
|
|
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 09:32  |
Eclipse User |
|
|
|
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 11:10  |
Eclipse User |
|
|
|
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
> > >
> >
> >
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.29527 seconds