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 5822 - creating new internal compiler create compiler with same name
Summary: creating new internal compiler create compiler with same name
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: pknakal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-02-17 23:20 UTC by pknakal
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pknakal 2000-02-17 23:20:16 UTC
1) create new compiler type, this create compiler type with name "Internal Compiler", but this should create compiler with "Internal Compiler (2)" name.
try to delete one of the internal compilers, this disable Internal  Compilation folder
2) sometimes when you try create New Compiler throw exception (in attachment)

[jglick] See below for basic problem. But several other bugs in other places too. #5887 is probably related (cf. Services.InstanceLevel).

--> RELATED BUGS: See "Work around" pane, I did not have space.


--> ORIGINAL PROBLEM: ...loaders.java.gj.JavaCompilerType must not override hashCode + equals; this is what breaks the ServicesNode and God knows what else (or so I think!), since the new instance was
 considered equal to the original. But the change where these two were added said it was for the compilerGroupKey, so perhaps they cannot be simply removed: JavaCompiler (internal) seems to want the c
ompiler type to be used as a key, which means some sort of comparisons. Maybe the methods can be removed anyway? This would mean that if the user had two internal compilers configured the same way, fi
le A with the first compiler and file B with the second, and compiled A + B together, there would be two compiler groups. Is this a problem? The external compiler type seems to work quite differently
as far as this goes.
Comment 1 Marek Grummich 2000-07-25 09:29:59 UTC
Priority is changed to P4 (normal).