This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 50318 - [tests] ClassCastException from encapsulate fields automated tests
Summary: [tests] ClassCastException from encapsulate fields automated tests
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2004-10-13 10:27 UTC by ehucka
Modified: 2007-04-03 18:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (2.06 KB, text/plain)
2004-10-13 10:28 UTC, ehucka
Details
rename tests exception's stacktrace (2.08 KB, text/plain)
2004-10-13 10:32 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-10-13 10:27:52 UTC
The exception throws from validation tests of
refactoring. 

It's manualy reproducible:

For example:

project:
nbcvs:/refactoring/test/qa-functional/data/projects/default
Encapsulate field refID of class
org.netbeans.tests.examples.packa.Bean
setter "setRefId" getter "getRefID"
Comment 1 ehucka 2004-10-13 10:28:47 UTC
Created attachment 18250 [details]
stacktrace
Comment 2 ehucka 2004-10-13 10:31:31 UTC
Similar exception is throwing from rename automated tests.
Comment 3 ehucka 2004-10-13 10:32:56 UTC
Created attachment 18251 [details]
rename tests exception's stacktrace
Comment 4 Martin Matula 2004-10-13 10:50:04 UTC
Fixed.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java,v
 <--  SemiPersistentElement.java
new revision: 1.45; previous revision: 1.44
done
Comment 5 _ tball 2004-10-13 15:24:12 UTC
How did this happen?  We are supposed to run both the
commit-validation and java/javacore/test tests using "ant" before
committing anything.  Is there another set of tests?  Perhaps they
could be included in the one set we all run.
Comment 6 Jan Chalupa 2004-10-13 16:44:57 UTC
I believe Eman was referring to a set of QE tests he maintains. I'm
sure he'll be happy to share it with the team if you're interested.

Martin, this bug is considered a Q-build stopper. Please put the fix
into the QBE200410121800. Thanks.
Comment 7 Martin Matula 2004-10-13 16:54:37 UTC
Fixed in the q-build branch.

Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/SemiPersistentElement.java,v
 <--  SemiPersistentElement.java
new revision: 1.44.2.1; previous revision: 1.44
done
Comment 8 ehucka 2004-10-25 14:43:30 UTC
verified