<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Philip Yurchuk &#187; java</title>
	<atom:link href="http://philip.yurchuk.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://philip.yurchuk.com</link>
	<description>Software Development Blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 10:07:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Eclipse &#8220;cannot be resolved to a type&#8221; error</title>
		<link>http://philip.yurchuk.com/2008/12/03/eclipse-cannot-be-resolved-to-a-type-error/</link>
		<comments>http://philip.yurchuk.com/2008/12/03/eclipse-cannot-be-resolved-to-a-type-error/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 04:43:57 +0000</pubDate>
		<dc:creator>Philip Yurchuk</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://philip.yurchuk.com/?p=25</guid>
		<description><![CDATA[<p>So I&#8217;m coding along and all of a sudden, Eclipse (3.4) can&#8217;t resolve classes. Classes that are in the same package as the class I&#8217;m editing. Classes that are fully qualified in the import statement.</p> <p>Not good.</p> <p>The last thing I had done was add a Spring @Autowired annotation. I saved the file and [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;m coding along and all of a sudden, Eclipse (3.4) can&#8217;t resolve classes. Classes that are in the same package as the class I&#8217;m editing. Classes that are fully qualified in the import statement.</p>
<p>Not good.</p>
<p>The last thing I had done was add a Spring @Autowired annotation. I saved the file and voila, everything goes to crap. I then spend a stupid amount of time trying to track down the cause. I took the changes out. I did a clean and rebuild and retest (everything passed; this was Eclipse-only). I added new classes to see if they broke (they did). I did a false modify (add space, remove space, save) to see if that broke said file (it did). It was a death spiral. No matter how I changed the code, the same problem was there.</p>
<p>Turns out, it wasn&#8217;t the annotation, or anything else in Spring, or any of my code, or any of my Eclipse plugins. It was a step before that killed me. I was doing a little cleanup and I created a temp directory at the top of my project folder so I could move some files there. It wasn&#8217;t nested in anything, other than the top level directory. What could go wrong?</p>
<p>Apparently, that makes Eclipse see red. Squiggly red.</p>
<p>The solution was simply to do a refresh (F5) on my project. Just as quickly as it started, the problem went away. That smells like a bug to me, but if it was I figure I&#8217;d see a lot more mentions in Google or the Eclipse bug tracker. I&#8217;m really hoping this helps someone save some time.</p>
<p><strong>Update: If that doesn&#8217;t help you, see more solutions in the comments. Thanks to those who contributed them.</strong></p>
<p>Keywords: false error, bogus error, eclipse bug </p>
]]></content:encoded>
			<wfw:commentRss>http://philip.yurchuk.com/2008/12/03/eclipse-cannot-be-resolved-to-a-type-error/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
	</channel>
</rss>

