[
https://issues.apache.org/jira/browse/TUSCANY-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kelvin Goodson updated TUSCANY-1688:
------------------------------------
I did a check for EMF bugs raised for this issue, but couldn't find one. Do
you know if this issue has been addressed in EMF?
> XSD2JavaGenerator throws IOException:Access is denied with complexType named
> "Con"
> ----------------------------------------------------------------------------------
>
> Key: TUSCANY-1688
> URL: https://issues.apache.org/jira/browse/TUSCANY-1688
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-SDO-Next
> Environment: Windows XP SP2 w/Sun JDK 1.4.2_11
> Reporter: Ron Gavlin
> Fix For: Java-SDO-Next
>
>
> I have an XML Schema that contains a complexType named "Con". The following
> error output is displayed to stdout:
> >> Generating Con
> >> Generating Java interface test.Con
> >> Generating /TargetProject/test/Con.java
> >> Examining old /TargetProject/test/Con.java
> org.eclipse.emf.common.util.WrappedException: java.io.IOException: Access is
> denied
> at
> org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generateJava
> (AbstractGeneratorAdapter.java:1046)
> at
> org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateInterface
> (GenClassGeneratorAdapter.java:123)
> at
> org.eclipse.emf.codegen.ecore.genmodel.generator.GenClassGeneratorAdapter.generateModel
> (GenClassGeneratorAdapter.java:106)
> at
> org.eclipse.emf.codegen.ecore.genmodel.generator.GenBaseGeneratorAdapter.doGenerate
> (GenBaseGeneratorAdapter.java:214)
> at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.generate
> (AbstractGeneratorAdapter.java:275)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate
> (Generator.java:600)
> at org.eclipse.emf.codegen.ecore.generator.Generator.generate
> (Generator.java:512)
> at org.apache.tuscany.sdo.generate.JavaGenerator.generateFromGenModel
> (JavaGenerator.java:515)
> ...
> It seems as if the type name 'Con' conflicts with the operating system's
> console device named 'Con'. The code first checks to see if the file exists
> to decide if a merge is required. The code seems to incorrectly find the
> file/device named 'Con' and then tries to access it in error. I suspect this
> is an Eclipse EMF problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]