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 85214 - REGRESSION: applying Salami Slice design pattern makes schema invalid
Summary: REGRESSION: applying Salami Slice design pattern makes schema invalid
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Ayub Khan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-19 10:53 UTC by Andrei Chistiakov
Modified: 2006-09-20 11:28 UTC (History)
3 users (show)

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 Andrei Chistiakov 2006-09-19 10:53:56 UTC
Reproduced in build 060918_1 (JDK 1.6 Beta 2).

To reproduce the bug:
- apply Salami Slice design pattern to LoanApplication schema;
- validate the schema.
XML validation started.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:18,16
src-resolve: Cannot resolve the name 'state' to a(n) 'element declaration'
component.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:154,16
src-resolve: Cannot resolve the name 'state1' to a(n) 'element declaration'
component.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:155,16
src-resolve: Cannot resolve the name 'zip' to a(n) 'element declaration' component.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:193,16
src-resolve: Cannot resolve the name 'years' to a(n) 'element declaration'
component.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:194,16
src-resolve: Cannot resolve the name 'months' to a(n) 'element declaration'
component.

D:/Src/XMLJavaApp/src/pkg4/newLoanApplication.xsd:238,16
src-resolve: Cannot resolve the name 'grossMonthlyIncome' to a(n) 'element
declaration' component.

6 Error(s),  0 Warning(s).
XML validation finished.
Comment 1 Ayub Khan 2006-09-19 19:51:29 UTC
Fixed.

Files changed:

/cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/Attic/DefaultSchemaGenerator.java
new revision: 1.1.2.47; previous revision: 1.1.2.46

/cvs/xml/axi/test/unit/src/org/netbeans/modules/xml/axi/resources/Attic/elementreuse.xsd
new revision: 1.1.2.2; previous revision: 1.1.2.1

/cvs/xml/axi/test/unit/src/org/netbeans/modules/xml/axi/Attic/SchemaTransformTest.java
new revision: 1.1.2.41; previous revision: 1.1.2.40

Comment 2 Andrei Chistiakov 2006-09-20 11:28:51 UTC
Verified in build 060919_1.